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 DateRangeExpression
build()
Builds aDateRangeExpression
.DateRangeExpression.Builder
from(FieldDateMath value)
API name:from
DateRangeExpression.Builder
from(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)
API name:from
DateRangeExpression.Builder
key(java.lang.String value)
API name:key
protected DateRangeExpression.Builder
self()
DateRangeExpression.Builder
to(FieldDateMath value)
API name:to
DateRangeExpression.Builder
to(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)
API name:to
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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:
self
in classWithJsonObjectBuilderBase<DateRangeExpression.Builder>
-
build
Builds aDateRangeExpression
.- Specified by:
build
in interfaceObjectBuilder<DateRangeExpression>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-