Interface GetBucketsAggregationResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GetBucketsAggregationResponse.Builder,GetBucketsAggregationResponse>, IotResponse.Builder, SdkBuilder<GetBucketsAggregationResponse.Builder,GetBucketsAggregationResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
GetBucketsAggregationResponse

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

    • totalCount

      The total number of things that fit the query string criteria.

      Parameters:
      totalCount - The total number of things that fit the query string criteria.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buckets

      The main part of the response with a list of buckets. Each bucket contains a keyValue and a count.

      keyValue: The aggregation field value counted for the particular bucket.

      count: The number of documents that have that value.

      Parameters:
      buckets - The main part of the response with a list of buckets. Each bucket contains a keyValue and a count.

      keyValue: The aggregation field value counted for the particular bucket.

      count: The number of documents that have that value.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buckets

      The main part of the response with a list of buckets. Each bucket contains a keyValue and a count.

      keyValue: The aggregation field value counted for the particular bucket.

      count: The number of documents that have that value.

      Parameters:
      buckets - The main part of the response with a list of buckets. Each bucket contains a keyValue and a count.

      keyValue: The aggregation field value counted for the particular bucket.

      count: The number of documents that have that value.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buckets

      The main part of the response with a list of buckets. Each bucket contains a keyValue and a count.

      keyValue: The aggregation field value counted for the particular bucket.

      count: The number of documents that have that value.

      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: