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