Class Bucket
- java.lang.Object
-
- com.amazonaws.services.cloudsearchdomain.model.Bucket
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Bucket extends Object implements Serializable, Cloneable
A container for facet information.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Bucket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bucketclone()booleanequals(Object obj)LonggetCount()The number of hits that contain the facet value in the specified facet field.StringgetValue()The facet value being counted.inthashCode()voidsetCount(Long count)The number of hits that contain the facet value in the specified facet field.voidsetValue(String value)The facet value being counted.StringtoString()Returns a string representation of this object; useful for testing and debugging.BucketwithCount(Long count)The number of hits that contain the facet value in the specified facet field.BucketwithValue(String value)The facet value being counted.
-
-
-
Method Detail
-
setValue
public void setValue(String value)
The facet value being counted.
- Parameters:
value- The facet value being counted.
-
getValue
public String getValue()
The facet value being counted.
- Returns:
- The facet value being counted.
-
withValue
public Bucket withValue(String value)
The facet value being counted.
- Parameters:
value- The facet value being counted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCount
public void setCount(Long count)
The number of hits that contain the facet value in the specified facet field.
- Parameters:
count- The number of hits that contain the facet value in the specified facet field.
-
getCount
public Long getCount()
The number of hits that contain the facet value in the specified facet field.
- Returns:
- The number of hits that contain the facet value in the specified facet field.
-
withCount
public Bucket withCount(Long count)
The number of hits that contain the facet value in the specified facet field.
- Parameters:
count- The number of hits that contain the facet value in the specified facet field.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-