Interface GetSessionResponse.Builder
- All Superinterfaces:
AthenaResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<GetSessionResponse.Builder,
,GetSessionResponse> SdkBuilder<GetSessionResponse.Builder,
,GetSessionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetSessionResponse
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The session description.default GetSessionResponse.Builder
engineConfiguration
(Consumer<EngineConfiguration.Builder> engineConfiguration) Contains engine configuration information like DPU usage.engineConfiguration
(EngineConfiguration engineConfiguration) Contains engine configuration information like DPU usage.engineVersion
(String engineVersion) The engine version used by the session (for example,PySpark engine version 3
).notebookVersion
(String notebookVersion) The notebook version.default GetSessionResponse.Builder
sessionConfiguration
(Consumer<SessionConfiguration.Builder> sessionConfiguration) Contains the workgroup configuration information used by the session.sessionConfiguration
(SessionConfiguration sessionConfiguration) Contains the workgroup configuration information used by the session.The session ID.default GetSessionResponse.Builder
statistics
(Consumer<SessionStatistics.Builder> statistics) Contains the DPU execution time.statistics
(SessionStatistics statistics) Contains the DPU execution time.default GetSessionResponse.Builder
status
(Consumer<SessionStatus.Builder> status) Contains information about the status of the session.status
(SessionStatus status) Contains information about the status of the session.The workgroup to which the session belongs.Methods inherited from interface software.amazon.awssdk.services.athena.model.AthenaResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
sessionId
The session ID.
- Parameters:
sessionId
- The session ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
engineVersion
The engine version used by the session (for example,
PySpark engine version 3
). You can get a list of engine versions by calling ListEngineVersions.- Parameters:
engineVersion
- The engine version used by the session (for example,PySpark engine version 3
). You can get a list of engine versions by calling ListEngineVersions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineConfiguration
Contains engine configuration information like DPU usage.
- Parameters:
engineConfiguration
- Contains engine configuration information like DPU usage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineConfiguration
default GetSessionResponse.Builder engineConfiguration(Consumer<EngineConfiguration.Builder> engineConfiguration) Contains engine configuration information like DPU usage.
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.
- Parameters:
notebookVersion
- The notebook version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionConfiguration
Contains the workgroup configuration information used by the session.
- Parameters:
sessionConfiguration
- Contains the workgroup configuration information used by the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionConfiguration
default GetSessionResponse.Builder sessionConfiguration(Consumer<SessionConfiguration.Builder> sessionConfiguration) Contains the workgroup configuration information used by the session.
This is a convenience method that creates an instance of theSessionConfiguration.Builder
avoiding the need to create one manually viaSessionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionConfiguration(SessionConfiguration)
.- Parameters:
sessionConfiguration
- a consumer that will call methods onSessionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Contains information about the status of the session.
- Parameters:
status
- Contains information about the status of the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Contains information about the status of the session.
This is a convenience method that creates an instance of theSessionStatus.Builder
avoiding the need to create one manually viaSessionStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(SessionStatus)
.- Parameters:
status
- a consumer that will call methods onSessionStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistics
Contains the DPU execution time.
- Parameters:
statistics
- Contains the DPU execution time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistics
Contains the DPU execution time.
This is a convenience method that creates an instance of theSessionStatistics.Builder
avoiding the need to create one manually viaSessionStatistics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatistics(SessionStatistics)
.- Parameters:
statistics
- a consumer that will call methods onSessionStatistics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-