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

    • BucketInfo

      public BucketInfo()
  • Method Details

    • 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) or withBuckets(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 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 BucketInfo clone()
      Overrides:
      clone in class Object