Class ChangePolicyRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<ChangePolicyRequest.Builder>
org.opensearch.client.opensearch.ism.ChangePolicyRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<ChangePolicyRequest.Builder,,ChangePolicyRequest> MutableBuilder<ChangePolicyRequest.Builder,,ChangePolicyRequest> ObjectBuilder<ChangePolicyRequest>
- Enclosing class:
ChangePolicyRequest
public static class ChangePolicyRequest.Builder
extends RequestBase.AbstractBuilder<ChangePolicyRequest.Builder>
implements CopyableBuilder<ChangePolicyRequest.Builder,ChangePolicyRequest>
Builder for
ChangePolicyRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aChangePolicyRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.The states to include in the policy change.include(List<IncludeState> list) The states to include in the policy change.include(IncludeState value, IncludeState... values) The states to include in the policy change.API name:indexRequired - The ID of the new policy.protected ChangePolicyRequest.Builderself()The state to transition to.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<ChangePolicyRequest.Builder,ChangePolicyRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ChangePolicyRequest.Builder>
-
include
The states to include in the policy change.API name:
includeAdds all elements of
listtoinclude. -
include
@Nonnull public final ChangePolicyRequest.Builder include(IncludeState value, IncludeState... values) The states to include in the policy change.API name:
includeAdds one or more values to
include. -
include
@Nonnull public final ChangePolicyRequest.Builder include(Function<IncludeState.Builder, ObjectBuilder<IncludeState>> fn) The states to include in the policy change.API name:
includeAdds a value to
includeusing a builder lambda. -
index
API name:index -
policyId
Required - The ID of the new policy.API name:
policy_id -
state
The state to transition to.API name:
state -
build
Builds aChangePolicyRequest.- Specified by:
buildin interfaceObjectBuilder<ChangePolicyRequest>- Throws:
NullPointerException- if some of the required fields are null.
-