Package software.xdev.brevo.model
Class Event
java.lang.Object
software.xdev.brevo.model.Event
Event
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontactProperties(Map<String, EventContactPropertiesValue> contactProperties) booleaneventProperties(Map<String, EventEventPropertiesValue> eventProperties) Properties defining the state of the contact associated to this event.Timestamp of when the event occurred (e.gThe name of the event that occurred.Properties of the event.Get identifiersinthashCode()identifiers(EventIdentifiers identifiers) putContactPropertiesItem(String key, EventContactPropertiesValue contactPropertiesItem) putEventPropertiesItem(String key, EventEventPropertiesValue eventPropertiesItem) voidsetContactProperties(Map<String, EventContactPropertiesValue> contactProperties) voidsetEventDate(String eventDate) voidsetEventName(String eventName) voidsetEventProperties(Map<String, EventEventPropertiesValue> eventProperties) voidsetIdentifiers(EventIdentifiers identifiers) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_EVENT_NAME
- See Also:
-
JSON_PROPERTY_EVENT_DATE
- See Also:
-
JSON_PROPERTY_IDENTIFIERS
- See Also:
-
JSON_PROPERTY_CONTACT_PROPERTIES
- See Also:
-
JSON_PROPERTY_EVENT_PROPERTIES
- See Also:
-
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
eventName
-
getEventName
The name of the event that occurred. This is how you will find your event in Brevo. Limited to 255 characters, alphanumerical characters and - _ only.- Returns:
- eventName
-
setEventName
-
eventDate
-
getEventDate
Timestamp of when the event occurred (e.g. \"2024-01-24T17:39:57+01:00\"). If no value is passed, the timestamp of the event creation is used.- Returns:
- eventDate
-
setEventDate
-
identifiers
-
getIdentifiers
Get identifiers- Returns:
- identifiers
-
setIdentifiers
-
contactProperties
-
putContactPropertiesItem
public Event putContactPropertiesItem(String key, EventContactPropertiesValue contactPropertiesItem) -
getContactProperties
Properties defining the state of the contact associated to this event. Useful to update contact attributes defined in your contacts database while passing the event. For example: **\"FIRSTNAME\": \"Jane\" , \"AGE\": 37**- Returns:
- contactProperties
-
setContactProperties
public void setContactProperties(@Nullable Map<String, EventContactPropertiesValue> contactProperties) -
eventProperties
-
putEventPropertiesItem
-
getEventProperties
Properties of the event. Top level properties and nested properties can be used to better segment contacts and personalise workflow conditions. The following field type are supported: string, number, boolean (true/false), date (Timestamp e.g. \"2024-01-24T17:39:57+01:00\"). Keys are limited to 255 characters, alphanumerical characters and - _ only. Size is limited to 50Kb.- Returns:
- eventProperties
-
setEventProperties
-
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
-