Class ContactsPatchChange

java.lang.Object
com.mypurecloud.sdk.v2.model.ContactsPatchChange
All Implemented Interfaces:
Serializable

public class ContactsPatchChange extends Object implements Serializable
ContactsPatchChange
See Also:
  • Constructor Details

    • ContactsPatchChange

      public ContactsPatchChange()
    • ContactsPatchChange

      public ContactsPatchChange(Boolean initWithEmptyList)
  • Method Details

    • field

      public ContactsPatchChange field(String field)
      A JSONPath string, whose syntax is a strict subset of the JSONPath RFC 9535. The root of the field string must be \"$.\" indicating a path from the root of the entity. You may only use dot-notation to access named fields. Examples: To select the `firstName` field of a Contact, use: \"$.firstName\".To access object fields, use the top level object field name: \"$.address\". To access nested field names, use the nested field name: \"$.address.city\". Note: trying to patch both nested fields and their parent field is not allowed and will result in a 409 error response.
    • getField

      public String getField()
    • setField

      public void setField(String field)
    • value

      public ContactsPatchChange value(Object value)
      The value which is applied to the selected field for the patch. Acceptable types are String, Integer, Boolean, Array, Map.
    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object value)
    • action

      The action of the operation.UpdateIfEmpty: Update if and only if the current value is emptyUpdate: Update the field unconditionally.UpdateIfExists: Update the field if and only if the existing field is not empty.AppendToCollection: Add new items to a collection, preserving existing data.Remove: Remove the current value unconditionally.RemoveFromCollection: Remove specified value from a collection.
    • getAction

      public ContactsPatchChange.ActionEnum getAction()
    • setAction

      public void setAction(ContactsPatchChange.ActionEnum action)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object