Class JsonPatchOperation
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.dpx_services.dpx.v1.model.JsonPatchOperation
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class JsonPatchOperation extends com.ibm.cloud.sdk.core.service.model.GenericModel
This model represents an individual patch operation to be performed on a JSON document, as defined by RFC 6902.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonPatchOperation.Builder
Builder.static interface
JsonPatchOperation.Op
The operation to be performed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
from()
Gets the from.JsonPatchOperation.Builder
newBuilder()
New builder.java.lang.String
op()
Gets the op.java.lang.String
path()
Gets the path.java.lang.Object
value()
Gets the value.
-
-
-
Method Detail
-
newBuilder
public JsonPatchOperation.Builder newBuilder()
New builder.- Returns:
- a JsonPatchOperation builder
-
op
public java.lang.String op()
Gets the op. The operation to be performed.- Returns:
- the op
-
path
public java.lang.String path()
Gets the path. The JSON Pointer that identifies the field that is the target of the operation.- Returns:
- the path
-
from
public java.lang.String from()
Gets the from. The JSON Pointer that identifies the field that is the source of the operation.- Returns:
- the from
-
value
public java.lang.Object value()
Gets the value. The value to be used within the operation.- Returns:
- the value
-
-