Package com.enonic.xp.aggregation

## Class Bucket.Builder<T extends Bucket.Builder>

- java.lang.Object
- - com.enonic.xp.aggregation.Bucket.Builder<T>

- Direct Known Subclasses:
    `DateHistogramBucket.Builder`, `DateRangeBucket.Builder`, `GeoDistanceRangeBucket.Builder`, `NumericRangeBucket.Builder`
  Enclosing class:
    Bucket

      public static class Bucket.Builder<T extends Bucket.Builder>
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Builder()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | `addAggregations​(Aggregations aggregations)` |
    `Bucket` | `build()` |
    `T` | `docCount​(long docCount)` |
    `T` | `key​(String key)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Builder

          public Builder()

  - ### Method Detail

    - #### key

          public T key​(String key)

    - #### docCount

          public T docCount​(long docCount)

    - #### addAggregations

          public T addAggregations​(Aggregations aggregations)

    - #### build

          public Bucket build()