Package com.oracle.bmc.datasafe.model
Class UnifiedAuditPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.UnifiedAuditPolicy.Builder
-
- Enclosing class:
- UnifiedAuditPolicy
public static class UnifiedAuditPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnifiedAuditPolicy
build()
UnifiedAuditPolicy.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the unified audit policy.UnifiedAuditPolicy.Builder
conditions(List<PolicyCondition> conditions)
Lists the audit policy provisioning conditions.UnifiedAuditPolicy.Builder
copy(UnifiedAuditPolicy model)
UnifiedAuditPolicy.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.UnifiedAuditPolicy.Builder
description(String description)
The description of the unified audit policy.UnifiedAuditPolicy.Builder
displayName(String displayName)
The display name of the unified audit policy.UnifiedAuditPolicy.Builder
enabledEntities(UnifiedAuditPolicy.EnabledEntities enabledEntities)
Indicates on whom the audit policy is enabled.UnifiedAuditPolicy.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.UnifiedAuditPolicy.Builder
id(String id)
The OCID of the unified audit policy.UnifiedAuditPolicy.Builder
isSeeded(Boolean isSeeded)
Indicates whether the unified audit policy is seeded or not.UnifiedAuditPolicy.Builder
lifecycleDetails(String lifecycleDetails)
The details of the current state of the unified audit policy in Data Safe.UnifiedAuditPolicy.Builder
lifecycleState(UnifiedAuditPolicyLifecycleState lifecycleState)
The current state of the unified audit policy.UnifiedAuditPolicy.Builder
securityPolicyId(String securityPolicyId)
The OCID of the security policy corresponding to the unified audit policy.UnifiedAuditPolicy.Builder
status(UnifiedAuditPolicy.Status status)
Indicates whether the policy has been enabled or disabled.UnifiedAuditPolicy.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.UnifiedAuditPolicy.Builder
timeCreated(Date timeCreated)
The time the the unified audit policy was created, in the format defined by RFC3339.UnifiedAuditPolicy.Builder
timeUpdated(Date timeUpdated)
The last date and time the unified audit policy was updated, in the format defined by RFC3339.UnifiedAuditPolicy.Builder
unifiedAuditPolicyDefinitionId(String unifiedAuditPolicyDefinitionId)
The OCID of the associated unified audit policy definition.
-
-
-
Method Detail
-
id
public UnifiedAuditPolicy.Builder id(String id)
The OCID of the unified audit policy.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public UnifiedAuditPolicy.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the unified audit policy.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public UnifiedAuditPolicy.Builder displayName(String displayName)
The display name of the unified audit policy.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public UnifiedAuditPolicy.Builder description(String description)
The description of the unified audit policy.- Parameters:
description
- the value to set- Returns:
- this builder
-
securityPolicyId
public UnifiedAuditPolicy.Builder securityPolicyId(String securityPolicyId)
The OCID of the security policy corresponding to the unified audit policy.- Parameters:
securityPolicyId
- the value to set- Returns:
- this builder
-
unifiedAuditPolicyDefinitionId
public UnifiedAuditPolicy.Builder unifiedAuditPolicyDefinitionId(String unifiedAuditPolicyDefinitionId)
The OCID of the associated unified audit policy definition.- Parameters:
unifiedAuditPolicyDefinitionId
- the value to set- Returns:
- this builder
-
lifecycleState
public UnifiedAuditPolicy.Builder lifecycleState(UnifiedAuditPolicyLifecycleState lifecycleState)
The current state of the unified audit policy.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public UnifiedAuditPolicy.Builder lifecycleDetails(String lifecycleDetails)
The details of the current state of the unified audit policy in Data Safe.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
isSeeded
public UnifiedAuditPolicy.Builder isSeeded(Boolean isSeeded)
Indicates whether the unified audit policy is seeded or not.- Parameters:
isSeeded
- the value to set- Returns:
- this builder
-
status
public UnifiedAuditPolicy.Builder status(UnifiedAuditPolicy.Status status)
Indicates whether the policy has been enabled or disabled.- Parameters:
status
- the value to set- Returns:
- this builder
-
enabledEntities
public UnifiedAuditPolicy.Builder enabledEntities(UnifiedAuditPolicy.EnabledEntities enabledEntities)
Indicates on whom the audit policy is enabled.- Parameters:
enabledEntities
- the value to set- Returns:
- this builder
-
conditions
public UnifiedAuditPolicy.Builder conditions(List<PolicyCondition> conditions)
Lists the audit policy provisioning conditions.- Parameters:
conditions
- the value to set- Returns:
- this builder
-
timeCreated
public UnifiedAuditPolicy.Builder timeCreated(Date timeCreated)
The time the the unified audit policy was created, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public UnifiedAuditPolicy.Builder timeUpdated(Date timeUpdated)
The last date and time the unified audit policy was updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
freeformTags
public UnifiedAuditPolicy.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 UnifiedAuditPolicy.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
-
systemTags
public UnifiedAuditPolicy.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
-
build
public UnifiedAuditPolicy build()
-
copy
public UnifiedAuditPolicy.Builder copy(UnifiedAuditPolicy model)
-
-