Interface StatementData.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<StatementData.Builder,StatementData>,SdkBuilder<StatementData.Builder,StatementData>,SdkPojo
- Enclosing class:
- StatementData
public static interface StatementData.Builder extends SdkPojo, CopyableBuilder<StatementData.Builder,StatementData>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatementData.BuildercreatedAt(Instant createdAt)The date and time (UTC) the statement was created.StatementData.Builderid(String id)The SQL statement identifier.StatementData.BuilderisBatchStatement(Boolean isBatchStatement)A value that indicates whether the statement is a batch query request.StatementData.BuilderqueryParameters(Collection<SqlParameter> queryParameters)The parameters used in a SQL statement.StatementData.BuilderqueryParameters(Consumer<SqlParameter.Builder>... queryParameters)The parameters used in a SQL statement.StatementData.BuilderqueryParameters(SqlParameter... queryParameters)The parameters used in a SQL statement.StatementData.BuilderqueryString(String queryString)The SQL statement.StatementData.BuilderqueryStrings(String... queryStrings)One or more SQL statements.StatementData.BuilderqueryStrings(Collection<String> queryStrings)One or more SQL statements.StatementData.BuildersecretArn(String secretArn)The name or Amazon Resource Name (ARN) of the secret that enables access to the database.StatementData.BuilderstatementName(String statementName)The name of the SQL statement.StatementData.Builderstatus(String status)The status of the SQL statement.StatementData.Builderstatus(StatusString status)The status of the SQL statement.StatementData.BuilderupdatedAt(Instant updatedAt)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 Detail
-
createdAt
StatementData.Builder createdAt(Instant 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.
-
id
StatementData.Builder id(String id)
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
- Parameters:
id- 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.
-
isBatchStatement
StatementData.Builder isBatchStatement(Boolean isBatchStatement)
A value that indicates whether the statement is a batch query request.
- Parameters:
isBatchStatement- A value that indicates whether the statement is a batch query request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryParameters
StatementData.Builder queryParameters(Collection<SqlParameter> queryParameters)
The parameters used in a SQL statement.
- Parameters:
queryParameters- The parameters used in a SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryParameters
StatementData.Builder queryParameters(SqlParameter... queryParameters)
The parameters used in a SQL statement.
- Parameters:
queryParameters- The parameters used in a SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryParameters
StatementData.Builder queryParameters(Consumer<SqlParameter.Builder>... queryParameters)
The parameters used in a 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
StatementData.Builder queryString(String queryString)
The SQL statement.
- Parameters:
queryString- The SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryStrings
StatementData.Builder queryStrings(Collection<String> queryStrings)
One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.
- Parameters:
queryStrings- One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryStrings
StatementData.Builder queryStrings(String... queryStrings)
One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.
- Parameters:
queryStrings- One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretArn
StatementData.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.
-
statementName
StatementData.Builder statementName(String statementName)
The name of the SQL statement.
- Parameters:
statementName- The name of the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
StatementData.Builder status(String 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:
StatusString,StatusString
-
status
StatementData.Builder status(StatusString 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:
StatusString,StatusString
-
updatedAt
StatementData.Builder updatedAt(Instant 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.
-
-