Package com.oracle.bmc.identity.model
Class CreateCompartmentDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.CreateCompartmentDetails.Builder
-
- Enclosing class:
- CreateCompartmentDetails
public static class CreateCompartmentDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCompartmentDetails
build()
CreateCompartmentDetails.Builder
compartmentId(String compartmentId)
The OCID of the parent compartment containing the compartment.CreateCompartmentDetails.Builder
copy(CreateCompartmentDetails model)
CreateCompartmentDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateCompartmentDetails.Builder
description(String description)
The description you assign to the compartment during creation.CreateCompartmentDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.CreateCompartmentDetails.Builder
name(String name)
The name you assign to the compartment during creation.
-
-
-
Method Detail
-
compartmentId
public CreateCompartmentDetails.Builder compartmentId(String compartmentId)
The OCID of the parent compartment containing the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
name
public CreateCompartmentDetails.Builder name(String name)
The name you assign to the compartment during creation.The name must be unique across all compartments in the parent compartment. Avoid entering confidential information.
- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public CreateCompartmentDetails.Builder description(String description)
The description you assign to the compartment during creation.Does not have to be unique, and it’s changeable.
- Parameters:
description
- the value to set- Returns:
- this builder
-
freeformTags
public CreateCompartmentDetails.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 CreateCompartmentDetails.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 CreateCompartmentDetails build()
-
copy
public CreateCompartmentDetails.Builder copy(CreateCompartmentDetails model)
-
-