Class 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.
    • 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.
      • Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • 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