Class AuditEventSummary.Builder
- java.lang.Object
- 
- com.oracle.bmc.datasafe.model.AuditEventSummary.Builder
 
- 
- Enclosing class:
- AuditEventSummary
 
 public static class AuditEventSummary.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditEventSummary.BuilderactionTaken(String actionTaken)The action taken for this audit event.AuditEventSummary.BuilderapplicationContexts(String applicationContexts)Semicolon-seperated list of application context namespace, attribute, value information in (APPCTX_NSPACE,APPCTX_ATTRIBUTE=) format. AuditEventSummary.BuilderauditEventTime(Date auditEventTime)The time that the audit event occurs in the target database.AuditEventSummary.BuilderauditLocation(AuditEventSummary.AuditLocation auditLocation)The location of the audit.AuditEventSummary.BuilderauditPolicies(String auditPolicies)Comma-seperated list of audit policies that caused the current audit event.AuditEventSummary.BuilderauditTrailId(String auditTrailId)The OCID of the audit trail that generated this audit event.AuditEventSummary.BuilderauditType(AuditEventSummary.AuditType auditType)The type of the auditing.AuditEventSummarybuild()AuditEventSummary.BuilderclientHostname(String clientHostname)The name of the host machine from which the session was spawned.AuditEventSummary.BuilderclientId(String clientId)The client identifier in each Oracle session.AuditEventSummary.BuilderclientIp(String clientIp)The IP address of the host machine from which the session was spawned.AuditEventSummary.BuilderclientProgram(String clientProgram)The application from which the audit event was generated.AuditEventSummary.BuildercommandParam(String commandParam)List of bind variables associated with the command text.AuditEventSummary.BuildercommandText(String commandText)The SQL associated with the audit event.AuditEventSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the audit event.AuditEventSummary.Buildercopy(AuditEventSummary model)AuditEventSummary.BuilderdatabaseType(AuditEventSummary.DatabaseType databaseType)The type of the target database that was audited.AuditEventSummary.BuilderdatabaseUniqueName(String databaseUniqueName)Unique name of the database associated to the peer target database.AuditEventSummary.BuilderdbUserName(String dbUserName)The name of the database user whose actions were audited.AuditEventSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.AuditEventSummary.BuildererrorCode(String errorCode)Oracle Error code generated by the action.AuditEventSummary.BuildererrorMessage(String errorMessage)The detailed message on why the error occurred.AuditEventSummary.BuildereventName(String eventName)The name of the detail action executed by the user on the target database.AuditEventSummary.BuilderextendedEventAttributes(String extendedEventAttributes)List of all other attributes of the audit event seperated by a colon other than the one returned in audit record.AuditEventSummary.BuilderexternalUserId(String externalUserId)The user ID of the external user of the audit event.AuditEventSummary.BuilderfgaPolicyName(String fgaPolicyName)Fine-grained auditing (FGA) policy name that generated this audit record.AuditEventSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.AuditEventSummary.Builderid(String id)The OCID of the audit event.AuditEventSummary.BuilderisAlerted(Boolean isAlerted)Indicates whether an alert was raised for this audit event.AuditEventSummary.BuilderobjectName(String objectName)The name of the object affected by the action.AuditEventSummary.BuilderobjectOwner(String objectOwner)The schema name of the object affected by the action.AuditEventSummary.BuilderobjectType(String objectType)The type of the object in the source database affected by the action.AuditEventSummary.Builderoperation(String operation)The name of the action executed by the user on the target database.AuditEventSummary.BuilderoperationStatus(AuditEventSummary.OperationStatus operationStatus)Indicates whether the operation was a success or a failure.AuditEventSummary.BuilderosTerminal(String osTerminal)The operating system terminal of the user session.AuditEventSummary.BuilderosUserName(String osUserName)The name of the operating system user for the database session.AuditEventSummary.BuilderpeerTargetDatabaseKey(Integer peerTargetDatabaseKey)The secondary id assigned for the peer database registered with Data Safe.AuditEventSummary.BuildertargetClass(AuditEventSummary.TargetClass targetClass)The class of the target that was audited.AuditEventSummary.BuildertargetId(String targetId)The OCID of the target database that was audited.AuditEventSummary.BuildertargetName(String targetName)The name of the target database that was audited.AuditEventSummary.BuildertargetUser(String targetUser)The user on whom the GRANT/REVOKE/AUDIT/NOAUDIT statement was executed.AuditEventSummary.BuildertimeCollected(Date timeCollected)The timestamp when this audit event was collected from the target database by Data Safe.AuditEventSummary.BuildertrailSource(AuditTrailSource trailSource)The underlying source of unified audit trail.
 
- 
- 
- 
Method Detail- 
idpublic AuditEventSummary.Builder id(String id) The OCID of the audit event.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic AuditEventSummary.Builder compartmentId(String compartmentId) The OCID of the compartment containing the audit event.The compartment is the same as that of audit profile of the target database resource. - Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
dbUserNamepublic AuditEventSummary.Builder dbUserName(String dbUserName) The name of the database user whose actions were audited.- Parameters:
- dbUserName- the value to set
- Returns:
- this builder
 
 - 
targetIdpublic AuditEventSummary.Builder targetId(String targetId) The OCID of the target database that was audited.- Parameters:
- targetId- the value to set
- Returns:
- this builder
 
 - 
targetNamepublic AuditEventSummary.Builder targetName(String targetName) The name of the target database that was audited.- Parameters:
- targetName- the value to set
- Returns:
- this builder
 
 - 
databaseTypepublic AuditEventSummary.Builder databaseType(AuditEventSummary.DatabaseType databaseType) The type of the target database that was audited.Allowed values are - DATABASE_CLOUD_SERVICE - Represents Oracle Database Cloud Services. - AUTONOMOUS_DATABASE - Represents Oracle Autonomous Databases. - INSTALLED_DATABASE - Represents databases running on-premises or on compute instances.
 - Parameters:
- databaseType- the value to set
- Returns:
- this builder
 
 - 
targetClasspublic AuditEventSummary.Builder targetClass(AuditEventSummary.TargetClass targetClass) The class of the target that was audited.- Parameters:
- targetClass- the value to set
- Returns:
- this builder
 
 - 
auditEventTimepublic AuditEventSummary.Builder auditEventTime(Date auditEventTime) The time that the audit event occurs in the target database.- Parameters:
- auditEventTime- the value to set
- Returns:
- this builder
 
 - 
timeCollectedpublic AuditEventSummary.Builder timeCollected(Date timeCollected) The timestamp when this audit event was collected from the target database by Data Safe.- Parameters:
- timeCollected- the value to set
- Returns:
- this builder
 
 - 
osUserNamepublic AuditEventSummary.Builder osUserName(String osUserName) The name of the operating system user for the database session.- Parameters:
- osUserName- the value to set
- Returns:
- this builder
 
 - 
operationpublic AuditEventSummary.Builder operation(String operation) The name of the action executed by the user on the target database.For example ALTER, CREATE or DROP. - Parameters:
- operation- the value to set
- Returns:
- this builder
 
 - 
operationStatuspublic AuditEventSummary.Builder operationStatus(AuditEventSummary.OperationStatus operationStatus) Indicates whether the operation was a success or a failure.- Parameters:
- operationStatus- the value to set
- Returns:
- this builder
 
 - 
eventNamepublic AuditEventSummary.Builder eventName(String eventName) The name of the detail action executed by the user on the target database.For example ALTER SEQUENCE, CREATE TRIGGER or CREATE INDEX. - Parameters:
- eventName- the value to set
- Returns:
- this builder
 
 - 
errorCodepublic AuditEventSummary.Builder errorCode(String errorCode) Oracle Error code generated by the action.Zero indicates the action was successful. - Parameters:
- errorCode- the value to set
- Returns:
- this builder
 
 - 
errorMessagepublic AuditEventSummary.Builder errorMessage(String errorMessage) The detailed message on why the error occurred.- Parameters:
- errorMessage- the value to set
- Returns:
- this builder
 
 - 
objectTypepublic AuditEventSummary.Builder objectType(String objectType) The type of the object in the source database affected by the action.For example PL/SQL, SYNONYM or PACKAGE BODY. - Parameters:
- objectType- the value to set
- Returns:
- this builder
 
 - 
objectNamepublic AuditEventSummary.Builder objectName(String objectName) The name of the object affected by the action.- Parameters:
- objectName- the value to set
- Returns:
- this builder
 
 - 
objectOwnerpublic AuditEventSummary.Builder objectOwner(String objectOwner) The schema name of the object affected by the action.- Parameters:
- objectOwner- the value to set
- Returns:
- this builder
 
 - 
clientHostnamepublic AuditEventSummary.Builder clientHostname(String clientHostname) The name of the host machine from which the session was spawned.- Parameters:
- clientHostname- the value to set
- Returns:
- this builder
 
 - 
clientIppublic AuditEventSummary.Builder clientIp(String clientIp) The IP address of the host machine from which the session was spawned.- Parameters:
- clientIp- the value to set
- Returns:
- this builder
 
 - 
auditTrailIdpublic AuditEventSummary.Builder auditTrailId(String auditTrailId) The OCID of the audit trail that generated this audit event.To be noted, this field has been deprecated. - Parameters:
- auditTrailId- the value to set
- Returns:
- this builder
 
 - 
isAlertedpublic AuditEventSummary.Builder isAlerted(Boolean isAlerted) Indicates whether an alert was raised for this audit event.- Parameters:
- isAlerted- the value to set
- Returns:
- this builder
 
 - 
actionTakenpublic AuditEventSummary.Builder actionTaken(String actionTaken) The action taken for this audit event.- Parameters:
- actionTaken- the value to set
- Returns:
- this builder
 
 - 
clientProgrampublic AuditEventSummary.Builder clientProgram(String clientProgram) The application from which the audit event was generated.For example SQL Plus or SQL Developer. - Parameters:
- clientProgram- the value to set
- Returns:
- this builder
 
 - 
commandTextpublic AuditEventSummary.Builder commandText(String commandText) The SQL associated with the audit event.- Parameters:
- commandText- the value to set
- Returns:
- this builder
 
 - 
commandParampublic AuditEventSummary.Builder commandParam(String commandParam) List of bind variables associated with the command text.- Parameters:
- commandParam- the value to set
- Returns:
- this builder
 
 - 
extendedEventAttributespublic AuditEventSummary.Builder extendedEventAttributes(String extendedEventAttributes) List of all other attributes of the audit event seperated by a colon other than the one returned in audit record.- Parameters:
- extendedEventAttributes- the value to set
- Returns:
- this builder
 
 - 
auditLocationpublic AuditEventSummary.Builder auditLocation(AuditEventSummary.AuditLocation auditLocation) The location of the audit.Currently the value is audit table. - Parameters:
- auditLocation- the value to set
- Returns:
- this builder
 
 - 
osTerminalpublic AuditEventSummary.Builder osTerminal(String osTerminal) The operating system terminal of the user session.- Parameters:
- osTerminal- the value to set
- Returns:
- this builder
 
 - 
clientIdpublic AuditEventSummary.Builder clientId(String clientId) The client identifier in each Oracle session.- Parameters:
- clientId- the value to set
- Returns:
- this builder
 
 - 
auditPoliciespublic AuditEventSummary.Builder auditPolicies(String auditPolicies) Comma-seperated list of audit policies that caused the current audit event.- Parameters:
- auditPolicies- the value to set
- Returns:
- this builder
 
 - 
auditTypepublic AuditEventSummary.Builder auditType(AuditEventSummary.AuditType auditType) The type of the auditing.- Parameters:
- auditType- the value to set
- Returns:
- this builder
 
 - 
externalUserIdpublic AuditEventSummary.Builder externalUserId(String externalUserId) The user ID of the external user of the audit event.- Parameters:
- externalUserId- the value to set
- Returns:
- this builder
 
 - 
targetUserpublic AuditEventSummary.Builder targetUser(String targetUser) The user on whom the GRANT/REVOKE/AUDIT/NOAUDIT statement was executed.- Parameters:
- targetUser- the value to set
- Returns:
- this builder
 
 - 
peerTargetDatabaseKeypublic AuditEventSummary.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 AuditEventSummary.Builder trailSource(AuditTrailSource trailSource) The underlying source of unified audit trail.- Parameters:
- trailSource- the value to set
- Returns:
- this builder
 
 - 
databaseUniqueNamepublic AuditEventSummary.Builder databaseUniqueName(String databaseUniqueName) Unique name of the database associated to the peer target database.- Parameters:
- databaseUniqueName- the value to set
- Returns:
- this builder
 
 - 
applicationContextspublic AuditEventSummary.Builder applicationContexts(String applicationContexts) Semicolon-seperated list of application context namespace, attribute, value information in (APPCTX_NSPACE,APPCTX_ATTRIBUTE=) format. - Parameters:
- applicationContexts- the value to set
- Returns:
- this builder
 
 - 
fgaPolicyNamepublic AuditEventSummary.Builder fgaPolicyName(String fgaPolicyName) Fine-grained auditing (FGA) policy name that generated this audit record.- Parameters:
- fgaPolicyName- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic AuditEventSummary.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 AuditEventSummary.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
 
 - 
buildpublic AuditEventSummary build() 
 - 
copypublic AuditEventSummary.Builder copy(AuditEventSummary model) 
 
- 
 
-