Class RangeBucket.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.MultiBucketBase.AbstractBuilder<RangeBucket.Builder>
org.opensearch.client.opensearch._types.aggregations.RangeBucket.Builder
- All Implemented Interfaces:
CopyableBuilder<RangeBucket.Builder,,RangeBucket> MutableBuilder<RangeBucket.Builder,,RangeBucket> ObjectBuilder<RangeBucket>
- Enclosing class:
RangeBucket
public static class RangeBucket.Builder
extends MultiBucketBase.AbstractBuilder<RangeBucket.Builder>
implements CopyableBuilder<RangeBucket.Builder,RangeBucket>
Builder for
RangeBucket.-
Field Summary
Fields inherited from class org.opensearch.client.opensearch._types.aggregations.MultiBucketBase.AbstractBuilder
aggregations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRangeBucket.copy()Create a new builderCopyableBuilderthat is a copy of this one.final RangeBucket.BuilderAPI name:fromfinal RangeBucket.BuilderfromAsString(String value) API name:from_as_stringfinal RangeBucket.BuilderThe bucket key.protected RangeBucket.Builderself()final RangeBucket.BuilderAPI name:tofinal RangeBucket.BuildertoAsString(String value) API name:to_as_stringMethods inherited from class org.opensearch.client.opensearch._types.aggregations.MultiBucketBase.AbstractBuilder
aggregations, aggregations, aggregations, docCountMethods 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<RangeBucket.Builder,RangeBucket> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classMultiBucketBase.AbstractBuilder<RangeBucket.Builder>
-
from
API name:from -
fromAsString
API name:from_as_string -
key
The bucket key. Present if the aggregation is not keyed.API name:
key -
to
API name:to -
toAsString
API name:to_as_string -
build
Builds aRangeBucket.- Specified by:
buildin interfaceObjectBuilder<RangeBucket>- Throws:
NullPointerException- if some of the required fields are null.
-