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