com.azure.core.models.JsonPatchOperationKind Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-core Show documentation
Show all versions of azure-core Show documentation
This package contains core types for Azure Java clients.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.models;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Represents the JSON Patch operation kind.
*/
enum JsonPatchOperationKind {
/**
* Add operation.
*/
ADD("add"),
/**
* Remove operation.
*/
REMOVE("remove"),
/**
* Replace operation.
*/
REPLACE("replace"),
/**
* Move operation.
*/
MOVE("move"),
/**
* Copy operation.
*/
COPY("copy"),
/**
* Test operation.
*/
TEST("test");
private final String op;
JsonPatchOperationKind(String op) {
this.op = op;
}
/**
* Gets the string representation of the JSON patch operation kind.
*
* @return The string representation of the JSON patch operation kind.
*/
@JsonValue
public String toString() {
return op;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy