Interface ListRolesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListRolesResponse.Builder,
,ListRolesResponse> IamResponse.Builder
,SdkBuilder<ListRolesResponse.Builder,
,ListRolesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListRolesResponse
public static interface ListRolesResponse.Builder
extends IamResponse.Builder, SdkPojo, CopyableBuilder<ListRolesResponse.Builder,ListRolesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionisTruncated
(Boolean isTruncated) A flag that indicates whether there are more items to return.WhenIsTruncated
istrue
, this element is present and contains the value to use for theMarker
parameter in a subsequent pagination request.roles
(Collection<Role> roles) A list of roles.roles
(Consumer<Role.Builder>... roles) A list of roles.A list of roles.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
roles
A list of roles.
- Parameters:
roles
- A list of roles.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
A list of roles.
- Parameters:
roles
- A list of roles.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
A list of roles.
This is a convenience method that creates an instance of theRole.Builder
avoiding the need to create one manually viaRole.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toroles(List<Role>)
.- Parameters:
roles
- a consumer that will call methods onRole.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isTruncated
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the
Marker
request parameter to retrieve more items. Note that IAM might return fewer than theMaxItems
number of results even when there are more results available. We recommend that you checkIsTruncated
after every call to ensure that you receive all your results.- Parameters:
isTruncated
- A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using theMarker
request parameter to retrieve more items. Note that IAM might return fewer than theMaxItems
number of results even when there are more results available. We recommend that you checkIsTruncated
after every call to ensure that you receive all your results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
marker
When
IsTruncated
istrue
, this element is present and contains the value to use for theMarker
parameter in a subsequent pagination request.- Parameters:
marker
- WhenIsTruncated
istrue
, this element is present and contains the value to use for theMarker
parameter in a subsequent pagination request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-