Interface StartSessionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartSessionRequest.Builder,,StartSessionRequest> EmrServerlessRequest.Builder,SdkBuilder<StartSessionRequest.Builder,,StartSessionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) The ID of the application on which to start the session.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.default StartSessionRequest.BuilderconfigurationOverrides(Consumer<SessionConfigurationOverrides.Builder> configurationOverrides) The configuration overrides for the session.configurationOverrides(SessionConfigurationOverrides configurationOverrides) The configuration overrides for the session.executionRoleArn(String executionRoleArn) The execution role ARN for the session.idleTimeoutMinutes(Long idleTimeoutMinutes) The idle timeout in minutes for the session.The optional name for the session.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The tags to assign to the session.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.emrserverless.model.EmrServerlessRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
applicationId
The ID of the application on which to start the session.
- Parameters:
applicationId- The ID of the application on which to start the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token, the server returns the successful response without performing the operation again.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token, the server returns the successful response without performing the operation again.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRoleArn
The execution role ARN for the session. Amazon EMR Serverless uses this role to access Amazon Web Services resources on your behalf during session execution.
- Parameters:
executionRoleArn- The execution role ARN for the session. Amazon EMR Serverless uses this role to access Amazon Web Services resources on your behalf during session execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationOverrides
StartSessionRequest.Builder configurationOverrides(SessionConfigurationOverrides configurationOverrides) The configuration overrides for the session. Only runtime configuration overrides are supported.
- Parameters:
configurationOverrides- The configuration overrides for the session. Only runtime configuration overrides are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationOverrides
default StartSessionRequest.Builder configurationOverrides(Consumer<SessionConfigurationOverrides.Builder> configurationOverrides) The configuration overrides for the session. Only runtime configuration overrides are supported.
This is a convenience method that creates an instance of theSessionConfigurationOverrides.Builderavoiding the need to create one manually viaSessionConfigurationOverrides.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfigurationOverrides(SessionConfigurationOverrides).- Parameters:
configurationOverrides- a consumer that will call methods onSessionConfigurationOverrides.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to assign to the session.
- Parameters:
tags- The tags to assign to the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
idleTimeoutMinutes
The idle timeout in minutes for the session. After the session remains idle for this duration, Amazon EMR Serverless automatically terminates it.
- Parameters:
idleTimeoutMinutes- The idle timeout in minutes for the session. After the session remains idle for this duration, Amazon EMR Serverless automatically terminates it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The optional name for the session.
- Parameters:
name- The optional name for the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-