Interface BucketInfo.Builder

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

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

    • buckets

      A list of the calculated facet values and counts.

      Parameters:
      buckets - A list of the calculated facet values and counts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buckets

      BucketInfo.Builder buckets(Bucket... buckets)

      A list of the calculated facet values and counts.

      Parameters:
      buckets - A list of the calculated facet values and counts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buckets

      A list of the calculated facet values and counts.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to buckets(List<Bucket>).

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