public static interface DescribeStatementResponse.Builder extends RedshiftDataResponse.Builder, SdkPojo, CopyableBuilder<DescribeStatementResponse.Builder,DescribeStatementResponse>
| Modifier and Type | Method and Description |
|---|---|
DescribeStatementResponse.Builder |
clusterIdentifier(String clusterIdentifier)
The cluster identifier.
|
DescribeStatementResponse.Builder |
createdAt(Instant createdAt)
The date and time (UTC) when the SQL statement was submitted to run.
|
DescribeStatementResponse.Builder |
database(String database)
The name of the database.
|
DescribeStatementResponse.Builder |
dbUser(String dbUser)
The database user name.
|
DescribeStatementResponse.Builder |
duration(Long duration)
The amount of time in nanoseconds that the statement ran.
|
DescribeStatementResponse.Builder |
error(String error)
The error message from the cluster if the SQL statement encountered an error while running.
|
DescribeStatementResponse.Builder |
hasResultSet(Boolean hasResultSet)
A value that indicates whether the statement has a result set.
|
DescribeStatementResponse.Builder |
id(String id)
The identifier of the SQL statement described.
|
DescribeStatementResponse.Builder |
queryParameters(Collection<SqlParameter> queryParameters)
The parameters for the SQL statement.
|
DescribeStatementResponse.Builder |
queryParameters(Consumer<SqlParameter.Builder>... queryParameters)
The parameters for the SQL statement.
|
DescribeStatementResponse.Builder |
queryParameters(SqlParameter... queryParameters)
The parameters for the SQL statement.
|
DescribeStatementResponse.Builder |
queryString(String queryString)
The SQL statement text.
|
DescribeStatementResponse.Builder |
redshiftPid(Long redshiftPid)
The process identifier from Amazon Redshift.
|
DescribeStatementResponse.Builder |
redshiftQueryId(Long redshiftQueryId)
The identifier of the query generated by Amazon Redshift.
|
DescribeStatementResponse.Builder |
resultRows(Long resultRows)
Either the number of rows returned from the SQL statement or the number of rows affected.
|
DescribeStatementResponse.Builder |
resultSize(Long resultSize)
The size in bytes of the returned results.
|
DescribeStatementResponse.Builder |
secretArn(String secretArn)
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
|
DescribeStatementResponse.Builder |
status(StatusString status)
The status of the SQL statement being described.
|
DescribeStatementResponse.Builder |
status(String status)
The status of the SQL statement being described.
|
DescribeStatementResponse.Builder |
subStatements(Collection<SubStatementData> subStatements)
The SQL statements from a multiple statement run.
|
DescribeStatementResponse.Builder |
subStatements(Consumer<SubStatementData.Builder>... subStatements)
The SQL statements from a multiple statement run.
|
DescribeStatementResponse.Builder |
subStatements(SubStatementData... subStatements)
The SQL statements from a multiple statement run.
|
DescribeStatementResponse.Builder |
updatedAt(Instant updatedAt)
The date and time (UTC) that the metadata for the SQL statement was last updated.
|
DescribeStatementResponse.Builder |
workgroupName(String workgroupName)
The serverless workgroup name.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildDescribeStatementResponse.Builder clusterIdentifier(String clusterIdentifier)
The cluster identifier.
clusterIdentifier - The cluster identifier.DescribeStatementResponse.Builder createdAt(Instant createdAt)
The date and time (UTC) when the SQL statement was submitted to run.
createdAt - The date and time (UTC) when the SQL statement was submitted to run.DescribeStatementResponse.Builder database(String database)
The name of the database.
database - The name of the database.DescribeStatementResponse.Builder dbUser(String dbUser)
The database user name.
dbUser - The database user name.DescribeStatementResponse.Builder duration(Long duration)
The amount of time in nanoseconds that the statement ran.
duration - The amount of time in nanoseconds that the statement ran.DescribeStatementResponse.Builder error(String error)
The error message from the cluster if the SQL statement encountered an error while running.
error - The error message from the cluster if the SQL statement encountered an error while running.DescribeStatementResponse.Builder hasResultSet(Boolean 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.
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.DescribeStatementResponse.Builder id(String id)
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
id - The identifier of the SQL statement described. This value is a universally unique identifier (UUID)
generated by Amazon Redshift Data API.DescribeStatementResponse.Builder queryParameters(Collection<SqlParameter> queryParameters)
The parameters for the SQL statement.
queryParameters - The parameters for the SQL statement.DescribeStatementResponse.Builder queryParameters(SqlParameter... queryParameters)
The parameters for the SQL statement.
queryParameters - The parameters for the SQL statement.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 via SqlParameter.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #queryParameters(List.
queryParameters - a consumer that will call methods on
SqlParameter.Builder#queryParameters(java.util.Collection) DescribeStatementResponse.Builder queryString(String queryString)
The SQL statement text.
queryString - The SQL statement text.DescribeStatementResponse.Builder redshiftPid(Long redshiftPid)
The process identifier from Amazon Redshift.
redshiftPid - The process identifier from Amazon Redshift.DescribeStatementResponse.Builder redshiftQueryId(Long redshiftQueryId)
The identifier of the query generated by Amazon Redshift. These identifiers are also available in the
query column of the STL_QUERY system view.
redshiftQueryId - The identifier of the query generated by Amazon Redshift. These identifiers are also available in the
query column of the STL_QUERY system view.DescribeStatementResponse.Builder resultRows(Long 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.
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.DescribeStatementResponse.Builder resultSize(Long resultSize)
The size in bytes of the returned results. A -1 indicates the value is null.
resultSize - The size in bytes of the returned results. A -1 indicates the value is null.DescribeStatementResponse.Builder secretArn(String secretArn)
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
secretArn - The name or Amazon Resource Name (ARN) of the secret that enables access to the database.DescribeStatementResponse.Builder status(String 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.
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.
StatusString,
StatusStringDescribeStatementResponse.Builder status(StatusString 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.
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.
StatusString,
StatusStringDescribeStatementResponse.Builder subStatements(Collection<SubStatementData> subStatements)
The SQL statements from a multiple statement run.
subStatements - The SQL statements from a multiple statement run.DescribeStatementResponse.Builder subStatements(SubStatementData... subStatements)
The SQL statements from a multiple statement run.
subStatements - The SQL statements from a multiple statement run.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 via SubStatementData.builder()
.
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #subStatements(List.
subStatements - a consumer that will call methods on
SubStatementData.Builder#subStatements(java.util.Collection) DescribeStatementResponse.Builder updatedAt(Instant 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.
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.DescribeStatementResponse.Builder workgroupName(String workgroupName)
The serverless workgroup name.
workgroupName - The serverless workgroup name.Copyright © 2022. All rights reserved.