Package com.oracle.bmc.identity.model
Class Group.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.Group.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Group
build()
Group.Builder
compartmentId(String compartmentId)
The OCID of the tenancy containing the group.Group.Builder
copy(Group model)
Group.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Group.Builder
description(String description)
The description you assign to the group.Group.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Group.Builder
id(String id)
The OCID of the group.Group.Builder
inactiveStatus(Long inactiveStatus)
The detailed status of INACTIVE lifecycleState.Group.Builder
lifecycleState(Group.LifecycleState lifecycleState)
The group’s current state.Group.Builder
name(String name)
The name you assign to the group during creation.Group.Builder
timeCreated(Date timeCreated)
Date and time the group was created, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public Group.Builder id(String id)
The OCID of the group.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public Group.Builder compartmentId(String compartmentId)
The OCID of the tenancy containing the group.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
name
public Group.Builder name(String name)
The name you assign to the group during creation.The name must be unique across all groups in the tenancy and cannot be changed.
- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public Group.Builder description(String description)
The description you assign to the group.Does not have to be unique, and it’s changeable.
(For tenancies that support identity domains) You can have an empty description.
- Parameters:
description
- the value to set- Returns:
- this builder
-
timeCreated
public Group.Builder timeCreated(Date timeCreated)
Date and time the group was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
lifecycleState
public Group.Builder lifecycleState(Group.LifecycleState lifecycleState)
The group’s current state.After creating a group, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
inactiveStatus
public Group.Builder inactiveStatus(Long inactiveStatus)
The detailed status of INACTIVE lifecycleState.- Parameters:
inactiveStatus
- the value to set- Returns:
- this builder
-
freeformTags
public Group.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 Group.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 Group build()
-
copy
public Group.Builder copy(Group model)
-
-