Class DateRangeExpression.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.aggregations.DateRangeExpression.Builder
- All Implemented Interfaces:
ObjectBuilder<DateRangeExpression>
- Enclosing class:
- DateRangeExpression
public static class DateRangeExpression.Builder extends ObjectBuilderBase implements ObjectBuilder<DateRangeExpression>
Builder for
DateRangeExpression.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description DateRangeExpressionbuild()Builds aDateRangeExpression.DateRangeExpression.Builderfrom(FieldDateMath value)API name:fromDateRangeExpression.Builderfrom(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)API name:fromDateRangeExpression.Builderkey(java.lang.String value)API name:keyDateRangeExpression.Builderto(FieldDateMath value)API name:toDateRangeExpression.Builderto(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)API name:toMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
API name:from -
from
public final DateRangeExpression.Builder from(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)API name:from -
key
API name:key -
to
API name:to -
to
public final DateRangeExpression.Builder to(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)API name:to -
build
Builds aDateRangeExpression.- Specified by:
buildin interfaceObjectBuilder<DateRangeExpression>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-