Interface DescribeStatementResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeStatementResponse.Builder,DescribeStatementResponse>,RedshiftDataResponse.Builder,SdkBuilder<DescribeStatementResponse.Builder,DescribeStatementResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DescribeStatementResponse
public static interface DescribeStatementResponse.Builder extends RedshiftDataResponse.Builder, SdkPojo, CopyableBuilder<DescribeStatementResponse.Builder,DescribeStatementResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeStatementResponse.BuilderclusterIdentifier(String clusterIdentifier)The cluster identifier.DescribeStatementResponse.BuildercreatedAt(Instant createdAt)The date and time (UTC) when the SQL statement was submitted to run.DescribeStatementResponse.Builderdatabase(String database)The name of the database.DescribeStatementResponse.BuilderdbUser(String dbUser)The database user name.DescribeStatementResponse.Builderduration(Long duration)The amount of time in nanoseconds that the statement ran.DescribeStatementResponse.Buildererror(String error)The error message from the cluster if the SQL statement encountered an error while running.DescribeStatementResponse.BuilderhasResultSet(Boolean hasResultSet)A value that indicates whether the statement has a result set.DescribeStatementResponse.Builderid(String id)The identifier of the SQL statement described.DescribeStatementResponse.BuilderqueryParameters(Collection<SqlParameter> queryParameters)The parameters for the SQL statement.DescribeStatementResponse.BuilderqueryParameters(Consumer<SqlParameter.Builder>... queryParameters)The parameters for the SQL statement.DescribeStatementResponse.BuilderqueryParameters(SqlParameter... queryParameters)The parameters for the SQL statement.DescribeStatementResponse.BuilderqueryString(String queryString)The SQL statement text.DescribeStatementResponse.BuilderredshiftPid(Long redshiftPid)The process identifier from Amazon Redshift.DescribeStatementResponse.BuilderredshiftQueryId(Long redshiftQueryId)The identifier of the query generated by Amazon Redshift.DescribeStatementResponse.BuilderresultFormat(String resultFormat)The data format of the result of the SQL statement.DescribeStatementResponse.BuilderresultFormat(ResultFormatString resultFormat)The data format of the result of the SQL statement.DescribeStatementResponse.BuilderresultRows(Long resultRows)Either the number of rows returned from the SQL statement or the number of rows affected.DescribeStatementResponse.BuilderresultSize(Long resultSize)The size in bytes of the returned results.DescribeStatementResponse.BuildersecretArn(String secretArn)The name or Amazon Resource Name (ARN) of the secret that enables access to the database.DescribeStatementResponse.BuildersessionId(String sessionId)The session identifier of the query.DescribeStatementResponse.Builderstatus(String status)The status of the SQL statement being described.DescribeStatementResponse.Builderstatus(StatusString status)The status of the SQL statement being described.DescribeStatementResponse.BuildersubStatements(Collection<SubStatementData> subStatements)The SQL statements from a multiple statement run.DescribeStatementResponse.BuildersubStatements(Consumer<SubStatementData.Builder>... subStatements)The SQL statements from a multiple statement run.DescribeStatementResponse.BuildersubStatements(SubStatementData... subStatements)The SQL statements from a multiple statement run.DescribeStatementResponse.BuilderupdatedAt(Instant updatedAt)The date and time (UTC) that the metadata for the SQL statement was last updated.DescribeStatementResponse.BuilderworkgroupName(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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
clusterIdentifier
DescribeStatementResponse.Builder clusterIdentifier(String 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
DescribeStatementResponse.Builder createdAt(Instant 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
DescribeStatementResponse.Builder database(String 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
DescribeStatementResponse.Builder dbUser(String 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
DescribeStatementResponse.Builder duration(Long 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
DescribeStatementResponse.Builder error(String 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
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.
- 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
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.
- 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
DescribeStatementResponse.Builder queryParameters(Collection<SqlParameter> 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(SqlParameter... 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.Builderavoiding the need to create one manually viaSqlParameter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#queryParameters(List.) - 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:
#queryParameters(java.util.Collection)
-
queryString
DescribeStatementResponse.Builder queryString(String 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
DescribeStatementResponse.Builder redshiftPid(Long 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
DescribeStatementResponse.Builder redshiftQueryId(Long redshiftQueryId)
The identifier of the query generated by Amazon Redshift. These identifiers are also available in the
querycolumn of theSTL_QUERYsystem view.- Parameters:
redshiftQueryId- The identifier of the query generated by Amazon Redshift. These identifiers are also available in thequerycolumn of theSTL_QUERYsystem view.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultFormat
DescribeStatementResponse.Builder resultFormat(String resultFormat)
The data format of the result of the SQL statement.
- Parameters:
resultFormat- The data format of the result of the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResultFormatString,ResultFormatString
-
resultFormat
DescribeStatementResponse.Builder resultFormat(ResultFormatString resultFormat)
The data format of the result of the SQL statement.
- Parameters:
resultFormat- The data format of the result of the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResultFormatString,ResultFormatString
-
resultRows
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
-1indicates 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-1indicates the value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultSize
DescribeStatementResponse.Builder resultSize(Long resultSize)
The size in bytes of the returned results. A
-1indicates the value is null.- Parameters:
resultSize- The size in bytes of the returned results. A-1indicates the value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretArn
DescribeStatementResponse.Builder secretArn(String 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.
-
sessionId
DescribeStatementResponse.Builder sessionId(String sessionId)
The session identifier of the query.
- Parameters:
sessionId- The session identifier of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
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.
- 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:
StatusString,StatusString
-
-
status
DescribeStatementResponse.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.
- 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:
StatusString,StatusString
-
-
subStatements
DescribeStatementResponse.Builder subStatements(Collection<SubStatementData> 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(SubStatementData... 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.Builderavoiding the need to create one manually viaSubStatementData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#subStatements(List.) - 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:
#subStatements(java.util.Collection)
-
updatedAt
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.
- 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
DescribeStatementResponse.Builder workgroupName(String 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.
-
-