Interface ChildShard.Builder

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

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

    • shardId

      ChildShard.Builder shardId(String shardId)

      The shard ID of the existing child shard of the current shard.

      Parameters:
      shardId - The shard ID of the existing child shard of the current shard.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parentShards

      ChildShard.Builder parentShards(Collection<String> parentShards)

      The current shard that is the parent of the existing child shard.

      Parameters:
      parentShards - The current shard that is the parent of the existing child shard.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parentShards

      ChildShard.Builder parentShards(String... parentShards)

      The current shard that is the parent of the existing child shard.

      Parameters:
      parentShards - The current shard that is the parent of the existing child shard.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hashKeyRange

      ChildShard.Builder hashKeyRange(HashKeyRange hashKeyRange)
      Sets the value of the HashKeyRange property for this object.
      Parameters:
      hashKeyRange - The new value for the HashKeyRange property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hashKeyRange

      default ChildShard.Builder hashKeyRange(Consumer<HashKeyRange.Builder> hashKeyRange)
      Sets the value of the HashKeyRange property for this object. This is a convenience method that creates an instance of the HashKeyRange.Builder avoiding the need to create one manually via HashKeyRange.builder().

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

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