Class DateRangeExpression.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.DateRangeExpression.Builder
- All Implemented Interfaces:
CopyableBuilder<DateRangeExpression.Builder,,DateRangeExpression> MutableBuilder<DateRangeExpression.Builder,,DateRangeExpression> ObjectBuilder<DateRangeExpression>
- Enclosing class:
DateRangeExpression
public static class DateRangeExpression.Builder
extends ObjectBuilderBase
implements CopyableBuilder<DateRangeExpression.Builder,DateRangeExpression>
Builder for
DateRangeExpression.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDateRangeExpression.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:fromfrom(FieldDateMath value) API name:fromCustom key to return the range with.API name:toto(FieldDateMath value) API name:toMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<DateRangeExpression.Builder,DateRangeExpression> - Returns:
- a new builder instance.
-
from
API name:from -
from
@Nonnull public final DateRangeExpression.Builder from(Function<FieldDateMath.Builder, ObjectBuilder<FieldDateMath>> fn) API name:from -
key
Custom key to return the range with.API name:
key -
to
API name:to -
to
@Nonnull public final DateRangeExpression.Builder to(Function<FieldDateMath.Builder, ObjectBuilder<FieldDateMath>> fn) API name:to -
build
Builds aDateRangeExpression.- Specified by:
buildin interfaceObjectBuilder<DateRangeExpression>- Throws:
NullPointerException- if some of the required fields are null.
-