Class BucketInfo
- java.lang.Object
-
- com.amazonaws.services.cloudsearchdomain.model.BucketInfo
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class BucketInfo extends Object implements Serializable, Cloneable
A container for the calculated facet values and counts.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BucketInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BucketInfo
clone()
boolean
equals(Object obj)
List<Bucket>
getBuckets()
A list of the calculated facet values and counts.int
hashCode()
void
setBuckets(Collection<Bucket> buckets)
A list of the calculated facet values and counts.String
toString()
Returns a string representation of this object; useful for testing and debugging.BucketInfo
withBuckets(Bucket... buckets)
A list of the calculated facet values and counts.BucketInfo
withBuckets(Collection<Bucket> buckets)
A list of the calculated facet values and counts.
-
-
-
Method Detail
-
getBuckets
public List<Bucket> getBuckets()
A list of the calculated facet values and counts.
- Returns:
- A list of the calculated facet values and counts.
-
setBuckets
public void setBuckets(Collection<Bucket> buckets)
A list of the calculated facet values and counts.
- Parameters:
buckets
- A list of the calculated facet values and counts.
-
withBuckets
public BucketInfo withBuckets(Bucket... buckets)
A list of the calculated facet values and counts.
NOTE: This method appends the values to the existing list (if any). Use
setBuckets(java.util.Collection)
orwithBuckets(java.util.Collection)
if you want to override the existing values.- Parameters:
buckets
- A list of the calculated facet values and counts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBuckets
public BucketInfo withBuckets(Collection<Bucket> buckets)
A list of the calculated facet values and counts.
- Parameters:
buckets
- A list of the calculated facet values and counts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BucketInfo clone()
-
-