Class DateRangeExpression.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.aggregations.DateRangeExpression.Builder
-
- All Implemented Interfaces:
ObjectBuilder<DateRangeExpression>
- Enclosing class:
- DateRangeExpression
public static class DateRangeExpression.Builder extends ObjectBuilderBase implements ObjectBuilder<DateRangeExpression>
Builder forDateRangeExpression.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateRangeExpressionbuild()Builds aDateRangeExpression.DateRangeExpression.Builderfrom(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)API name:fromDateRangeExpression.Builderfrom(FieldDateMath value)API name:fromDateRangeExpression.Builderkey(java.lang.String value)API name:keyDateRangeExpression.Builderto(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)API name:toDateRangeExpression.Builderto(FieldDateMath value)API name:to-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
from
public final DateRangeExpression.Builder from(@Nullable FieldDateMath value)
API name:from
-
from
public final DateRangeExpression.Builder from(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)
API name:from
-
key
public final DateRangeExpression.Builder key(@Nullable java.lang.String value)
API name:key
-
to
public final DateRangeExpression.Builder to(@Nullable FieldDateMath value)
API name:to
-
to
public final DateRangeExpression.Builder to(java.util.function.Function<FieldDateMath.Builder,ObjectBuilder<FieldDateMath>> fn)
API name:to
-
build
public DateRangeExpression build()
Builds aDateRangeExpression.- Specified by:
buildin interfaceObjectBuilder<DateRangeExpression>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-