Package com.oracle.bmc.datasafe.model
Class AuditSpecification.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.AuditSpecification.Builder
-
- Enclosing class:
- AuditSpecification
public static class AuditSpecification.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditSpecification.Builder
auditPolicyCategory(AuditPolicyCategory auditPolicyCategory)
The category to which the audit policy belongs.AuditSpecification.Builder
auditPolicyName(String auditPolicyName)
Indicates the audit policy name.AuditSpecification
build()
AuditSpecification.Builder
copy(AuditSpecification model)
AuditSpecification.Builder
databasePolicyNames(List<String> databasePolicyNames)
Indicates the names of corresponding database policy ( or policies) in the target database.AuditSpecification.Builder
enabledEntities(AuditSpecification.EnabledEntities enabledEntities)
Indicates on whom the audit policy is enabled.AuditSpecification.Builder
enableStatus(AuditSpecification.EnableStatus enableStatus)
Indicates whether the policy has been enabled, disabled or partially enabled in the target database.AuditSpecification.Builder
isCreated(Boolean isCreated)
Indicates whether the policy is already created on the target database.AuditSpecification.Builder
isEnabledForAllUsers(Boolean isEnabledForAllUsers)
Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.AuditSpecification.Builder
isSeededInDataSafe(Boolean isSeededInDataSafe)
Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.AuditSpecification.Builder
isSeededInTarget(Boolean isSeededInTarget)
Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.AuditSpecification.Builder
isViewOnly(Boolean isViewOnly)
Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.AuditSpecification.Builder
partiallyEnabledMsg(String partiallyEnabledMsg)
Provides information about the policy that has been only partially enabled.
-
-
-
Method Detail
-
auditPolicyName
public AuditSpecification.Builder auditPolicyName(String auditPolicyName)
Indicates the audit policy name.Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
- Parameters:
auditPolicyName
- the value to set- Returns:
- this builder
-
databasePolicyNames
public AuditSpecification.Builder databasePolicyNames(List<String> databasePolicyNames)
Indicates the names of corresponding database policy ( or policies) in the target database.- Parameters:
databasePolicyNames
- the value to set- Returns:
- this builder
-
auditPolicyCategory
public AuditSpecification.Builder auditPolicyCategory(AuditPolicyCategory auditPolicyCategory)
The category to which the audit policy belongs.- Parameters:
auditPolicyCategory
- the value to set- Returns:
- this builder
-
enableStatus
public AuditSpecification.Builder enableStatus(AuditSpecification.EnableStatus enableStatus)
Indicates whether the policy has been enabled, disabled or partially enabled in the target database.The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled.
- Parameters:
enableStatus
- the value to set- Returns:
- this builder
-
partiallyEnabledMsg
public AuditSpecification.Builder partiallyEnabledMsg(String partiallyEnabledMsg)
Provides information about the policy that has been only partially enabled.- Parameters:
partiallyEnabledMsg
- the value to set- Returns:
- this builder
-
isEnabledForAllUsers
public AuditSpecification.Builder isEnabledForAllUsers(Boolean isEnabledForAllUsers)
Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.- Parameters:
isEnabledForAllUsers
- the value to set- Returns:
- this builder
-
isViewOnly
public AuditSpecification.Builder isViewOnly(Boolean isViewOnly)
Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.- Parameters:
isViewOnly
- the value to set- Returns:
- this builder
-
isSeededInTarget
public AuditSpecification.Builder isSeededInTarget(Boolean isSeededInTarget)
Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.- Parameters:
isSeededInTarget
- the value to set- Returns:
- this builder
-
isSeededInDataSafe
public AuditSpecification.Builder isSeededInDataSafe(Boolean isSeededInDataSafe)
Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.- Parameters:
isSeededInDataSafe
- the value to set- Returns:
- this builder
-
isCreated
public AuditSpecification.Builder isCreated(Boolean isCreated)
Indicates whether the policy is already created on the target database.- Parameters:
isCreated
- the value to set- Returns:
- this builder
-
enabledEntities
public AuditSpecification.Builder enabledEntities(AuditSpecification.EnabledEntities enabledEntities)
Indicates on whom the audit policy is enabled.- Parameters:
enabledEntities
- the value to set- Returns:
- this builder
-
build
public AuditSpecification build()
-
copy
public AuditSpecification.Builder copy(AuditSpecification model)
-
-