Interface Record.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Record.Builder,Record>, SdkBuilder<Record.Builder,Record>, SdkPojo
Enclosing class:
Record

@Mutable @NotThreadSafe public static interface Record.Builder extends SdkPojo, CopyableBuilder<Record.Builder,Record>
  • Method Details

    • eventVersion

      Record.Builder eventVersion(String eventVersion)

      The version of the record format, used to track the evolution of the record structure over time.

      Parameters:
      eventVersion - The version of the record format, used to track the evolution of the record structure over time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Record.Builder createdAt(Instant createdAt)

      The timestamp indicating when this change data capture record was created.

      Parameters:
      createdAt - The timestamp indicating when this change data capture record was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • origin

      Record.Builder origin(String origin)

      The origin or source of this change data capture record.

      Parameters:
      origin - The origin or source of this change data capture record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • origin

      Record.Builder origin(OriginType origin)

      The origin or source of this change data capture record.

      Parameters:
      origin - The origin or source of this change data capture record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • partitionKeys

      Record.Builder partitionKeys(Map<String,KeyspacesCellValue> partitionKeys)

      The partition key columns and their values for the affected row.

      Parameters:
      partitionKeys - The partition key columns and their values for the affected row.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clusteringKeys

      Record.Builder clusteringKeys(Map<String,KeyspacesCellValue> clusteringKeys)

      The clustering key columns and their values for the affected row, which determine the order of rows within a partition.

      Parameters:
      clusteringKeys - The clustering key columns and their values for the affected row, which determine the order of rows within a partition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • newImage

      Record.Builder newImage(KeyspacesRow newImage)

      The state of the row after the change operation that generated this record.

      Parameters:
      newImage - The state of the row after the change operation that generated this record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • newImage

      default Record.Builder newImage(Consumer<KeyspacesRow.Builder> newImage)

      The state of the row after the change operation that generated this record.

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

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

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

      Record.Builder oldImage(KeyspacesRow oldImage)

      The state of the row before the change operation that generated this record.

      Parameters:
      oldImage - The state of the row before the change operation that generated this record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oldImage

      default Record.Builder oldImage(Consumer<KeyspacesRow.Builder> oldImage)

      The state of the row before the change operation that generated this record.

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

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

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

      Record.Builder sequenceNumber(String sequenceNumber)

      A unique identifier assigned to this record within the shard, used for ordering and tracking purposes.

      Parameters:
      sequenceNumber - A unique identifier assigned to this record within the shard, used for ordering and tracking purposes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.