Class RateAggregate.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder<RateAggregate.Builder>
org.opensearch.client.opensearch._types.aggregations.RateAggregate.Builder
- All Implemented Interfaces:
CopyableBuilder<RateAggregate.Builder,,RateAggregate> MutableBuilder<RateAggregate.Builder,,RateAggregate> ObjectBuilder<RateAggregate>
- Enclosing class:
RateAggregate
public static class RateAggregate.Builder
extends AggregateBase.AbstractBuilder<RateAggregate.Builder>
implements CopyableBuilder<RateAggregate.Builder,RateAggregate>
Builder for
RateAggregate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRateAggregate.copy()Create a new builderCopyableBuilderthat is a copy of this one.protected RateAggregate.Builderself()final RateAggregate.Buildervalue(double value) Required - API name:valuefinal RateAggregate.BuildervalueAsString(String value) API name:value_as_stringMethods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder
meta, metaMethods 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<RateAggregate.Builder,RateAggregate> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAggregateBase.AbstractBuilder<RateAggregate.Builder>
-
value
Required - API name:value -
valueAsString
API name:value_as_string -
build
Builds aRateAggregate.- Specified by:
buildin interfaceObjectBuilder<RateAggregate>- Throws:
NullPointerException- if some of the required fields are null.
-