Package software.xdev.brevo.model
Class CreateAttribute
java.lang.Object
software.xdev.brevo.model.CreateAttribute
CreateAttribute
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEnumerationItem(CreateAttributeEnumerationInner enumerationItem) addMultiCategoryOptionsItem(String multiCategoryOptionsItem) enumeration(List<CreateAttributeEnumerationInner> enumeration) booleanList of values and labels that the attribute can take.Type of the attribute.List of options you want to add for multiple-choice attribute.getType()Type of the attribute.getValue()Value of the attribute.inthashCode()isRecurring(Boolean isRecurring) multiCategoryOptions(List<String> multiCategoryOptions) voidsetEnumeration(List<CreateAttributeEnumerationInner> enumeration) voidsetIsRecurring(Boolean isRecurring) voidsetMultiCategoryOptions(List<String> multiCategoryOptions) voidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.type(CreateAttribute.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_VALUE
- See Also:
-
JSON_PROPERTY_IS_RECURRING
- See Also:
-
JSON_PROPERTY_ENUMERATION
- See Also:
-
JSON_PROPERTY_MULTI_CATEGORY_OPTIONS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
CreateAttribute
public CreateAttribute()
-
-
Method Details
-
value
-
getValue
Value of the attribute. **Use only if the attribute's category is 'calculated' or 'global'**- Returns:
- value
-
setValue
-
isRecurring
-
getIsRecurring
Type of the attribute. **Use only if the attribute's category is 'calculated' or 'global'**- Returns:
- isRecurring
-
setIsRecurring
-
enumeration
-
addEnumerationItem
-
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
-
multiCategoryOptions
-
addMultiCategoryOptionsItem
-
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
-
type
-
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
-
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
-