Interface StartSessionRequest.Builder
- All Superinterfaces:
AthenaRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<StartSessionRequest.Builder,
,StartSessionRequest> SdkBuilder<StartSessionRequest.Builder,
,StartSessionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
StartSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) A unique case-sensitive string used to ensure the request to create the session is idempotent (executes only once).description
(String description) The session description.default StartSessionRequest.Builder
engineConfiguration
(Consumer<EngineConfiguration.Builder> engineConfiguration) Contains engine data processing unit (DPU) configuration settings and parameter mappings.engineConfiguration
(EngineConfiguration engineConfiguration) Contains engine data processing unit (DPU) configuration settings and parameter mappings.notebookVersion
(String notebookVersion) The notebook version.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sessionIdleTimeoutInMinutes
(Integer sessionIdleTimeoutInMinutes) The idle timeout in minutes for the session.The workgroup to which the session belongs.Methods inherited from interface software.amazon.awssdk.services.athena.model.AthenaRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
description
The session description.
- Parameters:
description
- The session description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workGroup
The workgroup to which the session belongs.
- Parameters:
workGroup
- The workgroup to which the session belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineConfiguration
Contains engine data processing unit (DPU) configuration settings and parameter mappings.
- Parameters:
engineConfiguration
- Contains engine data processing unit (DPU) configuration settings and parameter mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineConfiguration
default StartSessionRequest.Builder engineConfiguration(Consumer<EngineConfiguration.Builder> engineConfiguration) Contains engine data processing unit (DPU) configuration settings and parameter mappings.
This is a convenience method that creates an instance of theEngineConfiguration.Builder
avoiding the need to create one manually viaEngineConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toengineConfiguration(EngineConfiguration)
.- Parameters:
engineConfiguration
- a consumer that will call methods onEngineConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
notebookVersion
The notebook version. This value is supplied automatically for notebook sessions in the Athena console and is not required for programmatic session access. The only valid notebook version is
Athena notebook version 1
. If you specify a value forNotebookVersion
, you must also specify a value forNotebookId
. See EngineConfiguration$AdditionalConfigs.- Parameters:
notebookVersion
- The notebook version. This value is supplied automatically for notebook sessions in the Athena console and is not required for programmatic session access. The only valid notebook version isAthena notebook version 1
. If you specify a value forNotebookVersion
, you must also specify a value forNotebookId
. See EngineConfiguration$AdditionalConfigs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionIdleTimeoutInMinutes
The idle timeout in minutes for the session.
- Parameters:
sessionIdleTimeoutInMinutes
- The idle timeout in minutes for the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
A unique case-sensitive string used to ensure the request to create the session is idempotent (executes only once). If another
StartSessionRequest
is received, the same response is returned and another session is not created. If a parameter has changed, an error is returned.This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
- Parameters:
clientRequestToken
- A unique case-sensitive string used to ensure the request to create the session is idempotent (executes only once). If anotherStartSessionRequest
is received, the same response is returned and another session is not created. If a parameter has changed, an error is returned.This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
- 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 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-