Class DateRangeExpression.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DateRangeExpression.Builder>
co.elastic.clients.elasticsearch._types.aggregations.DateRangeExpression.Builder
- All Implemented Interfaces:
WithJson<DateRangeExpression.Builder>,ObjectBuilder<DateRangeExpression>
- Enclosing class:
- DateRangeExpression
public static class DateRangeExpression.Builder extends WithJsonObjectBuilderBase<DateRangeExpression.Builder> 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:keyprotected DateRangeExpression.Builderself()DateRangeExpression.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.WithJsonObjectBuilderBase
withJsonMethods 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DateRangeExpression.Builder>
-
build
Builds aDateRangeExpression.- Specified by:
buildin interfaceObjectBuilder<DateRangeExpression>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-