Interface StartSessionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartSessionRequest.Builder,,StartSessionRequest> EmrRequest.Builder,SdkBuilder<StartSessionRequest.Builder,,StartSessionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.The ID of the cluster on which to start the session.engineConfigurations(Collection<Configuration> engineConfigurations) The configuration overrides for the session.engineConfigurations(Consumer<Configuration.Builder>... engineConfigurations) The configuration overrides for the session.engineConfigurations(Configuration... engineConfigurations) The configuration overrides for the session.executionRoleArn(String executionRoleArn) The execution role ARN for the session.default StartSessionRequest.BuildermonitoringConfiguration(Consumer<SessionMonitoringConfiguration.Builder> monitoringConfiguration) The monitoring configuration that controls where session logs are published, such as Amazon S3, CloudWatch, or managed logging.monitoringConfiguration(SessionMonitoringConfiguration monitoringConfiguration) The monitoring configuration that controls where session logs are published, such as Amazon S3, CloudWatch, or managed logging.An 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.sessionIdleTimeoutInMinutes(Long sessionIdleTimeoutInMinutes) The idle timeout, in minutes.tags(Collection<Tag> tags) The tags to assign to the session.tags(Consumer<Tag.Builder>... tags) The tags to assign to the session.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.emr.model.EmrRequest.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
-
name
An optional name for the session.
- Parameters:
name- An optional name for the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterId
The ID of the cluster on which to start the session.
- Parameters:
clusterId- The ID of the cluster on which to start the session.- 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 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 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.
-
engineConfigurations
The configuration overrides for the session. Only runtime configuration overrides are supported.
- Parameters:
engineConfigurations- 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.
-
engineConfigurations
The configuration overrides for the session. Only runtime configuration overrides are supported.
- Parameters:
engineConfigurations- 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.
-
engineConfigurations
StartSessionRequest.Builder engineConfigurations(Consumer<Configuration.Builder>... engineConfigurations) The configuration overrides for the session. Only runtime configuration overrides are supported.
This is a convenience method that creates an instance of theConfiguration.Builderavoiding the need to create one manually viaConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toengineConfigurations(List<Configuration>).- Parameters:
engineConfigurations- a consumer that will call methods onConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitoringConfiguration
StartSessionRequest.Builder monitoringConfiguration(SessionMonitoringConfiguration monitoringConfiguration) The monitoring configuration that controls where session logs are published, such as Amazon S3, CloudWatch, or managed logging.
- Parameters:
monitoringConfiguration- The monitoring configuration that controls where session logs are published, such as Amazon S3, CloudWatch, or managed logging.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoringConfiguration
default StartSessionRequest.Builder monitoringConfiguration(Consumer<SessionMonitoringConfiguration.Builder> monitoringConfiguration) The monitoring configuration that controls where session logs are published, such as Amazon S3, CloudWatch, or managed logging.
This is a convenience method that creates an instance of theSessionMonitoringConfiguration.Builderavoiding the need to create one manually viaSessionMonitoringConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomonitoringConfiguration(SessionMonitoringConfiguration).- Parameters:
monitoringConfiguration- a consumer that will call methods onSessionMonitoringConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sessionIdleTimeoutInMinutes
The idle timeout, in minutes. If the session is idle for this duration, Amazon EMR EC2 automatically terminates it.
- Parameters:
sessionIdleTimeoutInMinutes- The idle timeout, in minutes. If the session is idle for this duration, Amazon EMR EC2 automatically terminates it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
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 request token, the service returns the original response without performing the operation again.
- Parameters:
clientRequestToken- 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 request token, the service returns the original response without performing the operation again.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
-
tags
The tags to assign to the session.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-