Package com.oracle.bmc.datasafe.model
Class AuditTrailSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.AuditTrailSummary.Builder
-
- Enclosing class:
- AuditTrailSummary
public static class AuditTrailSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditTrailSummary.Builder
auditCollectionStartTime(Date auditCollectionStartTime)
The date from which the audit trail must start collecting data, in the format defined by RFC3339.AuditTrailSummary.Builder
auditProfileId(String auditProfileId)
The OCID of the parent audit.AuditTrailSummary
build()
AuditTrailSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the audit.AuditTrailSummary.Builder
copy(AuditTrailSummary model)
AuditTrailSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.AuditTrailSummary.Builder
description(String description)
The description of audit trail.AuditTrailSummary.Builder
displayName(String displayName)
The display name of the audit trail.AuditTrailSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.AuditTrailSummary.Builder
id(String id)
The OCID of the audit trail.AuditTrailSummary.Builder
isAutoPurgeEnabled(Boolean isAutoPurgeEnabled)
Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database’s audit trail does not become too large.AuditTrailSummary.Builder
lifecycleDetails(String lifecycleDetails)
Details about the current state of the audit trail in Data Safe.AuditTrailSummary.Builder
lifecycleState(AuditTrailLifecycleState lifecycleState)
The current state of the audit trail.AuditTrailSummary.Builder
peerTargetDatabaseKey(Integer peerTargetDatabaseKey)
The secondary id assigned for the peer database registered with Data Safe.AuditTrailSummary.Builder
status(AuditTrailStatus status)
The current sub-state of the audit trail.AuditTrailSummary.Builder
targetId(String targetId)
The OCID of the Data Safe target for which the audit trail is created.AuditTrailSummary.Builder
timeCreated(Date timeCreated)
The date and time the audit trail was created, in the format defined by RFC3339.AuditTrailSummary.Builder
timeUpdated(Date timeUpdated)
The date and time the audit trail was updated, in the format defined by RFC3339.AuditTrailSummary.Builder
trailLocation(String trailLocation)
An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
-
-
-
Method Detail
-
id
public AuditTrailSummary.Builder id(String id)
The OCID of the audit trail.- Parameters:
id
- the value to set- Returns:
- this builder
-
auditProfileId
public AuditTrailSummary.Builder auditProfileId(String auditProfileId)
The OCID of the parent audit.- Parameters:
auditProfileId
- the value to set- Returns:
- this builder
-
displayName
public AuditTrailSummary.Builder displayName(String displayName)
The display name of the audit trail.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
timeCreated
public AuditTrailSummary.Builder timeCreated(Date timeCreated)
The date and time the audit trail was created, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public AuditTrailSummary.Builder timeUpdated(Date timeUpdated)
The date and time the audit trail was updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
status
public AuditTrailSummary.Builder status(AuditTrailStatus status)
The current sub-state of the audit trail.- Parameters:
status
- the value to set- Returns:
- this builder
-
description
public AuditTrailSummary.Builder description(String description)
The description of audit trail.- Parameters:
description
- the value to set- Returns:
- this builder
-
trailLocation
public AuditTrailSummary.Builder trailLocation(String trailLocation)
An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.- Parameters:
trailLocation
- the value to set- Returns:
- this builder
-
compartmentId
public AuditTrailSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the audit.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
targetId
public AuditTrailSummary.Builder targetId(String targetId)
The OCID of the Data Safe target for which the audit trail is created.- Parameters:
targetId
- the value to set- Returns:
- this builder
-
lifecycleState
public AuditTrailSummary.Builder lifecycleState(AuditTrailLifecycleState lifecycleState)
The current state of the audit trail.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public AuditTrailSummary.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the audit trail in Data Safe.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
isAutoPurgeEnabled
public AuditTrailSummary.Builder isAutoPurgeEnabled(Boolean isAutoPurgeEnabled)
Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database’s audit trail does not become too large.- Parameters:
isAutoPurgeEnabled
- the value to set- Returns:
- this builder
-
auditCollectionStartTime
public AuditTrailSummary.Builder auditCollectionStartTime(Date auditCollectionStartTime)
The date from which the audit trail must start collecting data, in the format defined by RFC3339.- Parameters:
auditCollectionStartTime
- the value to set- Returns:
- this builder
-
peerTargetDatabaseKey
public AuditTrailSummary.Builder peerTargetDatabaseKey(Integer peerTargetDatabaseKey)
The secondary id assigned for the peer database registered with Data Safe.- Parameters:
peerTargetDatabaseKey
- the value to set- Returns:
- this builder
-
freeformTags
public AuditTrailSummary.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public AuditTrailSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public AuditTrailSummary build()
-
copy
public AuditTrailSummary.Builder copy(AuditTrailSummary model)
-
-