Package com.datadog.api.client.v2.model
Class JsonPatchOperation
java.lang.Object
com.datadog.api.client.v2.model.JsonPatchOperation
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class JsonPatchOperation
extends Object
A JSON Patch operation as per RFC 6902.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this JsonPatchOperation object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getOp()The operation to perform.getPath()A JSON Pointer path (e.g., "/name", "/value/secure").getValue()The value to use for the operation (not applicable for "remove" and "test" operations).inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_OP
- See Also:
-
JSON_PROPERTY_PATH
- See Also:
-
JSON_PROPERTY_VALUE
- See Also:
-
-
Constructor Details
-
JsonPatchOperation
public JsonPatchOperation() -
JsonPatchOperation
-
-
Method Details
-
op
-
getOp
The operation to perform.- Returns:
- op
-
setOp
-
path
-
getPath
A JSON Pointer path (e.g., "/name", "/value/secure").- Returns:
- path
-
setPath
-
value
-
getValue
The value to use for the operation (not applicable for "remove" and "test" operations).- Returns:
- value
-
setValue
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- JsonPatchOperation
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this JsonPatchOperation object is equal to o. -
hashCode
public int hashCode() -
toString
-