Interface ListImpersonationRolesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListImpersonationRolesResponse.Builder,,ListImpersonationRolesResponse> SdkBuilder<ListImpersonationRolesResponse.Builder,,ListImpersonationRolesResponse> SdkPojo,SdkResponse.Builder,WorkMailResponse.Builder
- Enclosing class:
ListImpersonationRolesResponse
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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods 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.Builderavoiding the need to create one manually viaImpersonationRole.builder().When the
Consumercompletes,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
nullwhen there are no results to return.- Parameters:
nextToken- The token to retrieve the next page of results. The value isnullwhen there are no results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-