Interface Session.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Session.Builder,Session>, SdkBuilder<Session.Builder,Session>, SdkPojo
Enclosing class:
Session

@Mutable @NotThreadSafe public static interface Session.Builder extends SdkPojo, CopyableBuilder<Session.Builder,Session>
  • Method Details

    • applicationId

      Session.Builder applicationId(String applicationId)

      The ID of the application that the session belongs to.

      Parameters:
      applicationId - The ID of the application that the session belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionId

      Session.Builder sessionId(String sessionId)

      The ID of the session.

      Parameters:
      sessionId - The ID of the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The Amazon Resource Name (ARN) of the session.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Session.Builder name(String name)

      The optional name of the session.

      Parameters:
      name - The optional name of the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      Session.Builder state(String state)

      The state of the session.

      Parameters:
      state - The state of the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state of the session.

      Parameters:
      state - The state of the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • stateDetails

      Session.Builder stateDetails(String stateDetails)

      Additional details about the current state of the session.

      Parameters:
      stateDetails - Additional details about the current state of the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • releaseLabel

      Session.Builder releaseLabel(String releaseLabel)

      The Amazon EMR release label associated with the session.

      Parameters:
      releaseLabel - The Amazon EMR release label associated with the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionRoleArn

      Session.Builder executionRoleArn(String executionRoleArn)

      The Amazon Resource Name (ARN) of the execution role for the session.

      Parameters:
      executionRoleArn - The Amazon Resource Name (ARN) of the execution role for the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdBy

      Session.Builder createdBy(String createdBy)

      The IAM principal that created the session.

      Parameters:
      createdBy - The IAM principal that created the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Session.Builder createdAt(Instant createdAt)

      The date and time that the session was created.

      Parameters:
      createdAt - The date and time that the session was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Session.Builder updatedAt(Instant updatedAt)

      The date and time that the session was last updated.

      Parameters:
      updatedAt - The date and time that the session was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedAt

      Session.Builder startedAt(Instant startedAt)

      The date and time that the session moved to a running state.

      Parameters:
      startedAt - The date and time that the session moved to a running state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endedAt

      Session.Builder endedAt(Instant endedAt)

      The date and time that the session was terminated or failed.

      Parameters:
      endedAt - The date and time that the session was terminated or failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • idleSince

      Session.Builder idleSince(Instant idleSince)

      The date and time that the session became idle.

      Parameters:
      idleSince - The date and time that the session became idle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurationOverrides

      Session.Builder configurationOverrides(SessionConfigurationOverrides configurationOverrides)

      The configuration overrides for the session, including runtime configuration properties.

      Parameters:
      configurationOverrides - The configuration overrides for the session, including runtime configuration properties.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurationOverrides

      default Session.Builder configurationOverrides(Consumer<SessionConfigurationOverrides.Builder> configurationOverrides)

      The configuration overrides for the session, including runtime configuration properties.

      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:
    • networkConfiguration

      Session.Builder networkConfiguration(NetworkConfiguration networkConfiguration)

      The network configuration for customer VPC connectivity for the session.

      Parameters:
      networkConfiguration - The network configuration for customer VPC connectivity for the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkConfiguration

      default Session.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)

      The network configuration for customer VPC connectivity for the session.

      This is a convenience method that creates an instance of the NetworkConfiguration.Builder avoiding the need to create one manually via NetworkConfiguration.builder().

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

      Parameters:
      networkConfiguration - a consumer that will call methods on NetworkConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • idleTimeoutMinutes

      Session.Builder idleTimeoutMinutes(Long idleTimeoutMinutes)

      The idle timeout in minutes for the session. After the session remains idle for this duration, it is automatically terminated.

      Parameters:
      idleTimeoutMinutes - The idle timeout in minutes for the session. After the session remains idle for this duration, it is automatically terminated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags assigned to the session.

      Parameters:
      tags - The tags assigned to the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalResourceUtilization

      Session.Builder totalResourceUtilization(TotalResourceUtilization totalResourceUtilization)

      The aggregate vCPU, memory, and storage resources used from the time the session starts to execute, until the time the session terminates, rounded up to the nearest second.

      Parameters:
      totalResourceUtilization - The aggregate vCPU, memory, and storage resources used from the time the session starts to execute, until the time the session terminates, rounded up to the nearest second.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalResourceUtilization

      default Session.Builder totalResourceUtilization(Consumer<TotalResourceUtilization.Builder> totalResourceUtilization)

      The aggregate vCPU, memory, and storage resources used from the time the session starts to execute, until the time the session terminates, rounded up to the nearest second.

      This is a convenience method that creates an instance of the TotalResourceUtilization.Builder avoiding the need to create one manually via TotalResourceUtilization.builder().

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

      Parameters:
      totalResourceUtilization - a consumer that will call methods on TotalResourceUtilization.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • billedResourceUtilization

      Session.Builder billedResourceUtilization(ResourceUtilization billedResourceUtilization)

      The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the session. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.

      Parameters:
      billedResourceUtilization - The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the session. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billedResourceUtilization

      default Session.Builder billedResourceUtilization(Consumer<ResourceUtilization.Builder> billedResourceUtilization)

      The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the session. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.

      This is a convenience method that creates an instance of the ResourceUtilization.Builder avoiding the need to create one manually via ResourceUtilization.builder().

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

      Parameters:
      billedResourceUtilization - a consumer that will call methods on ResourceUtilization.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • totalExecutionDurationSeconds

      Session.Builder totalExecutionDurationSeconds(Long totalExecutionDurationSeconds)

      The total execution duration of the session in seconds.

      Parameters:
      totalExecutionDurationSeconds - The total execution duration of the session in seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.