Interface BucketInfo.Builder

    • Method Detail

      • buckets

        BucketInfo.Builder buckets​(Collection<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

        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

        BucketInfo.Builder buckets​(Consumer<Bucket.Builder>... 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).

        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:
        #buckets(java.util.Collection)