Interface GetClusterSessionCredentialsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetClusterSessionCredentialsResponse.Builder,
,GetClusterSessionCredentialsResponse> EmrResponse.Builder
,SdkBuilder<GetClusterSessionCredentialsResponse.Builder,
,GetClusterSessionCredentialsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetClusterSessionCredentialsResponse
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 theGetClusterSessionCredentials
API expire.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.emr.model.EmrResponse.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, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaCredentials.builder()
.When the
Consumer
completes,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
GetClusterSessionCredentials
API expire.- Parameters:
expiresAt
- The time when the credentials that are returned by theGetClusterSessionCredentials
API expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-