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
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 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 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 akeyValue
and 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
keyValue
and 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 akeyValue
and 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
keyValue
and acount
.keyValue
: The aggregation field value counted for the particular bucket.count
: The number of documents that have that value.Bucket.Builder
avoiding the need to create one manually viaBucket.builder()
.When the
Consumer
completes,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:
-