Interface GetManagedEndpointSessionCredentialsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetManagedEndpointSessionCredentialsResponse.Builder,
,GetManagedEndpointSessionCredentialsResponse> EmrContainersResponse.Builder
,SdkBuilder<GetManagedEndpointSessionCredentialsResponse.Builder,
,GetManagedEndpointSessionCredentialsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetManagedEndpointSessionCredentialsResponse
public static interface GetManagedEndpointSessionCredentialsResponse.Builder
extends EmrContainersResponse.Builder, SdkPojo, CopyableBuilder<GetManagedEndpointSessionCredentialsResponse.Builder,GetManagedEndpointSessionCredentialsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncredentials
(Consumer<Credentials.Builder> credentials) The structure containing the session credentials.credentials
(Credentials credentials) The structure containing the session credentials.The date and time when the session token will expire.The identifier of the session token returned.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.emrcontainers.model.EmrContainersResponse.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
-
id
The identifier of the session token returned.
- Parameters:
id
- The identifier of the session token returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentials
The structure containing the session credentials.
- Parameters:
credentials
- The structure containing the session credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentials
default GetManagedEndpointSessionCredentialsResponse.Builder credentials(Consumer<Credentials.Builder> credentials) The structure containing the session credentials.
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 date and time when the session token will expire.
- Parameters:
expiresAt
- The date and time when the session token will expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-