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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDateRangeExpression.from(FieldDateMath value) API name:fromAPI name:fromAPI name:keyprotected DateRangeExpression.Builderself()to(FieldDateMath value) API name:toAPI name:toMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
API name:from -
from
public final DateRangeExpression.Builder from(Function<FieldDateMath.Builder, ObjectBuilder<FieldDateMath>> fn) API name:from -
key
API name:key -
to
API name:to -
to
public final DateRangeExpression.Builder to(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:
NullPointerException- if some of the required fields are null.
-