Class CreatePolicyDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.identity.model.CreatePolicyDetails.Builder
 
- 
- Enclosing class:
- CreatePolicyDetails
 
 public static class CreatePolicyDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePolicyDetailsbuild()CreatePolicyDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the policy (either the tenancy or another compartment).CreatePolicyDetails.Buildercopy(CreatePolicyDetails model)CreatePolicyDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreatePolicyDetails.Builderdescription(String description)The description you assign to the policy during creation.CreatePolicyDetails.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CreatePolicyDetails.Buildername(String name)The name you assign to the policy during creation.CreatePolicyDetails.Builderstatements(List<String> statements)An array of policy statements written in the policy language.CreatePolicyDetails.BuilderversionDate(Date versionDate)The version of the policy.
 
- 
- 
- 
Method Detail- 
compartmentIdpublic CreatePolicyDetails.Builder compartmentId(String compartmentId) The OCID of the compartment containing the policy (either the tenancy or another compartment).- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
namepublic CreatePolicyDetails.Builder name(String name) The name you assign to the policy during creation.The name must be unique across all policies in the tenancy and cannot be changed. - Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
statementspublic CreatePolicyDetails.Builder statements(List<String> statements) An array of policy statements written in the policy language.See How Policies Work and Common Policies. - Parameters:
- statements- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic CreatePolicyDetails.Builder description(String description) The description you assign to the policy during creation.Does not have to be unique, and it’s changeable. - Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
versionDatepublic CreatePolicyDetails.Builder versionDate(Date versionDate) The version of the policy.If null or set to an empty string, when a request comes in for authorization, the policy will be evaluated according to the current behavior of the services at that moment. If set to a particular date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. - Parameters:
- versionDate- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic CreatePolicyDetails.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 CreatePolicyDetails.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 CreatePolicyDetails build() 
 - 
copypublic CreatePolicyDetails.Builder copy(CreatePolicyDetails model) 
 
- 
 
-