Class PatchOperation
java.lang.Object
org.opensearch.client.opensearch.security.PatchOperation
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<PatchOperation.Builder,PatchOperation>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class PatchOperation
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<PatchOperation.Builder,PatchOperation>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PatchOperation> Json deserializer forPatchOperation -
Method Summary
Modifier and TypeMethodDescriptionstatic PatchOperation.Builderbuilder()booleaninthashCode()static PatchOperationfinal Stringop()Required - The operation to perform, such asremove,add,replace,move,copy, ortest.final Stringpath()Required - The path to the resource.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.final JsonDatavalue()The new values used for the update.Methods 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 forPatchOperation
-
-
Method Details
-
of
-
op
Required - The operation to perform, such asremove,add,replace,move,copy, ortest.API name:
op -
path
Required - The path to the resource.API name:
path -
value
The new values used for the update.API name:
value -
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<PatchOperation.Builder,PatchOperation> - Returns:
- a new builder instance.
-
builder
-
setupPatchOperationDeserializer
protected static void setupPatchOperationDeserializer(ObjectDeserializer<PatchOperation.Builder> op) -
hashCode
public int hashCode() -
equals
-