Interface StartSessionRequest.Builder

  • Method Details

    • applicationId

      StartSessionRequest.Builder applicationId(String 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

      StartSessionRequest.Builder clientToken(String 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

      StartSessionRequest.Builder executionRoleArn(String 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 the SessionConfigurationOverrides.Builder avoiding the need to create one manually via SessionConfigurationOverrides.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to configurationOverrides(SessionConfigurationOverrides).

      Parameters:
      configurationOverrides - a consumer that will call methods on SessionConfigurationOverrides.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

      StartSessionRequest.Builder idleTimeoutMinutes(Long 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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.