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:
  • Constructor Details

    • Bucket

      public Bucket()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Bucket clone()
      Overrides:
      clone in class Object