Package sh.ory.model
Class JsonPatch
java.lang.Object
sh.ory.model.JsonPatch
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-04-19T11:31:27.587817519Z[Etc/UTC]") public class JsonPatch extends Object
JSON Patch allows you to target individual keys in a JSON document for updates. For more examples see: https://jsonpatch.com
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonPatch.OpEnumThe JSON Patch operation -
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_OPstatic StringSERIALIZED_NAME_PATHstatic StringSERIALIZED_NAME_VALUE -
Constructor Summary
Constructors Constructor Description JsonPatch() -
Method Summary
Modifier and Type Method Description booleanequals(Object o)JsonPatch.OpEnumgetOp()The JSON Patch operationStringgetPath()The JSON Pointer to the target keyObjectgetValue()The value to be used.inthashCode()JsonPatchop(JsonPatch.OpEnum op)JsonPatchpath(String path)voidsetOp(JsonPatch.OpEnum op)voidsetPath(String path)voidsetValue(Object value)StringtoString()JsonPatchvalue(Object value)
-
Field Details
-
SERIALIZED_NAME_OP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PATH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
JsonPatch
public JsonPatch()
-
-
Method Details
-
op
-
getOp
The JSON Patch operation- Returns:
- op
-
setOp
-
path
-
getPath
The JSON Pointer to the target key- Returns:
- path
-
setPath
-
value
-
getValue
The value to be used. Only available for `add` and `replace` operations.- Returns:
- value
-
setValue
-
equals
-
hashCode
public int hashCode() -
toString
-