Interface ExecuteStatementResponse.Builder

    • Method Detail

      • records

        ExecuteStatementResponse.Builder records​(Collection<? extends Collection<Field>> 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

        ExecuteStatementResponse.Builder records​(Collection<Field>... 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

        ExecuteStatementResponse.Builder columnMetadata​(Collection<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

        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.
      • 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).

        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:
        #generatedFields(java.util.Collection)
      • 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.