Interface ListGroupsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListGroupsResponse.Builder,
,ListGroupsResponse> SdkBuilder<ListGroupsResponse.Builder,
,ListGroupsResponse> SdkPojo
,SdkResponse.Builder
,WorkMailResponse.Builder
- Enclosing class:
ListGroupsResponse
@Mutable
@NotThreadSafe
public static interface ListGroupsResponse.Builder
extends WorkMailResponse.Builder, SdkPojo, CopyableBuilder<ListGroupsResponse.Builder,ListGroupsResponse>
-
Method Summary
Modifier and TypeMethodDescriptiongroups
(Collection<Group> groups) The overview of groups for an organization.groups
(Consumer<Group.Builder>... groups) The overview of groups for an organization.The overview of groups for an organization.The token to use to retrieve the next page of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.workmail.model.WorkMailResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
groups
The overview of groups for an organization.
- Parameters:
groups
- The overview of groups for an organization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The overview of groups for an organization.
- Parameters:
groups
- The overview of groups for an organization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The overview of groups for an organization.
This is a convenience method that creates an instance of theGroup.Builder
avoiding the need to create one manually viaGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroups(List<Group>)
.- Parameters:
groups
- a consumer that will call methods onGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.
- Parameters:
nextToken
- The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-