Class UpdateAttribute

java.lang.Object
software.xdev.brevo.model.UpdateAttribute

public class UpdateAttribute extends Object
UpdateAttribute
  • Field Details

  • Constructor Details

    • UpdateAttribute

      public UpdateAttribute()
  • Method Details

    • value

      public UpdateAttribute value(@Nullable String value)
    • getValue

      @Nullable public String getValue()
      Value of the attribute to update. **Use only if the attribute's category is 'calculated' or 'global'**
      Returns:
      value
    • setValue

      public void setValue(@Nullable String value)
    • enumeration

      public UpdateAttribute enumeration(@Nullable List<UpdateAttributeEnumerationInner> enumeration)
    • addEnumerationItem

      public UpdateAttribute addEnumerationItem(UpdateAttributeEnumerationInner enumerationItem)
    • getEnumeration

      @Nullable public List<UpdateAttributeEnumerationInner> getEnumeration()
      List of the values and labels that the attribute can take. **Use only if the attribute's category is \"category\"**. None of the category options can exceed max 200 characters. For example, **[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]**
      Returns:
      enumeration
    • setEnumeration

      public void setEnumeration(@Nullable List<UpdateAttributeEnumerationInner> enumeration)
    • multiCategoryOptions

      public UpdateAttribute multiCategoryOptions(@Nullable List<String> multiCategoryOptions)
    • addMultiCategoryOptionsItem

      public UpdateAttribute addMultiCategoryOptionsItem(String multiCategoryOptionsItem)
    • getMultiCategoryOptions

      @Nullable public List<String> getMultiCategoryOptions()
      Use this option to add multiple-choice attributes options only if the attribute's category is \"normal\". **This option is specifically designed for updating multiple-choice attributes. None of the multicategory options can exceed max 200 characters.** For example: **[\"USA\",\"INDIA\"]**
      Returns:
      multiCategoryOptions
    • setMultiCategoryOptions

      public void setMultiCategoryOptions(@Nullable List<String> multiCategoryOptions)
    • 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
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string