Interface GetBucketsAggregationResponse.Builder
- All Superinterfaces:
 AwsResponse.Builder,Buildable,CopyableBuilder<GetBucketsAggregationResponse.Builder,,GetBucketsAggregationResponse> IotResponse.Builder,SdkBuilder<GetBucketsAggregationResponse.Builder,,GetBucketsAggregationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
 GetBucketsAggregationResponse
- 
Method Summary
Modifier and TypeMethodDescriptionbuckets(Collection<Bucket> buckets) The main part of the response with a list of buckets.buckets(Consumer<Bucket.Builder>... buckets) The main part of the response with a list of buckets.The main part of the response with a list of buckets.totalCount(Integer totalCount) The total number of things that fit the query string criteria.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iot.model.IotResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse 
- 
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
keyValueand acount.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 akeyValueand acount.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
keyValueand acount.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 akeyValueand acount.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
keyValueand acount.keyValue: The aggregation field value counted for the particular bucket.
This is a convenience method that creates an instance of thecount: The number of documents that have that value.Bucket.Builderavoiding the need to create one manually viaBucket.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobuckets(List<Bucket>).- Parameters:
 buckets- a consumer that will call methods onBucket.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -