Class AuditEventSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.AuditEventSummary.Builder
-
- Enclosing class:
- AuditEventSummary
public static class AuditEventSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All 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
-
id
public AuditEventSummary.Builder id(String id)
The OCID of the audit event.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public 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
-
dbUserName
public AuditEventSummary.Builder dbUserName(String dbUserName)
The name of the database user whose actions were audited.- Parameters:
dbUserName- the value to set- Returns:
- this builder
-
targetId
public AuditEventSummary.Builder targetId(String targetId)
The OCID of the target database that was audited.- Parameters:
targetId- the value to set- Returns:
- this builder
-
targetName
public AuditEventSummary.Builder targetName(String targetName)
The name of the target database that was audited.- Parameters:
targetName- the value to set- Returns:
- this builder
-
databaseType
public 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
-
targetClass
public AuditEventSummary.Builder targetClass(AuditEventSummary.TargetClass targetClass)
The class of the target that was audited.- Parameters:
targetClass- the value to set- Returns:
- this builder
-
auditEventTime
public 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
-
timeCollected
public 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
-
osUserName
public 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
-
operation
public 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
-
operationStatus
public 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
-
eventName
public 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
-
errorCode
public 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
-
errorMessage
public AuditEventSummary.Builder errorMessage(String errorMessage)
The detailed message on why the error occurred.- Parameters:
errorMessage- the value to set- Returns:
- this builder
-
objectType
public 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
-
objectName
public AuditEventSummary.Builder objectName(String objectName)
The name of the object affected by the action.- Parameters:
objectName- the value to set- Returns:
- this builder
-
objectOwner
public AuditEventSummary.Builder objectOwner(String objectOwner)
The schema name of the object affected by the action.- Parameters:
objectOwner- the value to set- Returns:
- this builder
-
clientHostname
public 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
-
clientIp
public 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
-
auditTrailId
public 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
-
isAlerted
public AuditEventSummary.Builder isAlerted(Boolean isAlerted)
Indicates whether an alert was raised for this audit event.- Parameters:
isAlerted- the value to set- Returns:
- this builder
-
actionTaken
public AuditEventSummary.Builder actionTaken(String actionTaken)
The action taken for this audit event.- Parameters:
actionTaken- the value to set- Returns:
- this builder
-
clientProgram
public 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
-
commandText
public AuditEventSummary.Builder commandText(String commandText)
The SQL associated with the audit event.- Parameters:
commandText- the value to set- Returns:
- this builder
-
commandParam
public AuditEventSummary.Builder commandParam(String commandParam)
List of bind variables associated with the command text.- Parameters:
commandParam- the value to set- Returns:
- this builder
-
extendedEventAttributes
public 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
-
auditLocation
public 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
-
osTerminal
public AuditEventSummary.Builder osTerminal(String osTerminal)
The operating system terminal of the user session.- Parameters:
osTerminal- the value to set- Returns:
- this builder
-
clientId
public AuditEventSummary.Builder clientId(String clientId)
The client identifier in each Oracle session.- Parameters:
clientId- the value to set- Returns:
- this builder
-
auditPolicies
public 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
-
auditType
public AuditEventSummary.Builder auditType(AuditEventSummary.AuditType auditType)
The type of the auditing.- Parameters:
auditType- the value to set- Returns:
- this builder
-
externalUserId
public 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
-
targetUser
public 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
-
peerTargetDatabaseKey
public 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
-
trailSource
public AuditEventSummary.Builder trailSource(AuditTrailSource trailSource)
The underlying source of unified audit trail.- Parameters:
trailSource- the value to set- Returns:
- this builder
-
databaseUniqueName
public 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
-
applicationContexts
public 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
-
fgaPolicyName
public 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
-
freeformTags
public 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
-
definedTags
public 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
-
build
public AuditEventSummary build()
-
copy
public AuditEventSummary.Builder copy(AuditEventSummary model)
-
-