@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TermsAggregation extends Object implements Serializable, Cloneable, StructuredPojo
Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the number of occurrences of an aggregation field value.
Constructor and Description |
---|
TermsAggregation() |
Modifier and Type | Method and Description |
---|---|
TermsAggregation |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxBuckets()
The number of buckets to return in the response.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxBuckets(Integer maxBuckets)
The number of buckets to return in the response.
|
String |
toString()
Returns a string representation of this object.
|
TermsAggregation |
withMaxBuckets(Integer maxBuckets)
The number of buckets to return in the response.
|
public void setMaxBuckets(Integer maxBuckets)
The number of buckets to return in the response. Default to 10.
maxBuckets
- The number of buckets to return in the response. Default to 10.public Integer getMaxBuckets()
The number of buckets to return in the response. Default to 10.
public TermsAggregation withMaxBuckets(Integer maxBuckets)
The number of buckets to return in the response. Default to 10.
maxBuckets
- The number of buckets to return in the response. Default to 10.public String toString()
toString
in class Object
Object.toString()
public TermsAggregation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.