Interface ListImpersonationRolesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListImpersonationRolesResponse.Builder,
,ListImpersonationRolesResponse> SdkBuilder<ListImpersonationRolesResponse.Builder,
,ListImpersonationRolesResponse> SdkPojo
,SdkResponse.Builder
,WorkMailResponse.Builder
- Enclosing class:
ListImpersonationRolesResponse
@Mutable
@NotThreadSafe
public static interface ListImpersonationRolesResponse.Builder
extends WorkMailResponse.Builder, SdkPojo, CopyableBuilder<ListImpersonationRolesResponse.Builder,ListImpersonationRolesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to retrieve the next page of results.roles
(Collection<ImpersonationRole> roles) The list of impersonation roles under the given WorkMail organization.roles
(Consumer<ImpersonationRole.Builder>... roles) The list of impersonation roles under the given WorkMail organization.roles
(ImpersonationRole... roles) The list of impersonation roles under the given WorkMail organization.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
-
roles
The list of impersonation roles under the given WorkMail organization.
- Parameters:
roles
- The list of impersonation roles under the given WorkMail organization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The list of impersonation roles under the given WorkMail organization.
- Parameters:
roles
- The list of impersonation roles under the given WorkMail organization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The list of impersonation roles under the given WorkMail organization.
This is a convenience method that creates an instance of theImpersonationRole.Builder
avoiding the need to create one manually viaImpersonationRole.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toroles(List<ImpersonationRole>)
.- Parameters:
roles
- a consumer that will call methods onImpersonationRole.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to retrieve the next page of results. The value is
null
when there are no results to return.- Parameters:
nextToken
- The token to retrieve the next page of results. The value isnull
when there are no results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-