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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetBucketsAggregationResponse.Builderbuckets(Collection<Bucket> buckets)The main part of the response with a list of buckets.GetBucketsAggregationResponse.Builderbuckets(Consumer<Bucket.Builder>... buckets)The main part of the response with a list of buckets.GetBucketsAggregationResponse.Builderbuckets(Bucket... buckets)The main part of the response with a list of buckets.GetBucketsAggregationResponse.BuildertotalCount(Integer totalCount)The total number of things that fit the query string criteria.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
totalCount
GetBucketsAggregationResponse.Builder totalCount(Integer 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
GetBucketsAggregationResponse.Builder buckets(Collection<Bucket> 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
GetBucketsAggregationResponse.Builder buckets(Bucket... 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
GetBucketsAggregationResponse.Builder buckets(Consumer<Bucket.Builder>... 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 to#buckets(List.) - 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:
#buckets(java.util.Collection)
-
-