@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetBucketsAggregationResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
GetBucketsAggregationResult() |
| Modifier and Type | Method and Description |
|---|---|
GetBucketsAggregationResult |
clone() |
boolean |
equals(Object obj) |
List<Bucket> |
getBuckets()
The main part of the response with a list of buckets.
|
Integer |
getTotalCount()
The total number of things that fit the query string criteria.
|
int |
hashCode() |
void |
setBuckets(Collection<Bucket> buckets)
The main part of the response with a list of buckets.
|
void |
setTotalCount(Integer totalCount)
The total number of things that fit the query string criteria.
|
String |
toString()
Returns a string representation of this object.
|
GetBucketsAggregationResult |
withBuckets(Bucket... buckets)
The main part of the response with a list of buckets.
|
GetBucketsAggregationResult |
withBuckets(Collection<Bucket> buckets)
The main part of the response with a list of buckets.
|
GetBucketsAggregationResult |
withTotalCount(Integer totalCount)
The total number of things that fit the query string criteria.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setTotalCount(Integer totalCount)
The total number of things that fit the query string criteria.
totalCount - The total number of things that fit the query string criteria.public Integer getTotalCount()
The total number of things that fit the query string criteria.
public GetBucketsAggregationResult withTotalCount(Integer totalCount)
The total number of things that fit the query string criteria.
totalCount - The total number of things that fit the query string criteria.public List<Bucket> getBuckets()
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.
keyValue and a
count.
keyValue: The aggregation field value counted for the particular bucket.
count: The number of documents that have that value.
public void setBuckets(Collection<Bucket> 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.
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.
public GetBucketsAggregationResult withBuckets(Bucket... 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.
NOTE: This method appends the values to the existing list (if any). Use
setBuckets(java.util.Collection) or withBuckets(java.util.Collection) if you want to override
the existing values.
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.
public GetBucketsAggregationResult withBuckets(Collection<Bucket> 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.
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.
public String toString()
toString in class ObjectObject.toString()public GetBucketsAggregationResult clone()