Interface GetRoleResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetRoleResponse.Builder,
,GetRoleResponse> IamResponse.Builder
,SdkBuilder<GetRoleResponse.Builder,
,GetRoleResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetRoleResponse
public static interface GetRoleResponse.Builder
extends IamResponse.Builder, SdkPojo, CopyableBuilder<GetRoleResponse.Builder,GetRoleResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetRoleResponse.Builder
role
(Consumer<Role.Builder> role) A structure containing details about the IAM role.A structure containing details about the IAM role.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
-
role
A structure containing details about the IAM role.
- Parameters:
role
- A structure containing details about the IAM role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
role
A structure containing details about the IAM role.
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 torole(Role)
.- Parameters:
role
- 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:
-