Interface GetRoleResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetRoleResponse.Builder,GetRoleResponse>,IamResponse.Builder,SdkBuilder<GetRoleResponse.Builder,GetRoleResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetRoleResponse
@Mutable @NotThreadSafe public static interface GetRoleResponse.Builder extends IamResponse.Builder, SdkPojo, CopyableBuilder<GetRoleResponse.Builder,GetRoleResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetRoleResponse.Builderrole(Consumer<Role.Builder> role)A structure containing details about the IAM role.GetRoleResponse.Builderrole(Role 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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
role
GetRoleResponse.Builder role(Role 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
default GetRoleResponse.Builder role(Consumer<Role.Builder> 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:
role(Role)
-
-