Interface Session.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Session.Builder,,Session> SdkBuilder<Session.Builder,,Session> SdkPojo
- Enclosing class:
Session
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) The ID of the application that the session belongs to.The Amazon Resource Name (ARN) of the session.default Session.BuilderbilledResourceUtilization(Consumer<ResourceUtilization.Builder> billedResourceUtilization) The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the session.billedResourceUtilization(ResourceUtilization billedResourceUtilization) The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the session.default Session.BuilderconfigurationOverrides(Consumer<SessionConfigurationOverrides.Builder> configurationOverrides) The configuration overrides for the session, including runtime configuration properties.configurationOverrides(SessionConfigurationOverrides configurationOverrides) The configuration overrides for the session, including runtime configuration properties.The date and time that the session was created.The IAM principal that created the session.The date and time that the session was terminated or failed.executionRoleArn(String executionRoleArn) The Amazon Resource Name (ARN) of the execution role for the session.The date and time that the session became idle.idleTimeoutMinutes(Long idleTimeoutMinutes) The idle timeout in minutes for the session.The optional name of the session.default Session.BuildernetworkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration) The network configuration for customer VPC connectivity for the session.networkConfiguration(NetworkConfiguration networkConfiguration) The network configuration for customer VPC connectivity for the session.releaseLabel(String releaseLabel) The Amazon EMR release label associated with the session.The ID of the session.The date and time that the session moved to a running state.The state of the session.state(SessionState state) The state of the session.stateDetails(String stateDetails) Additional details about the current state of the session.The tags assigned to the session.totalExecutionDurationSeconds(Long totalExecutionDurationSeconds) The total execution duration of the session in seconds.default Session.BuildertotalResourceUtilization(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.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.The date and time that the session was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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 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
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
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
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
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
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
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
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
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
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
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
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
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
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 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:
-
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 theNetworkConfiguration.Builderavoiding the need to create one manually viaNetworkConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkConfiguration(NetworkConfiguration).- Parameters:
networkConfiguration- a consumer that will call methods onNetworkConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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 theTotalResourceUtilization.Builderavoiding the need to create one manually viaTotalResourceUtilization.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototalResourceUtilization(TotalResourceUtilization).- Parameters:
totalResourceUtilization- a consumer that will call methods onTotalResourceUtilization.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 theResourceUtilization.Builderavoiding the need to create one manually viaResourceUtilization.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobilledResourceUtilization(ResourceUtilization).- Parameters:
billedResourceUtilization- a consumer that will call methods onResourceUtilization.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-