public static class Compartment.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Compartment |
build() |
Compartment.Builder |
compartmentId(String compartmentId)
The OCID of the parent compartment containing the compartment.
|
Compartment.Builder |
copy(Compartment model) |
Compartment.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Compartment.Builder |
description(String description)
The description you assign to the compartment.
|
Compartment.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
Compartment.Builder |
id(String id)
The OCID of the compartment.
|
Compartment.Builder |
inactiveStatus(Long inactiveStatus)
The detailed status of INACTIVE lifecycleState.
|
Compartment.Builder |
isAccessible(Boolean isAccessible)
Indicates whether or not the compartment is accessible for the user making the request.
|
Compartment.Builder |
lifecycleState(Compartment.LifecycleState lifecycleState)
The compartment’s current state.
|
Compartment.Builder |
name(String name)
The name you assign to the compartment during creation.
|
Compartment.Builder |
timeCreated(Date timeCreated)
Date and time the compartment was created, in the format defined by RFC3339.
|
public Compartment.Builder id(String id)
The OCID of the compartment.
id
- the value to setpublic Compartment.Builder compartmentId(String compartmentId)
The OCID of the parent compartment containing the compartment.
compartmentId
- the value to setpublic Compartment.Builder name(String name)
The name you assign to the compartment during creation. The name must be unique across all compartments in the parent. Avoid entering confidential information.
name
- the value to setpublic Compartment.Builder description(String description)
The description you assign to the compartment. Does not have to be unique, and it’s changeable.
description
- the value to setpublic Compartment.Builder timeCreated(Date timeCreated)
Date and time the compartment was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic Compartment.Builder lifecycleState(Compartment.LifecycleState lifecycleState)
The compartment’s current state. After creating a compartment, make sure its lifecycleState
changes from CREATING to ACTIVE before using it.
lifecycleState
- the value to setpublic Compartment.Builder inactiveStatus(Long inactiveStatus)
The detailed status of INACTIVE lifecycleState.
inactiveStatus
- the value to setpublic Compartment.Builder isAccessible(Boolean isAccessible)
Indicates whether or not the compartment is accessible for the user making the request. Returns true when the user has INSPECT permissions directly on a resource in the compartment or indirectly (permissions can be on a resource in a subcompartment).
isAccessible
- the value to setpublic Compartment.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"}
freeformTags
- the value to setpublic Compartment.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"}}
definedTags
- the value to setpublic Compartment build()
public Compartment.Builder copy(Compartment model)
Copyright © 2016–2024. All rights reserved.