Package software.xdev.brevo.model
Class UpdateAttribute
java.lang.Object
software.xdev.brevo.model.UpdateAttribute
UpdateAttribute
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEnumerationItem(UpdateAttributeEnumerationInner enumerationItem) addMultiCategoryOptionsItem(String multiCategoryOptionsItem) enumeration(List<UpdateAttributeEnumerationInner> enumeration) booleanList of the values and labels that the attribute can take.Use this option to add multiple-choice attributes options only if the attribute's category is \"normal\".getValue()Value of the attribute to update.inthashCode()multiCategoryOptions(List<String> multiCategoryOptions) voidsetEnumeration(List<UpdateAttributeEnumerationInner> enumeration) voidsetMultiCategoryOptions(List<String> multiCategoryOptions) voidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_VALUE
- See Also:
-
JSON_PROPERTY_ENUMERATION
- See Also:
-
JSON_PROPERTY_MULTI_CATEGORY_OPTIONS
- See Also:
-
-
Constructor Details
-
UpdateAttribute
public UpdateAttribute()
-
-
Method Details
-
value
-
getValue
Value of the attribute to update. **Use only if the attribute's category is 'calculated' or 'global'**- Returns:
- value
-
setValue
-
enumeration
-
addEnumerationItem
-
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
-
multiCategoryOptions
-
addMultiCategoryOptionsItem
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-