Interface SubStatementData.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SubStatementData.Builder,
,SubStatementData> SdkBuilder<SubStatementData.Builder,
,SubStatementData> SdkPojo
- Enclosing class:
SubStatementData
-
Method Summary
Modifier and TypeMethodDescriptionThe date and time (UTC) the statement was created.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.queryString
(String queryString) The SQL statement text.redshiftQueryId
(Long redshiftQueryId) The SQL statement identifier.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 status of the SQL statement.status
(StatementStatusString status) The status of the SQL statement.The date and time (UTC) that the statement metadata was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
createdAt
The date and time (UTC) the statement was created.
- Parameters:
createdAt
- The date and time (UTC) the statement was created.- 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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example,
d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of:2
that indicates the second SQL statement of a batch query.- Parameters:
id
- The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example,d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of:2
that indicates the second SQL statement of a batch query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
redshiftQueryId
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
- Parameters:
redshiftQueryId
- The SQL statement 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.
-
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.
-
status
The status of the SQL statement. An example is the that the SQL statement finished.
- Parameters:
status
- The status of the SQL statement. An example is the that the SQL statement finished.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the SQL statement. An example is the that the SQL statement finished.
- Parameters:
status
- The status of the SQL statement. An example is the that the SQL statement finished.- 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 statement metadata was last updated.
- Parameters:
updatedAt
- The date and time (UTC) that the statement metadata was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-