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 Bucket
clone()
boolean
equals(Object obj)
Long
getCount()
The number of hits that contain the facet value in the specified facet field.String
getValue()
The facet value being counted.int
hashCode()
void
setCount(Long count)
The number of hits that contain the facet value in the specified facet field.void
setValue(String value)
The facet value being counted.String
toString()
Returns a string representation of this object; useful for testing and debugging.Bucket
withCount(Long count)
The number of hits that contain the facet value in the specified facet field.Bucket
withValue(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-