Interface ExecuteStatementResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<ExecuteStatementResponse.Builder,ExecuteStatementResponse>, RdsDataResponse.Builder, SdkBuilder<ExecuteStatementResponse.Builder,ExecuteStatementResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
ExecuteStatementResponse

public static interface ExecuteStatementResponse.Builder extends RdsDataResponse.Builder, SdkPojo, CopyableBuilder<ExecuteStatementResponse.Builder,ExecuteStatementResponse>
  • Method Details

    • records

      The records returned by the SQL statement. This field is blank if the formatRecordsAs parameter is set to JSON.

      Parameters:
      records - The records returned by the SQL statement. This field is blank if the formatRecordsAs parameter is set to JSON.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • records

      The records returned by the SQL statement. This field is blank if the formatRecordsAs parameter is set to JSON.

      Parameters:
      records - The records returned by the SQL statement. This field is blank if the formatRecordsAs parameter is set to JSON.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • columnMetadata

      Metadata for the columns included in the results. This field is blank if the formatRecordsAs parameter is set to JSON.

      Parameters:
      columnMetadata - Metadata for the columns included in the results. This field is blank if the formatRecordsAs parameter is set to JSON.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • columnMetadata

      ExecuteStatementResponse.Builder columnMetadata(ColumnMetadata... columnMetadata)

      Metadata for the columns included in the results. This field is blank if the formatRecordsAs parameter is set to JSON.

      Parameters:
      columnMetadata - Metadata for the columns included in the results. This field is blank if the formatRecordsAs parameter is set to JSON.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • columnMetadata

      Metadata for the columns included in the results. This field is blank if the formatRecordsAs parameter is set to JSON.

      This is a convenience method that creates an instance of the ColumnMetadata.Builder avoiding the need to create one manually via ColumnMetadata.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to columnMetadata(List<ColumnMetadata>).

      Parameters:
      columnMetadata - a consumer that will call methods on ColumnMetadata.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • numberOfRecordsUpdated

      ExecuteStatementResponse.Builder numberOfRecordsUpdated(Long numberOfRecordsUpdated)

      The number of records updated by the request.

      Parameters:
      numberOfRecordsUpdated - The number of records updated by the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • generatedFields

      ExecuteStatementResponse.Builder generatedFields(Collection<Field> generatedFields)

      Values for fields generated during a DML request.

      The generatedFields data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the RETURNING clause. For more information, see Returning Data From Modified Rows in the PostgreSQL documentation.

      Parameters:
      generatedFields - Values for fields generated during a DML request.

      The generatedFields data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the RETURNING clause. For more information, see Returning Data From Modified Rows in the PostgreSQL documentation.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • generatedFields

      ExecuteStatementResponse.Builder generatedFields(Field... generatedFields)

      Values for fields generated during a DML request.

      The generatedFields data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the RETURNING clause. For more information, see Returning Data From Modified Rows in the PostgreSQL documentation.

      Parameters:
      generatedFields - Values for fields generated during a DML request.

      The generatedFields data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the RETURNING clause. For more information, see Returning Data From Modified Rows in the PostgreSQL documentation.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • generatedFields

      ExecuteStatementResponse.Builder generatedFields(Consumer<Field.Builder>... generatedFields)

      Values for fields generated during a DML request.

      The generatedFields data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the RETURNING clause. For more information, see Returning Data From Modified Rows in the PostgreSQL documentation.

      This is a convenience method that creates an instance of the Field.Builder avoiding the need to create one manually via Field.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to generatedFields(List<Field>).

      Parameters:
      generatedFields - a consumer that will call methods on Field.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • formattedRecords

      ExecuteStatementResponse.Builder formattedRecords(String formattedRecords)

      A string value that represents the result set of a SELECT statement in JSON format. This value is only present when the formatRecordsAs parameter is set to JSON.

      The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.

      Parameters:
      formattedRecords - A string value that represents the result set of a SELECT statement in JSON format. This value is only present when the formatRecordsAs parameter is set to JSON.

      The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.

      Returns:
      Returns a reference to this object so that method calls can be chained together.