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.Builderrole(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
copyMethods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
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.Builderavoiding the need to create one manually viaRole.builder().When the
Consumercompletes,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:
-