public static class GroupUpdateArgs.Builder extends Object
GroupUpdateArgs
.Modifier and Type | Field and Description |
---|---|
protected GroupSelector |
group |
protected String |
newGroupExternalId |
protected String |
newGroupName |
protected boolean |
returnMembers |
Modifier | Constructor and Description |
---|---|
protected |
Builder(GroupSelector group) |
Modifier and Type | Method and Description |
---|---|
GroupUpdateArgs |
build()
Builds an instance of
GroupUpdateArgs configured with this
builder's values |
GroupUpdateArgs.Builder |
withNewGroupExternalId(String newGroupExternalId)
Set value for optional field.
|
GroupUpdateArgs.Builder |
withNewGroupName(String newGroupName)
Set value for optional field.
|
GroupUpdateArgs.Builder |
withReturnMembers(Boolean returnMembers)
Set value for optional field.
|
protected final GroupSelector group
protected boolean returnMembers
protected String newGroupName
protected String newGroupExternalId
protected Builder(GroupSelector group)
public GroupUpdateArgs.Builder withReturnMembers(Boolean returnMembers)
If left unset or set to null
, defaults to true
.
returnMembers
- Whether to return the list of members in the
group. Note that the default value will cause all the group
members to be returned in the response. This may take a long
time for large groups. Defaults to true
when set to
null
.public GroupUpdateArgs.Builder withNewGroupName(String newGroupName)
newGroupName
- Optional argument. Set group name to this if
provided.public GroupUpdateArgs.Builder withNewGroupExternalId(String newGroupExternalId)
newGroupExternalId
- Optional argument. New group external ID.
If the argument is None, the group's external_id won't be
updated. If the argument is empty string, the group's external id
will be cleared.public GroupUpdateArgs build()
GroupUpdateArgs
configured with this
builder's valuesGroupUpdateArgs