Class PolicyEnvelope.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.PolicyEnvelope.Builder
- All Implemented Interfaces:
CopyableBuilder<PolicyEnvelope.Builder,,PolicyEnvelope> MutableBuilder<PolicyEnvelope.Builder,,PolicyEnvelope> ObjectBuilder<PolicyEnvelope>
- Enclosing class:
PolicyEnvelope
public static class PolicyEnvelope.Builder
extends ObjectBuilderBase
implements CopyableBuilder<PolicyEnvelope.Builder,PolicyEnvelope>
Builder for
PolicyEnvelope.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPolicyEnvelope.copy()Create a new builderCopyableBuilderthat is a copy of this one.final PolicyEnvelope.BuilderAPI name:policyfinal PolicyEnvelope.BuilderAPI name:policyMethods 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<PolicyEnvelope.Builder,PolicyEnvelope> - Returns:
- a new builder instance.
-
policy
API name:policy -
policy
@Nonnull public final PolicyEnvelope.Builder policy(Function<Policy.Builder, ObjectBuilder<Policy>> fn) API name:policy -
build
Builds aPolicyEnvelope.- Specified by:
buildin interfaceObjectBuilder<PolicyEnvelope>- Throws:
NullPointerException- if some of the required fields are null.
-