Class ExplainPolicy.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.ExplainPolicy.Builder
- All Implemented Interfaces:
CopyableBuilder<ExplainPolicy.Builder,,ExplainPolicy> MutableBuilder<ExplainPolicy.Builder,,ExplainPolicy> ObjectBuilder<ExplainPolicy>
- Enclosing class:
ExplainPolicy
public static class ExplainPolicy.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ExplainPolicy.Builder,ExplainPolicy>
Builder for
ExplainPolicy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aExplainPolicy.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ExplainPolicy.BuilderWhether the policy is enabled for the index.final ExplainPolicy.BuilderThe ID of the OpenDistro policy applied to the index.final ExplainPolicy.BuilderThe ID of the policy applied to the index.Methods 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<ExplainPolicy.Builder,ExplainPolicy> - Returns:
- a new builder instance.
-
enabled
Whether the policy is enabled for the index.API name:
enabled -
indexOpendistroIndexStateManagementPolicyId
@Nonnull public final ExplainPolicy.Builder indexOpendistroIndexStateManagementPolicyId(@Nullable String value) The ID of the OpenDistro policy applied to the index.API name:
index.opendistro.index_state_management.policy_id -
indexPluginsIndexStateManagementPolicyId
@Nonnull public final ExplainPolicy.Builder indexPluginsIndexStateManagementPolicyId(@Nullable String value) The ID of the policy applied to the index.API name:
index.plugins.index_state_management.policy_id -
build
Builds aExplainPolicy.- Specified by:
buildin interfaceObjectBuilder<ExplainPolicy>- Throws:
NullPointerException- if some of the required fields are null.
-