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 Details

    • 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

      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 the SqlParameter.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<SqlParameter>).

      Parameters:
      queryParameters - a consumer that will call methods on SqlParameter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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

      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.