Class AggregationRange.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregationRange.Builder
- All Implemented Interfaces:
CopyableBuilder<AggregationRange.Builder,,AggregationRange> MutableBuilder<AggregationRange.Builder,,AggregationRange> ObjectBuilder<AggregationRange>
- Enclosing class:
AggregationRange
public static class AggregationRange.Builder
extends ObjectBuilderBase
implements CopyableBuilder<AggregationRange.Builder,AggregationRange>
Builder for
AggregationRange.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAggregationRange.copy()Create a new builderCopyableBuilderthat is a copy of this one.final AggregationRange.BuilderStart of the range (inclusive).final AggregationRange.BuilderCustom key to return the range with.final AggregationRange.BuilderEnd of the range (exclusive).Methods 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<AggregationRange.Builder,AggregationRange> - Returns:
- a new builder instance.
-
from
Start of the range (inclusive).API name:
from -
key
Custom key to return the range with.API name:
key -
to
End of the range (exclusive).API name:
to -
build
Builds aAggregationRange.- Specified by:
buildin interfaceObjectBuilder<AggregationRange>- Throws:
NullPointerException- if some of the required fields are null.
-