Interface ShardDetail.Builder

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

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

    • name

      The name of the shard

      Parameters:
      name - The name of the shard
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuration

      ShardDetail.Builder configuration(ShardConfiguration configuration)

      The configuration details of the shard

      Parameters:
      configuration - The configuration details of the shard
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuration

      default ShardDetail.Builder configuration(Consumer<ShardConfiguration.Builder> configuration)

      The configuration details of the shard

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

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

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

      The size of the shard's snapshot

      Parameters:
      size - The size of the shard's snapshot
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snapshotCreationTime

      ShardDetail.Builder snapshotCreationTime(Instant snapshotCreationTime)

      The date and time that the shard's snapshot was created

      Parameters:
      snapshotCreationTime - The date and time that the shard's snapshot was created
      Returns:
      Returns a reference to this object so that method calls can be chained together.