Package com.oracle.bmc.datasafe.model
Class AuditTrail.Builder
- java.lang.Object
- 
- com.oracle.bmc.datasafe.model.AuditTrail.Builder
 
- 
- Enclosing class:
- AuditTrail
 
 public static class AuditTrail.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditTrail.BuilderauditCollectionStartTime(Date auditCollectionStartTime)The date from which the audit trail must start collecting data, in the format defined by RFC3339.AuditTrail.BuilderauditProfileId(String auditProfileId)The OCID of the parent audit.AuditTrailbuild()AuditTrail.BuildercanUpdateLastArchiveTimeOnTarget(Boolean canUpdateLastArchiveTimeOnTarget)Indicates if the Datasafe updates last archive time on target database.AuditTrail.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.AuditTrail.Buildercopy(AuditTrail model)AuditTrail.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.AuditTrail.Builderdescription(String description)The description of the audit trail.AuditTrail.BuilderdisplayName(String displayName)The display name of the audit trail.AuditTrail.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.AuditTrail.Builderid(String id)The OCID of the audit trail.AuditTrail.BuilderisAutoPurgeEnabled(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.AuditTrail.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the audit trail in Data Safe.AuditTrail.BuilderlifecycleState(AuditTrailLifecycleState lifecycleState)The current state of the audit trail.AuditTrail.BuilderpeerTargetDatabaseKey(Integer peerTargetDatabaseKey)The secondary id assigned for the peer database registered with Data Safe.AuditTrail.BuilderpurgeJobDetails(String purgeJobDetails)The details of the audit trail purge job that ran at the time specified by purgeJobTime".AuditTrail.BuilderpurgeJobStatus(AuditTrail.PurgeJobStatus purgeJobStatus)The current status of the audit trail purge job.AuditTrail.BuilderpurgeJobTime(Date purgeJobTime)The date and time of the last purge job.AuditTrail.Builderstatus(AuditTrailStatus status)The current sub-state of the audit trail.AuditTrail.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.AuditTrail.BuildertargetId(String targetId)The OCID of the Data Safe target for which the audit trail is created.AuditTrail.BuildertimeCreated(Date timeCreated)The date and time the audit trail was created, in the format defined by RFC3339.AuditTrail.BuildertimeLastCollected(Date timeLastCollected)The date and time until when the audit events were collected from the target database by the Data Safe audit trail collection process, in the format defined by RFC3339.AuditTrail.BuildertimeUpdated(Date timeUpdated)The date and time the audit trail was updated, in the format defined by RFC3339.AuditTrail.BuildertrailLocation(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.AuditTrail.BuildertrailSource(AuditTrailSource trailSource)The underlying source of unified audit trail.AuditTrail.BuilderworkRequestId(String workRequestId)The OCID of the workrequest for audit trail which collects audit records.
 
- 
- 
- 
Method Detail- 
idpublic AuditTrail.Builder id(String id) The OCID of the audit trail.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
auditProfileIdpublic AuditTrail.Builder auditProfileId(String auditProfileId) The OCID of the parent audit.- Parameters:
- auditProfileId- the value to set
- Returns:
- this builder
 
 - 
targetIdpublic AuditTrail.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
 
 - 
displayNamepublic AuditTrail.Builder displayName(String displayName) The display name of the audit trail.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic AuditTrail.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
 
 - 
timeUpdatedpublic AuditTrail.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
 
 - 
lifecycleStatepublic AuditTrail.Builder lifecycleState(AuditTrailLifecycleState lifecycleState) The current state of the audit trail.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
statuspublic AuditTrail.Builder status(AuditTrailStatus status) The current sub-state of the audit trail.- Parameters:
- status- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic AuditTrail.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
 
 - 
trailLocationpublic AuditTrail.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
 
 - 
descriptionpublic AuditTrail.Builder description(String description) The description of the audit trail.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
isAutoPurgeEnabledpublic AuditTrail.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
 
 - 
auditCollectionStartTimepublic AuditTrail.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
 
 - 
workRequestIdpublic AuditTrail.Builder workRequestId(String workRequestId) The OCID of the workrequest for audit trail which collects audit records.- Parameters:
- workRequestId- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic AuditTrail.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
timeLastCollectedpublic AuditTrail.Builder timeLastCollected(Date timeLastCollected) The date and time until when the audit events were collected from the target database by the Data Safe audit trail collection process, in the format defined by RFC3339.- Parameters:
- timeLastCollected- the value to set
- Returns:
- this builder
 
 - 
peerTargetDatabaseKeypublic AuditTrail.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
 
 - 
trailSourcepublic AuditTrail.Builder trailSource(AuditTrailSource trailSource) The underlying source of unified audit trail.- Parameters:
- trailSource- the value to set
- Returns:
- this builder
 
 - 
purgeJobTimepublic AuditTrail.Builder purgeJobTime(Date purgeJobTime) The date and time of the last purge job.The purge job deletes audit data in the target database every seven days so that the database’s audit trail does not become too large. In the format defined by RFC3339. - Parameters:
- purgeJobTime- the value to set
- Returns:
- this builder
 
 - 
purgeJobStatuspublic AuditTrail.Builder purgeJobStatus(AuditTrail.PurgeJobStatus purgeJobStatus) The current status of the audit trail purge job.- Parameters:
- purgeJobStatus- the value to set
- Returns:
- this builder
 
 - 
purgeJobDetailspublic AuditTrail.Builder purgeJobDetails(String purgeJobDetails) The details of the audit trail purge job that ran at the time specified by purgeJobTime".- Parameters:
- purgeJobDetails- the value to set
- Returns:
- this builder
 
 - 
canUpdateLastArchiveTimeOnTargetpublic AuditTrail.Builder canUpdateLastArchiveTimeOnTarget(Boolean canUpdateLastArchiveTimeOnTarget) Indicates if the Datasafe updates last archive time on target database.If isAutoPurgeEnabled field is enabled, this field must be true. - Parameters:
- canUpdateLastArchiveTimeOnTarget- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic AuditTrail.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
 
 - 
definedTagspublic AuditTrail.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
 
 - 
systemTagspublic AuditTrail.Builder systemTags(Map<String,Map<String,Object>> systemTags) System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}} - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic AuditTrail build() 
 - 
copypublic AuditTrail.Builder copy(AuditTrail model) 
 
- 
 
-