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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetClusterSessionCredentialsResponse.Buildercredentials(Consumer<Credentials.Builder> credentials)The credentials that you can use to connect to cluster endpoints that support username and password authentication.GetClusterSessionCredentialsResponse.Buildercredentials(Credentials credentials)The credentials that you can use to connect to cluster endpoints that support username and password authentication.GetClusterSessionCredentialsResponse.BuilderexpiresAt(Instant expiresAt)The time when the credentials that are returned by theGetClusterSessionCredentialsAPI 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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
credentials
GetClusterSessionCredentialsResponse.Builder credentials(Credentials 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:
credentials(Credentials)
-
expiresAt
GetClusterSessionCredentialsResponse.Builder expiresAt(Instant 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.
-
-