Interface ListSessionsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListSessionsRequest.Builder,,ListSessionsRequest> RedshiftDataRequest.Builder,SdkBuilder<ListSessionsRequest.Builder,,ListSessionsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListSessionsRequest
-
Method Summary
Modifier and TypeMethodDescriptionclusterIdentifier(String clusterIdentifier) The cluster identifier.The name of the database.maxResults(Integer maxResults) The maximum number of sessions to return in the response.A value that indicates the starting point for the next set of response records in a subsequent request.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Specifies whether to return all sessions created by the caller's IAM role, including sessions from previous IAM sessions.The identifier of a specific session to return metadata for.The status of the sessions to list.status(SessionStatusString status) The status of the sessions to list.workgroupName(String workgroupName) The serverless workgroup name or Amazon Resource Name (ARN).Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.redshiftdata.model.RedshiftDataRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
nextToken
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
- Parameters:
nextToken- A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of sessions to return in the response. If more sessions exist than fit in one response, the operation returns
NextTokento paginate the results.- Parameters:
maxResults- The maximum number of sessions to return in the response. If more sessions exist than fit in one response, the operation returnsNextTokento paginate the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of a specific session to return metadata for. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. When you provide
SessionId, you can't specifyStatus,ClusterIdentifier,WorkgroupName, orDatabase.- Parameters:
sessionId- The identifier of a specific session to return metadata for. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. When you provideSessionId, you can't specifyStatus,ClusterIdentifier,WorkgroupName, orDatabase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the sessions to list. If no status is specified, sessions with a status of
AVAILABLEorBUSYare returned. 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 sessions to list. If no status is specified, sessions with a status ofAVAILABLEorBUSYare returned. 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 sessions to list. If no status is specified, sessions with a status of
AVAILABLEorBUSYare returned. 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 sessions to list. If no status is specified, sessions with a status ofAVAILABLEorBUSYare returned. 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:
-
-
roleLevel
Specifies whether to return all sessions created by the caller's IAM role, including sessions from previous IAM sessions. If false, only sessions created in the current IAM session are returned. The default is true.
- Parameters:
roleLevel- Specifies whether to return all sessions created by the caller's IAM role, including sessions from previous IAM sessions. If false, only sessions created in the current IAM session are returned. The default is true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterIdentifier
The cluster identifier. Only sessions on this cluster are returned. When providing
ClusterIdentifier, thenWorkgroupNamecan't be specified.- Parameters:
clusterIdentifier- The cluster identifier. Only sessions on this cluster are returned. When providingClusterIdentifier, thenWorkgroupNamecan't be specified.- 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). Only sessions on this workgroup are returned. When providing
WorkgroupName, thenClusterIdentifiercan't be specified.- Parameters:
workgroupName- The serverless workgroup name or Amazon Resource Name (ARN). Only sessions on this workgroup are returned. When providingWorkgroupName, thenClusterIdentifiercan't be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
database
The name of the database. Only sessions connected to this database are returned.
- Parameters:
database- The name of the database. Only sessions connected to this database are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListSessionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListSessionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-