Package com.mypurecloud.sdk.v2.model
Class ContactsPatchChange
java.lang.Object
com.mypurecloud.sdk.v2.model.ContactsPatchChange
- All Implemented Interfaces:
Serializable
ContactsPatchChange
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe 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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(ContactsPatchChange.ActionEnum 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.booleanA JSONPath string, whose syntax is a strict subset of the JSONPath RFC 9535.getField()getValue()inthashCode()voidvoidvoidtoString()The value which is applied to the selected field for the patch.
-
Constructor Details
-
ContactsPatchChange
public ContactsPatchChange() -
ContactsPatchChange
-
-
Method Details
-
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
-
setField
-
value
The value which is applied to the selected field for the patch. Acceptable types are String, Integer, Boolean, Array, Map. -
getValue
-
setValue
-
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
-
setAction
-
equals
-
hashCode
public int hashCode() -
toString
-