Interface ListRolesResponse.Builder
- All Superinterfaces:
AccountAccessRuntimeResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<ListRolesResponse.Builder,,ListRolesResponse> SdkBuilder<ListRolesResponse.Builder,,ListRolesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListRolesResponse
@Mutable
@NotThreadSafe
public static interface ListRolesResponse.Builder
extends AccountAccessRuntimeResponse.Builder, SdkPojo, CopyableBuilder<ListRolesResponse.Builder,ListRolesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe pagination token to include in a subsequentListRolesrequest to retrieve the next page of results.roles(Collection<AccessDetails> roles) The list of roles that you can access in the tenant.roles(Consumer<AccessDetails.Builder>... roles) The list of roles that you can access in the tenant.roles(AccessDetails... roles) The list of roles that you can access in the tenant.Methods inherited from interface software.amazon.awssdk.services.accountaccessruntime.model.AccountAccessRuntimeResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
roles
The list of roles that you can access in the tenant. Each entry describes an Amazon Web Services account and a role.
- Parameters:
roles- The list of roles that you can access in the tenant. Each entry describes an Amazon Web Services account and a role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The list of roles that you can access in the tenant. Each entry describes an Amazon Web Services account and a role.
- Parameters:
roles- The list of roles that you can access in the tenant. Each entry describes an Amazon Web Services account and a role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The list of roles that you can access in the tenant. Each entry describes an Amazon Web Services account and a role.
This is a convenience method that creates an instance of theAccessDetails.Builderavoiding the need to create one manually viaAccessDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toroles(List<AccessDetails>).- Parameters:
roles- a consumer that will call methods onAccessDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token to include in a subsequent
ListRolesrequest to retrieve the next page of results. This value is absent when there are no more results to return.- Parameters:
nextToken- The pagination token to include in a subsequentListRolesrequest to retrieve the next page of results. This value is absent when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-