Interface GetRoleCredentialsResponse.Builder
- All Superinterfaces:
AccountAccessRuntimeResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetRoleCredentialsResponse.Builder,,GetRoleCredentialsResponse> SdkBuilder<GetRoleCredentialsResponse.Builder,,GetRoleCredentialsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetRoleCredentialsResponse
@Mutable
@NotThreadSafe
public static interface GetRoleCredentialsResponse.Builder
extends AccountAccessRuntimeResponse.Builder, SdkPojo, CopyableBuilder<GetRoleCredentialsResponse.Builder,GetRoleCredentialsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncredentialsDetails(Consumer<CredentialsDetails.Builder> credentialsDetails) The temporary credentials that the service returns for the requested role.credentialsDetails(CredentialsDetails credentialsDetails) The temporary credentials that the service returns for the requested role.Methods inherited from interface software.amazon.awssdk.services.accountaccessruntime.model.AccountAccessRuntimeResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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
-
credentialsDetails
The temporary credentials that the service returns for the requested role.
- Parameters:
credentialsDetails- The temporary credentials that the service returns for the requested role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentialsDetails
default GetRoleCredentialsResponse.Builder credentialsDetails(Consumer<CredentialsDetails.Builder> credentialsDetails) The temporary credentials that the service returns for the requested role.
This is a convenience method that creates an instance of theCredentialsDetails.Builderavoiding the need to create one manually viaCredentialsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocredentialsDetails(CredentialsDetails).- Parameters:
credentialsDetails- a consumer that will call methods onCredentialsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-