Class ExplainPolicyResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.ExplainPolicyResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<ExplainPolicyResponse.Builder,,ExplainPolicyResponse> MutableBuilder<ExplainPolicyResponse.Builder,,ExplainPolicyResponse> ObjectBuilder<ExplainPolicyResponse>
- Enclosing class:
ExplainPolicyResponse
public static class ExplainPolicyResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ExplainPolicyResponse.Builder,ExplainPolicyResponse>
Builder for
ExplainPolicyResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aExplainPolicyResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.Adds a value tometadatausing a builder lambda.metadata(String key, ExplainPolicy value) Adds an entry tometadata.metadata(Map<String, ExplainPolicy> map) Adds all elements ofmaptometadata.totalManagedIndices(Number value) The total number of managed indices.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<ExplainPolicyResponse.Builder,ExplainPolicyResponse> - Returns:
- a new builder instance.
-
metadata
Adds all elements of
maptometadata. -
metadata
Adds an entry to
metadata. -
metadata
@Nonnull public final ExplainPolicyResponse.Builder metadata(String key, Function<ExplainPolicy.Builder, ObjectBuilder<ExplainPolicy>> fn) Adds a value to
metadatausing a builder lambda. -
totalManagedIndices
The total number of managed indices.API name:
total_managed_indices -
build
Builds aExplainPolicyResponse.- Specified by:
buildin interfaceObjectBuilder<ExplainPolicyResponse>- Throws:
NullPointerException- if some of the required fields are null.
-