Class ChangePolicyRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.ism.ChangePolicyRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ChangePolicyRequest.Builder,ChangePolicyRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class ChangePolicyRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<ChangePolicyRequest.Builder,ChangePolicyRequest>
Updates the managed index policy to a new policy.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ChangePolicyRequest> Json deserializer forChangePolicyRequeststatic final Endpoint<ChangePolicyRequest, ChangePolicyResponse, ErrorResponse> Endpoint "ism.change_policy". -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangePolicyRequest.Builderbuilder()booleaninthashCode()final List<IncludeState> include()The states to include in the policy change.final Stringindex()API name:indexstatic ChangePolicyRequestfinal StringpolicyId()Required - The ID of the new policy.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringstate()The state to transition to.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forChangePolicyRequest -
_ENDPOINT
Endpoint "ism.change_policy".
-
-
Method Details
-
of
public static ChangePolicyRequest of(Function<ChangePolicyRequest.Builder, ObjectBuilder<ChangePolicyRequest>> fn) -
include
The states to include in the policy change.API name:
include -
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ChangePolicyRequest.Builder,ChangePolicyRequest> - Returns:
- a new builder instance.
-
builder
-
setupChangePolicyRequestDeserializer
protected static void setupChangePolicyRequestDeserializer(ObjectDeserializer<ChangePolicyRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-