Interface GetClusterSessionCredentialsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetClusterSessionCredentialsResponse.Builder,,GetClusterSessionCredentialsResponse> EmrResponse.Builder,SdkBuilder<GetClusterSessionCredentialsResponse.Builder,,GetClusterSessionCredentialsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetClusterSessionCredentialsResponse
@Mutable
@NotThreadSafe
public static interface GetClusterSessionCredentialsResponse.Builder
extends EmrResponse.Builder, SdkPojo, CopyableBuilder<GetClusterSessionCredentialsResponse.Builder,GetClusterSessionCredentialsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncredentials(Consumer<Credentials.Builder> credentials) The credentials that you can use to connect to cluster endpoints that support username and password authentication.credentials(Credentials credentials) The credentials that you can use to connect to cluster endpoints that support username and password authentication.The time when the credentials that are returned by theGetClusterSessionCredentialsAPI expire.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.emr.model.EmrResponse.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
-
credentials
The credentials that you can use to connect to cluster endpoints that support username and password authentication.
- Parameters:
credentials- The credentials that you can use to connect to cluster endpoints that support username and password authentication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentials
default GetClusterSessionCredentialsResponse.Builder credentials(Consumer<Credentials.Builder> credentials) The credentials that you can use to connect to cluster endpoints that support username and password authentication.
This is a convenience method that creates an instance of theCredentials.Builderavoiding the need to create one manually viaCredentials.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocredentials(Credentials).- Parameters:
credentials- a consumer that will call methods onCredentials.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expiresAt
The time when the credentials that are returned by the
GetClusterSessionCredentialsAPI expire.- Parameters:
expiresAt- The time when the credentials that are returned by theGetClusterSessionCredentialsAPI expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-