Class PutPolicyRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<PutPolicyRequest.Builder>
org.opensearch.client.opensearch.ism.PutPolicyRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<PutPolicyRequest.Builder,,PutPolicyRequest> MutableBuilder<PutPolicyRequest.Builder,,PutPolicyRequest> ObjectBuilder<PutPolicyRequest>
- Enclosing class:
PutPolicyRequest
public static class PutPolicyRequest.Builder
extends RequestBase.AbstractBuilder<PutPolicyRequest.Builder>
implements CopyableBuilder<PutPolicyRequest.Builder,PutPolicyRequest>
Builder for
PutPolicyRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutPolicyRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.final PutPolicyRequest.BuilderifPrimaryTerm(Number value) Only perform the operation if the document has this primary term.final PutPolicyRequest.BuilderOnly perform the operation if the document has this sequence number.final PutPolicyRequest.BuilderAPI name:policyfinal PutPolicyRequest.BuilderAPI name:policyfinal PutPolicyRequest.BuilderRequired - API name:policy_idprotected PutPolicyRequest.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods 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<PutPolicyRequest.Builder,PutPolicyRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutPolicyRequest.Builder>
-
ifPrimaryTerm
Only perform the operation if the document has this primary term.API name:
if_primary_term -
ifSeqNo
Only perform the operation if the document has this sequence number.API name:
if_seq_no -
policy
API name:policy -
policy
@Nonnull public final PutPolicyRequest.Builder policy(Function<Policy.Builder, ObjectBuilder<Policy>> fn) API name:policy -
policyId
Required - API name:policy_id -
build
Builds aPutPolicyRequest.- Specified by:
buildin interfaceObjectBuilder<PutPolicyRequest>- Throws:
NullPointerException- if some of the required fields are null.
-