Interface Session.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Session.Builder,,Session> SdkBuilder<Session.Builder,,Session> SdkPojo
- Enclosing class:
Session
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID that owns the session.The Amazon Resource Name (ARN) of the session.default Session.BuildercertificateAuthority(Consumer<CertificateAuthority.Builder> certificateAuthority) The certificate authority used to establish an mTLS connection to the Spark Connect server when connecting directly over VPC peering.certificateAuthority(CertificateAuthority certificateAuthority) The certificate authority used to establish an mTLS connection to the Spark Connect server when connecting directly over VPC peering.The ID of the cluster that the session belongs to.The date and time that the session was created.The date and time that the session was terminated or failed.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.The ID of the session.The date and time that the session last entered theIDLEstate.default Session.BuildermonitoringConfiguration(Consumer<SessionMonitoringConfiguration.Builder> monitoringConfiguration) The monitoring configuration for the session.monitoringConfiguration(SessionMonitoringConfiguration monitoringConfiguration) The monitoring configuration for the session.The name of the session, if one was provided at creation time.releaseLabel(String releaseLabel) The Amazon EMR release label of the cluster that the session is running on.The Spark Connect server URL for the session.sessionIdleTimeoutInMinutes(Long sessionIdleTimeoutInMinutes) The idle timeout, in minutes.The date and time that the session entered theSTARTEDstate.The current state of the session.state(SessionState state) The current state of the session.stateChangeReason(String stateChangeReason) A human-readable message describing the most recent state change.tags(Collection<Tag> tags) The tags associated with the session.tags(Consumer<Tag.Builder>... tags) The tags associated with the session.The tags associated with the session.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
-
id
The ID of the session.
- Parameters:
id- The ID of the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterId
The ID of the cluster that the session belongs to.
- Parameters:
clusterId- The ID of the cluster that the session belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the session, if one was provided at creation time.
- Parameters:
name- The name of the session, if one was provided at creation time.- 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.
-
state
The current state of the session. Valid values are
SUBMITTED,STARTING,STARTED,IDLE,BUSY,TERMINATING,TERMINATED, andFAILED.- Parameters:
state- The current state of the session. Valid values areSUBMITTED,STARTING,STARTED,IDLE,BUSY,TERMINATING,TERMINATED, andFAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the session. Valid values are
SUBMITTED,STARTING,STARTED,IDLE,BUSY,TERMINATING,TERMINATED, andFAILED.- Parameters:
state- The current state of the session. Valid values areSUBMITTED,STARTING,STARTED,IDLE,BUSY,TERMINATING,TERMINATED, andFAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateChangeReason
A human-readable message describing the most recent state change.
- Parameters:
stateChangeReason- A human-readable message describing the most recent state change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
releaseLabel
The Amazon EMR release label of the cluster that the session is running on.
- Parameters:
releaseLabel- The Amazon EMR release label of the cluster that the session is running on.- 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.
-
accountId
The Amazon Web Services account ID that owns the session.
- Parameters:
accountId- The Amazon Web Services account ID that owns 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 entered the
STARTEDstate.- Parameters:
startedAt- The date and time that the session entered theSTARTEDstate.- 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 last entered the
IDLEstate.- Parameters:
idleSince- The date and time that the session last entered theIDLEstate.- 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
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
The monitoring configuration for the session.
- Parameters:
monitoringConfiguration- The monitoring configuration for the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoringConfiguration
default Session.Builder monitoringConfiguration(Consumer<SessionMonitoringConfiguration.Builder> monitoringConfiguration) The monitoring configuration for the session.
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 automatically terminates it.
- Parameters:
sessionIdleTimeoutInMinutes- The idle timeout, in minutes. If the session is idle for this duration, Amazon EMR automatically terminates it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateAuthority
The certificate authority used to establish an mTLS connection to the Spark Connect server when connecting directly over VPC peering.
- Parameters:
certificateAuthority- The certificate authority used to establish an mTLS connection to the Spark Connect server when connecting directly over VPC peering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateAuthority
default Session.Builder certificateAuthority(Consumer<CertificateAuthority.Builder> certificateAuthority) The certificate authority used to establish an mTLS connection to the Spark Connect server when connecting directly over VPC peering.
This is a convenience method that creates an instance of theCertificateAuthority.Builderavoiding the need to create one manually viaCertificateAuthority.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocertificateAuthority(CertificateAuthority).- Parameters:
certificateAuthority- a consumer that will call methods onCertificateAuthority.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serverUrl
The Spark Connect server URL for the session. Use this URL with the
Credentialsreturned byGetSessionEndpointto connect directly to the session over VPC peering.- Parameters:
serverUrl- The Spark Connect server URL for the session. Use this URL with theCredentialsreturned byGetSessionEndpointto connect directly to the session over VPC peering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the session.
- Parameters:
tags- The tags associated with the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the session.
- Parameters:
tags- The tags associated with the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with 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:
-