Package com.enonic.xp.aggregation

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

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

- Direct Known Subclasses:
    `BucketAggregation.Builder`, `SingleValueMetricAggregation.Builder`, `StatsAggregation.Builder`
  Enclosing class:
    Aggregation

      public abstract static class Aggregation.Builder<T extends Aggregation.Builder>
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Builder​(String name)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | `addAggregations​(Aggregations aggregations)` |
    `T` | `addSubAggregation​(Aggregation aggregation)` |

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

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

- - ### Constructor Detail

    - #### Builder

          public Builder​(String name)

  - ### Method Detail

    - #### addSubAggregation

          public T addSubAggregation​(Aggregation aggregation)

    - #### addAggregations

          public T addAggregations​(Aggregations aggregations)