Package software.xdev.brevo.model
Class UpdateWebhook
java.lang.Object
software.xdev.brevo.model.UpdateWebhook
UpdateWebhook
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(UpdateWebhook.EventsEnum eventsItem) addHeadersItem(Object headersItem) description(String description) booleanevents(List<UpdateWebhook.EventsEnum> events) getAuth()Authentication header to be send with the webhook requestsBatching configuration of the webhook, we send batched webhooks if its trueDescription of the webhookInbound domain of webhook, used in case of event type `inbound`- Events triggering the webhook.Get headersgetUrl()URL of the webhookinthashCode()voidvoidsetBatched(Boolean batched) voidsetDescription(String description) voidvoidsetEvents(List<UpdateWebhook.EventsEnum> events) voidsetHeaders(List<Object> headers) voidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_URL
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_EVENTS
- See Also:
-
JSON_PROPERTY_DOMAIN
- See Also:
-
JSON_PROPERTY_BATCHED
- See Also:
-
JSON_PROPERTY_AUTH
- See Also:
-
JSON_PROPERTY_HEADERS
- See Also:
-
-
Constructor Details
-
UpdateWebhook
public UpdateWebhook()
-
-
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`- Returns:
- events
-
setEvents
-
domain
-
getDomain
Inbound domain of webhook, used 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
-