Class AddPolicyRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.ism.AddPolicyRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<AddPolicyRequest.Builder,AddPolicyRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class AddPolicyRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<AddPolicyRequest.Builder,AddPolicyRequest>
Adds a policy to an index.
-
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<AddPolicyRequest> Json deserializer forAddPolicyRequeststatic final Endpoint<AddPolicyRequest, AddPolicyResponse, ErrorResponse> Endpoint "ism.add_policy". -
Method Summary
Modifier and TypeMethodDescriptionstatic AddPolicyRequest.Builderbuilder()booleaninthashCode()final Stringindex()API name:indexstatic AddPolicyRequestfinal StringpolicyId()Required - The ID of the policy to add.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate 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 forAddPolicyRequest -
_ENDPOINT
Endpoint "ism.add_policy".
-
-
Method Details
-
of
public static AddPolicyRequest of(Function<AddPolicyRequest.Builder, ObjectBuilder<AddPolicyRequest>> fn) -
index
API name:index -
policyId
Required - The ID of the policy to add.API name:
policy_id -
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<AddPolicyRequest.Builder,AddPolicyRequest> - Returns:
- a new builder instance.
-
builder
-
setupAddPolicyRequestDeserializer
protected static void setupAddPolicyRequestDeserializer(ObjectDeserializer<AddPolicyRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-