Interface WriteRecordsRequest.Builder

  • Method Details

    • 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:
    • 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

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

      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:
    • overrideConfiguration

      WriteRecordsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.