Interface SessionData.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SessionData.Builder,,SessionData> SdkBuilder<SessionData.Builder,,SessionData> SdkPojo
- Enclosing class:
SessionData
-
Method Summary
Modifier and TypeMethodDescriptionclusterIdentifier(String clusterIdentifier) The cluster identifier.The date and time (UTC) when the session was created.currentStatementId(String currentStatementId) The identifier of the SQL statement currently running in the session.The name of the database that the session is connected to.The database user name.sessionAliveSeconds(Integer sessionAliveSeconds) The number of seconds that the session is kept alive after a query finishes.The session identifier.sessionTtl(Instant sessionTtl) The date and time (UTC) when the session is set to expire and be closed.The status of the session.status(SessionStatusString status) The status of the session.The date and time (UTC) that the session metadata was last updated.workgroupName(String workgroupName) The serverless workgroup name or Amazon Resource Name (ARN).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
-
sessionId
The session identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
- Parameters:
sessionId- The session identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the session. Status values are defined as follows:
-
AVAILABLE – The session is open and ready to run a SQL statement.
-
BUSY – The session is currently running a SQL statement.
-
CLOSED – The session is closed and can no longer run SQL statements.
- Parameters:
status- The status of the session. Status values are defined as follows:-
AVAILABLE – The session is open and ready to run a SQL statement.
-
BUSY – The session is currently running a SQL statement.
-
CLOSED – The session is closed and can no longer run SQL statements.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
status
The status of the session. Status values are defined as follows:
-
AVAILABLE – The session is open and ready to run a SQL statement.
-
BUSY – The session is currently running a SQL statement.
-
CLOSED – The session is closed and can no longer run SQL statements.
- Parameters:
status- The status of the session. Status values are defined as follows:-
AVAILABLE – The session is open and ready to run a SQL statement.
-
BUSY – The session is currently running a SQL statement.
-
CLOSED – The session is closed and can no longer run SQL statements.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
createdAt
The date and time (UTC) when the session was created.
- Parameters:
createdAt- The date and time (UTC) when the session was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time (UTC) that the session metadata was last updated. An example is the time the status last changed.
- Parameters:
updatedAt- The date and time (UTC) that the session metadata was last updated. An example is the time the status last changed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
database
The name of the database that the session is connected to.
- Parameters:
database- The name of the database that the session is connected to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbUser
The database user name.
- Parameters:
dbUser- The database user name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterIdentifier
The cluster identifier. This element is not returned when connecting to a serverless workgroup.
- Parameters:
clusterIdentifier- The cluster identifier. This element is not returned when connecting to a serverless workgroup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workgroupName
The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.
- Parameters:
workgroupName- The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionAliveSeconds
The number of seconds that the session is kept alive after a query finishes.
- Parameters:
sessionAliveSeconds- The number of seconds that the session is kept alive after a query finishes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionTtl
The date and time (UTC) when the session is set to expire and be closed.
- Parameters:
sessionTtl- The date and time (UTC) when the session is set to expire and be closed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentStatementId
The identifier of the SQL statement currently running in the session. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. This element is returned only when the session status is
BUSY.- Parameters:
currentStatementId- The identifier of the SQL statement currently running in the session. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. This element is returned only when the session status isBUSY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-