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(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(String value)
    • isRecurring

      public CreateAttribute isRecurring(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(Boolean isRecurring)
    • enumeration

      public CreateAttribute enumeration(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\"**. For example: **[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]**
      Returns:
      enumeration
    • setEnumeration

      public void setEnumeration(List<CreateAttributeEnumerationInner> enumeration)
    • type

    • getType

      @Nullable public CreateAttribute.TypeEnum getType()
      Type of the attribute. **Use only if the attribute's category is 'normal', 'category' or 'transactional'** Type **boolean** 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(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