Package software.xdev.brevo.model
Class MainGetContactRewardsPayload
java.lang.Object
software.xdev.brevo.model.MainGetContactRewardsPayload
MainGetContactRewardsPayload
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSort the documents in ascending or descending orderstatic enumSort documents by field -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMetadataItem(MainFilter metadataItem) booleanContact to attribute the reward minimum: 1getLimit()Number of documents per page minimum: 1 maximum: 500Data to define the reward for that particular contactIndex of the first document in the page minimum: 0Unique identifier of the associated rewardgetSort()Sort the documents in ascending or descending orderSort documents by fieldinthashCode()metadata(List<MainFilter> metadata) voidsetContactId(Integer contactId) voidvoidsetMetadata(List<MainFilter> metadata) voidvoidsetRewardId(String rewardId) voidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_CONTACT_ID
- See Also:
-
JSON_PROPERTY_LIMIT
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_OFFSET
- See Also:
-
JSON_PROPERTY_REWARD_ID
- See Also:
-
JSON_PROPERTY_SORT
- See Also:
-
JSON_PROPERTY_SORT_FIELD
- See Also:
-
-
Constructor Details
-
MainGetContactRewardsPayload
public MainGetContactRewardsPayload()
-
-
Method Details
-
contactId
-
getContactId
Contact to attribute the reward minimum: 1- Returns:
- contactId
-
setContactId
-
limit
-
getLimit
Number of documents per page minimum: 1 maximum: 500- Returns:
- limit
-
setLimit
-
metadata
-
addMetadataItem
-
getMetadata
Data to define the reward for that particular contact- Returns:
- metadata
-
setMetadata
-
offset
-
getOffset
Index of the first document in the page minimum: 0- Returns:
- offset
-
setOffset
-
rewardId
-
getRewardId
Unique identifier of the associated reward- Returns:
- rewardId
-
setRewardId
-
sort
-
getSort
Sort the documents in ascending or descending order- Returns:
- sort
-
setSort
-
sortField
public MainGetContactRewardsPayload sortField(@Nullable MainGetContactRewardsPayload.SortFieldEnum sortField) -
getSortField
Sort documents by field- Returns:
- sortField
-
setSortField
-
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
-