Package com.oracle.bmc.identity.model
Class UserGroupMembership.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.UserGroupMembership.Builder
-
- Enclosing class:
- UserGroupMembership
public static class UserGroupMembership.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserGroupMembership
build()
UserGroupMembership.Builder
compartmentId(String compartmentId)
The OCID of the tenancy containing the user, group, and membership object.UserGroupMembership.Builder
copy(UserGroupMembership model)
UserGroupMembership.Builder
groupId(String groupId)
The OCID of the group.UserGroupMembership.Builder
id(String id)
The OCID of the membership.UserGroupMembership.Builder
inactiveStatus(Long inactiveStatus)
The detailed status of INACTIVE lifecycleState.UserGroupMembership.Builder
lifecycleState(UserGroupMembership.LifecycleState lifecycleState)
The membership’s current state.UserGroupMembership.Builder
timeCreated(Date timeCreated)
Date and time the membership was created, in the format defined by RFC3339.UserGroupMembership.Builder
userId(String userId)
The OCID of the user.
-
-
-
Method Detail
-
id
public UserGroupMembership.Builder id(String id)
The OCID of the membership.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public UserGroupMembership.Builder compartmentId(String compartmentId)
The OCID of the tenancy containing the user, group, and membership object.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
groupId
public UserGroupMembership.Builder groupId(String groupId)
The OCID of the group.- Parameters:
groupId
- the value to set- Returns:
- this builder
-
userId
public UserGroupMembership.Builder userId(String userId)
The OCID of the user.- Parameters:
userId
- the value to set- Returns:
- this builder
-
timeCreated
public UserGroupMembership.Builder timeCreated(Date timeCreated)
Date and time the membership 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 UserGroupMembership.Builder lifecycleState(UserGroupMembership.LifecycleState lifecycleState)
The membership’s current state.After creating a membership object, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
inactiveStatus
public UserGroupMembership.Builder inactiveStatus(Long inactiveStatus)
The detailed status of INACTIVE lifecycleState.- Parameters:
inactiveStatus
- the value to set- Returns:
- this builder
-
build
public UserGroupMembership build()
-
copy
public UserGroupMembership.Builder copy(UserGroupMembership model)
-
-