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