Interface DescribeStatementResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeStatementResponse.Builder,
,DescribeStatementResponse> RedshiftDataResponse.Builder
,SdkBuilder<DescribeStatementResponse.Builder,
,DescribeStatementResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeStatementResponse
-
Method Summary
Modifier and TypeMethodDescriptionclusterIdentifier
(String clusterIdentifier) The cluster identifier.The date and time (UTC) when the SQL statement was submitted to run.The name of the database.The database user name.The amount of time in nanoseconds that the statement ran.The error message from the cluster if the SQL statement encountered an error while running.hasResultSet
(Boolean hasResultSet) A value that indicates whether the statement has a result set.The identifier of the SQL statement described.queryParameters
(Collection<SqlParameter> queryParameters) The parameters for the SQL statement.queryParameters
(Consumer<SqlParameter.Builder>... queryParameters) The parameters for the SQL statement.queryParameters
(SqlParameter... queryParameters) The parameters for the SQL statement.queryString
(String queryString) The SQL statement text.redshiftPid
(Long redshiftPid) The process identifier from Amazon Redshift.redshiftQueryId
(Long redshiftQueryId) The identifier of the query generated by Amazon Redshift.resultRows
(Long resultRows) Either the number of rows returned from the SQL statement or the number of rows affected.resultSize
(Long resultSize) The size in bytes of the returned results.The name or Amazon Resource Name (ARN) of the secret that enables access to the database.The status of the SQL statement being described.status
(StatusString status) The status of the SQL statement being described.subStatements
(Collection<SubStatementData> subStatements) The SQL statements from a multiple statement run.subStatements
(Consumer<SubStatementData.Builder>... subStatements) The SQL statements from a multiple statement run.subStatements
(SubStatementData... subStatements) The SQL statements from a multiple statement run.The date and time (UTC) that the metadata for the SQL statement 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
copy
Methods inherited from interface software.amazon.awssdk.services.redshiftdata.model.RedshiftDataResponse.Builder
build, responseMetadata, responseMetadata
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
-
clusterIdentifier
The cluster identifier.
- Parameters:
clusterIdentifier
- The cluster identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time (UTC) when the SQL statement was submitted to run.
- Parameters:
createdAt
- The date and time (UTC) when the SQL statement was submitted to run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
database
The name of the database.
- Parameters:
database
- The name of the database.- 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.
-
duration
The amount of time in nanoseconds that the statement ran.
- Parameters:
duration
- The amount of time in nanoseconds that the statement ran.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
The error message from the cluster if the SQL statement encountered an error while running.
- Parameters:
error
- The error message from the cluster if the SQL statement encountered an error while running.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hasResultSet
A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.
- Parameters:
hasResultSet
- A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
- Parameters:
id
- The identifier of the SQL statement described. 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.
-
queryParameters
The parameters for the SQL statement.
- Parameters:
queryParameters
- The parameters for the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryParameters
The parameters for the SQL statement.
- Parameters:
queryParameters
- The parameters for the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryParameters
DescribeStatementResponse.Builder queryParameters(Consumer<SqlParameter.Builder>... queryParameters) The parameters for the SQL statement.
This is a convenience method that creates an instance of theSqlParameter.Builder
avoiding the need to create one manually viaSqlParameter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toqueryParameters(List<SqlParameter>)
.- Parameters:
queryParameters
- a consumer that will call methods onSqlParameter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryString
The SQL statement text.
- Parameters:
queryString
- The SQL statement text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redshiftPid
The process identifier from Amazon Redshift.
- Parameters:
redshiftPid
- The process identifier from Amazon Redshift.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redshiftQueryId
The identifier of the query generated by Amazon Redshift. These identifiers are also available in the
query
column of theSTL_QUERY
system view.- Parameters:
redshiftQueryId
- The identifier of the query generated by Amazon Redshift. These identifiers are also available in thequery
column of theSTL_QUERY
system view.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultRows
Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A
-1
indicates the value is null.- Parameters:
resultRows
- Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A-1
indicates the value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultSize
The size in bytes of the returned results. A
-1
indicates the value is null.- Parameters:
resultSize
- The size in bytes of the returned results. A-1
indicates the value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretArn
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
- Parameters:
secretArn
- The name or Amazon Resource Name (ARN) of the secret that enables access to the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the SQL statement being described. Status values are defined as follows:
-
ABORTED - The query run was stopped by the user.
-
ALL - A status value that includes all query statuses. This value can be used to filter results.
-
FAILED - The query run failed.
-
FINISHED - The query has finished running.
-
PICKED - The query has been chosen to be run.
-
STARTED - The query run has started.
-
SUBMITTED - The query was submitted, but not yet processed.
- Parameters:
status
- The status of the SQL statement being described. Status values are defined as follows:-
ABORTED - The query run was stopped by the user.
-
ALL - A status value that includes all query statuses. This value can be used to filter results.
-
FAILED - The query run failed.
-
FINISHED - The query has finished running.
-
PICKED - The query has been chosen to be run.
-
STARTED - The query run has started.
-
SUBMITTED - The query was submitted, but not yet processed.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
status
The status of the SQL statement being described. Status values are defined as follows:
-
ABORTED - The query run was stopped by the user.
-
ALL - A status value that includes all query statuses. This value can be used to filter results.
-
FAILED - The query run failed.
-
FINISHED - The query has finished running.
-
PICKED - The query has been chosen to be run.
-
STARTED - The query run has started.
-
SUBMITTED - The query was submitted, but not yet processed.
- Parameters:
status
- The status of the SQL statement being described. Status values are defined as follows:-
ABORTED - The query run was stopped by the user.
-
ALL - A status value that includes all query statuses. This value can be used to filter results.
-
FAILED - The query run failed.
-
FINISHED - The query has finished running.
-
PICKED - The query has been chosen to be run.
-
STARTED - The query run has started.
-
SUBMITTED - The query was submitted, but not yet processed.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
subStatements
The SQL statements from a multiple statement run.
- Parameters:
subStatements
- The SQL statements from a multiple statement run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subStatements
The SQL statements from a multiple statement run.
- Parameters:
subStatements
- The SQL statements from a multiple statement run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subStatements
DescribeStatementResponse.Builder subStatements(Consumer<SubStatementData.Builder>... subStatements) The SQL statements from a multiple statement run.
This is a convenience method that creates an instance of theSubStatementData.Builder
avoiding the need to create one manually viaSubStatementData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubStatements(List<SubStatementData>)
.- Parameters:
subStatements
- a consumer that will call methods onSubStatementData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updatedAt
The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
- Parameters:
updatedAt
- The date and time (UTC) that the metadata for the SQL statement 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.
-
workgroupName
The serverless workgroup name or Amazon Resource Name (ARN).
- Parameters:
workgroupName
- The serverless workgroup name or Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-