Class CreateAttribute

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

public class CreateAttribute extends Object
CreateAttribute
  • Field Details

  • Constructor Details

    • CreateAttribute

      public CreateAttribute()
  • Method Details

    • value

      public CreateAttribute value(@Nullable String value)
    • getValue

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

      public void setValue(@Nullable String value)
    • isRecurring

      public CreateAttribute isRecurring(@Nullable Boolean isRecurring)
    • getIsRecurring

      @Nullable public Boolean getIsRecurring()
      Type of the attribute. **Use only if the attribute's category is 'calculated' or 'global'**
      Returns:
      isRecurring
    • setIsRecurring

      public void setIsRecurring(@Nullable Boolean isRecurring)
    • enumeration

      public CreateAttribute enumeration(@Nullable List<CreateAttributeEnumerationInner> enumeration)
    • addEnumerationItem

      public CreateAttribute addEnumerationItem(CreateAttributeEnumerationInner enumerationItem)
    • getEnumeration

      @Nullable public List<CreateAttributeEnumerationInner> getEnumeration()
      List of 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<CreateAttributeEnumerationInner> enumeration)
    • multiCategoryOptions

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

      public CreateAttribute addMultiCategoryOptionsItem(String multiCategoryOptionsItem)
    • getMultiCategoryOptions

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

      public void setMultiCategoryOptions(@Nullable List<String> multiCategoryOptions)
    • type

      public CreateAttribute type(@Nullable CreateAttribute.TypeEnum type)
    • getType

      @Nullable public CreateAttribute.TypeEnum getType()
      Type of the attribute. **Use only if the attribute's category is 'normal', 'category' or 'transactional'** Type **user and multiple-choice** is only available if the category is **normal** attribute Type **id** is only available if the category is **transactional** attribute Type **category** is only available if the category is **category** attribute
      Returns:
      type
    • setType

      public void setType(@Nullable CreateAttribute.TypeEnum type)
    • 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