Interface WriteRecordsRequest.Builder

    • Method Detail

      • databaseName

        WriteRecordsRequest.Builder databaseName​(String databaseName)

        The name of the Timestream database.

        Parameters:
        databaseName - The name of the Timestream database.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tableName

        WriteRecordsRequest.Builder tableName​(String tableName)

        The name of the Timestream table.

        Parameters:
        tableName - The name of the Timestream table.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • commonAttributes

        WriteRecordsRequest.Builder commonAttributes​(Record commonAttributes)

        A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request. The measure and dimension attributes specified will be merged with the measure and dimension attributes in the records object when the data is written into Timestream. Dimensions may not overlap, or a ValidationException will be thrown. In other words, a record must contain dimensions with unique names.

        Parameters:
        commonAttributes - A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request. The measure and dimension attributes specified will be merged with the measure and dimension attributes in the records object when the data is written into Timestream. Dimensions may not overlap, or a ValidationException will be thrown. In other words, a record must contain dimensions with unique names.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • commonAttributes

        default WriteRecordsRequest.Builder commonAttributes​(Consumer<Record.Builder> commonAttributes)

        A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request. The measure and dimension attributes specified will be merged with the measure and dimension attributes in the records object when the data is written into Timestream. Dimensions may not overlap, or a ValidationException will be thrown. In other words, a record must contain dimensions with unique names.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to commonAttributes(Record).

        Parameters:
        commonAttributes - a consumer that will call methods on Record.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        commonAttributes(Record)
      • records

        WriteRecordsRequest.Builder records​(Collection<Record> records)

        An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.

        Parameters:
        records - An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • records

        WriteRecordsRequest.Builder records​(Record... records)

        An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.

        Parameters:
        records - An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • records

        WriteRecordsRequest.Builder records​(Consumer<Record.Builder>... records)

        An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #records(List).

        Parameters:
        records - a consumer that will call methods on Record.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #records(java.util.Collection)