Class EnrichFieldRules

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

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

    • EnrichFieldRules

      public EnrichFieldRules()
    • EnrichFieldRules

      public EnrichFieldRules(Boolean initWithEmptyList)
  • Method Details

    • defaultAction

      public EnrichFieldRules defaultAction(EnrichFieldRules.DefaultActionEnum defaultAction)
      Default behavior for combining data from the submitted request with any entity found in the database. The default behavior if unspecified is `PreferProvided`, meaning any non-null fields in the submitted request will override data in the database, but all null fields will remain unchanged. Omitting a field in the request payload means that it will be treated as null.
    • getDefaultAction

      public EnrichFieldRules.DefaultActionEnum getDefaultAction()
    • setDefaultAction

      public void setDefaultAction(EnrichFieldRules.DefaultActionEnum defaultAction)
    • rules

      public EnrichFieldRules rules(List<EnrichFieldRule> rules)
      Field-specific behaviors for how to combine data from different sources. For example, you can set a `defaultAction` of `PreferProvided`, but use different behaviors such as `AlwaysUseProvided` or `PreferExisting` for specific fields.
    • getRules

      public List<EnrichFieldRule> getRules()
    • setRules

      public void setRules(List<EnrichFieldRule> rules)
    • defaultArrayAction

      public EnrichFieldRules defaultArrayAction(EnrichFieldRules.DefaultArrayActionEnum defaultArrayAction)
      Default behavior for combining items in array field from the submitted request with any array entity found in the database. The default behavior if unspecified is `fill`, meaning the field value will always be the partial concatenation of both the array in the Database and the array in the contact body, up to the size limit of the array
    • getDefaultArrayAction

      public EnrichFieldRules.DefaultArrayActionEnum getDefaultArrayAction()
    • setDefaultArrayAction

      public void setDefaultArrayAction(EnrichFieldRules.DefaultArrayActionEnum defaultArrayAction)
    • 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