Class DecayFunction.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.DecayFunctionBase.AbstractBuilder<DecayFunction.Builder>
org.opensearch.client.opensearch._types.query_dsl.DecayFunction.Builder
- All Implemented Interfaces:
CopyableBuilder<DecayFunction.Builder,,DecayFunction> MutableBuilder<DecayFunction.Builder,,DecayFunction> ObjectBuilder<DecayFunction>
- Enclosing class:
DecayFunction
public static class DecayFunction.Builder
extends DecayFunctionBase.AbstractBuilder<DecayFunction.Builder>
implements CopyableBuilder<DecayFunction.Builder,DecayFunction>
Builder for
DecayFunction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDecayFunction.copy()Create a new builderCopyableBuilderthat is a copy of this one.final DecayFunction.BuilderRequired -final DecayFunction.BuilderRequired -final DecayFunction.Builderplacement(DecayPlacement value) Required -protected DecayFunction.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.DecayFunctionBase.AbstractBuilder
multiValueModeMethods 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<DecayFunction.Builder,DecayFunction> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classDecayFunctionBase.AbstractBuilder<DecayFunction.Builder>
-
field
Required - -
placement
Required - -
placement
@Nonnull public final DecayFunction.Builder placement(Function<DecayPlacement.Builder, ObjectBuilder<DecayPlacement>> fn) Required - -
build
Builds aDecayFunction.- Specified by:
buildin interfaceObjectBuilder<DecayFunction>- Throws:
NullPointerException- if some of the required fields are null.
-