Package software.xdev.brevo.model
Class GetWebhook
java.lang.Object
software.xdev.brevo.model.GetWebhook
GetWebhook
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumchannel of webhookstatic enumType of webhook (marketing or transactional) -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(String eventsItem) addHeadersItem(Object headersItem) channel(GetWebhook.ChannelEnum channel) description(String description) booleangetAuth()Authentication header to be send with the webhook requestsBatching configuration of the webhook, we send batched webhooks if its truechannel of webhookCreation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ)Description of the webhookGet eventsGet headersgetId()ID of the webhookLast modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ)getType()Type of webhook (marketing or transactional)getUrl()URL of the webhookinthashCode()modifiedAt(String modifiedAt) voidvoidsetBatched(Boolean batched) voidsetChannel(GetWebhook.ChannelEnum channel) voidsetCreatedAt(String createdAt) voidsetDescription(String description) voidvoidsetHeaders(List<Object> headers) voidvoidsetModifiedAt(String modifiedAt) voidsetType(GetWebhook.TypeEnum type) voidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.type(GetWebhook.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_URL
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_EVENTS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_CHANNEL
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_MODIFIED_AT
- See Also:
-
JSON_PROPERTY_BATCHED
- See Also:
-
JSON_PROPERTY_AUTH
- See Also:
-
JSON_PROPERTY_HEADERS
- See Also:
-
-
Constructor Details
-
GetWebhook
public GetWebhook()
-
-
Method Details
-
url
-
getUrl
URL of the webhook- Returns:
- url
-
setUrl
-
id
-
getId
ID of the webhook- Returns:
- id
-
setId
-
description
-
getDescription
Description of the webhook- Returns:
- description
-
setDescription
-
events
-
addEventsItem
-
getEvents
Get events- Returns:
- events
-
setEvents
-
type
-
getType
Type of webhook (marketing or transactional)- Returns:
- type
-
setType
-
channel
-
getChannel
channel of webhook- Returns:
- channel
-
setChannel
-
createdAt
-
getCreatedAt
Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ)- Returns:
- createdAt
-
setCreatedAt
-
modifiedAt
-
getModifiedAt
Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ)- Returns:
- modifiedAt
-
setModifiedAt
-
batched
-
getBatched
Batching configuration of the webhook, we send batched webhooks if its true- Returns:
- batched
-
setBatched
-
auth
-
getAuth
Authentication header to be send with the webhook requests- Returns:
- auth
-
setAuth
-
headers
-
addHeadersItem
-
getHeaders
Get headers- Returns:
- headers
-
setHeaders
-
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
-