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.BuilderauditPolicyCategory(AuditPolicyCategory auditPolicyCategory)The category to which the audit policy belongs.AuditSpecification.BuilderauditPolicyName(String auditPolicyName)Indicates the audit policy name.AuditSpecificationbuild()AuditSpecification.Buildercopy(AuditSpecification model)AuditSpecification.BuilderdatabasePolicyNames(List<String> databasePolicyNames)Indicates the names of corresponding database policy ( or policies) in the target database.AuditSpecification.BuilderenabledEntities(AuditSpecification.EnabledEntities enabledEntities)Indicates on whom the audit policy is enabled.AuditSpecification.BuilderenableStatus(AuditSpecification.EnableStatus enableStatus)Indicates whether the policy has been enabled, disabled or partially enabled in the target database.AuditSpecification.BuilderisCreated(Boolean isCreated)Indicates whether the policy is already created on the target database.AuditSpecification.BuilderisEnabledForAllUsers(Boolean isEnabledForAllUsers)Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.AuditSpecification.BuilderisSeededInDataSafe(Boolean isSeededInDataSafe)Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.AuditSpecification.BuilderisSeededInTarget(Boolean isSeededInTarget)Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.AuditSpecification.BuilderisViewOnly(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.BuilderpartiallyEnabledMsg(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)
-
-