Package software.xdev.brevo.model
Class CreateWebhook
java.lang.Object
software.xdev.brevo.model.CreateWebhook
CreateWebhook
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumchannel of webhookstatic enumGets or Sets eventsstatic enumType of the webhook -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(CreateWebhook.EventsEnum eventsItem) addHeadersItem(Object headersItem) channel(CreateWebhook.ChannelEnum channel) description(String description) booleanevents(List<CreateWebhook.EventsEnum> events) getAuth()Authentication header to be send with the webhook requestsBatching configuration of the webhook, we send batched webhooks if its truechannel of webhookDescription of the webhookInbound domain of webhook, required in case of event type `inbound`- Events triggering the webhook.Get headersgetType()Type of the webhookgetUrl()URL of the webhookinthashCode()voidvoidsetBatched(Boolean batched) voidsetChannel(CreateWebhook.ChannelEnum channel) voidsetDescription(String description) voidvoidsetEvents(List<CreateWebhook.EventsEnum> events) voidsetHeaders(List<Object> headers) voidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.type(CreateWebhook.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_URL
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_EVENTS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_CHANNEL
- See Also:
-
JSON_PROPERTY_DOMAIN
- See Also:
-
JSON_PROPERTY_BATCHED
- See Also:
-
JSON_PROPERTY_AUTH
- See Also:
-
JSON_PROPERTY_HEADERS
- See Also:
-
-
Constructor Details
-
CreateWebhook
public CreateWebhook()
-
-
Method Details
-
url
-
getUrl
URL of the webhook- Returns:
- url
-
setUrl
-
description
-
getDescription
Description of the webhook- Returns:
- description
-
setDescription
-
events
-
addEventsItem
-
getEvents
- Events triggering the webhook. Possible values for **Transactional** type webhook: #### `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` - Possible values for **Marketing** type webhook: #### `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` & `delivered` - Possible values for **Inbound** type webhook: #### `inboundEmailProcessed` - Possible values for type **Transactional** and channel **SMS** #### `accepted`,`delivered`,`softBounce`,`hardBounce`,`unsubscribe`,`reply`, `subscribe`,`sent`,`blacklisted`,`skip` - Possible values for type **Marketing** channel **SMS** #### `sent`,`delivered`,`softBounce`,`hardBounce`,`unsubscribe`,`reply`, `subscribe`,`skip`- Returns:
- events
-
setEvents
-
type
-
getType
Type of the webhook- Returns:
- type
-
setType
-
channel
-
getChannel
channel of webhook- Returns:
- channel
-
setChannel
-
domain
-
getDomain
Inbound domain of webhook, required in case of event type `inbound`- Returns:
- domain
-
setDomain
-
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
-