Class PinnedDoc.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.PinnedDoc.Builder
- All Implemented Interfaces:
CopyableBuilder<PinnedDoc.Builder,,PinnedDoc> MutableBuilder<PinnedDoc.Builder,,PinnedDoc> ObjectBuilder<PinnedDoc>
- Enclosing class:
PinnedDoc
public static class PinnedDoc.Builder
extends ObjectBuilderBase
implements CopyableBuilder<PinnedDoc.Builder,PinnedDoc>
Builder for
PinnedDoc.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPinnedDoc.copy()Create a new builderCopyableBuilderthat is a copy of this one.final PinnedDoc.BuilderRequired - API name:_idfinal PinnedDoc.BuilderRequired - API name:_indexMethods 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<PinnedDoc.Builder,PinnedDoc> - Returns:
- a new builder instance.
-
id
Required - API name:_id -
index
Required - API name:_index -
build
Builds aPinnedDoc.- Specified by:
buildin interfaceObjectBuilder<PinnedDoc>- Throws:
NullPointerException- if some of the required fields are null.
-