Class CreateWebhook

java.lang.Object
software.xdev.brevo.model.CreateWebhook

public class CreateWebhook extends Object
CreateWebhook
  • Field Details

  • Constructor Details

    • CreateWebhook

      public CreateWebhook()
  • Method Details

    • url

      public CreateWebhook url(String url)
    • getUrl

      @Nonnull public String getUrl()
      URL of the webhook
      Returns:
      url
    • setUrl

      public void setUrl(String url)
    • description

      public CreateWebhook description(String description)
    • getDescription

      @Nullable public String getDescription()
      Description of the webhook
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • events

      public CreateWebhook events(List<CreateWebhook.EventsEnum> events)
    • addEventsItem

      public CreateWebhook addEventsItem(CreateWebhook.EventsEnum eventsItem)
    • getEvents

      @Nonnull public List<CreateWebhook.EventsEnum> 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

      public void setEvents(List<CreateWebhook.EventsEnum> events)
    • type

    • getType

      @Nullable public CreateWebhook.TypeEnum getType()
      Type of the webhook
      Returns:
      type
    • setType

      public void setType(CreateWebhook.TypeEnum type)
    • domain

      public CreateWebhook domain(String domain)
    • getDomain

      @Nullable public String getDomain()
      Inbound domain of webhook, required in case of event type `inbound`
      Returns:
      domain
    • setDomain

      public void setDomain(String domain)
    • batched

      public CreateWebhook batched(Boolean batched)
    • getBatched

      @Nullable public Boolean getBatched()
      Batching configuration of the webhook, we send batched webhooks if its true
      Returns:
      batched
    • setBatched

      public void setBatched(Boolean batched)
    • auth

      public CreateWebhook auth(Object auth)
    • getAuth

      @Nullable public Object getAuth()
      Authentication header to be send with the webhook requests
      Returns:
      auth
    • setAuth

      public void setAuth(Object auth)
    • headers

      public CreateWebhook headers(List<Object> headers)
    • addHeadersItem

      public CreateWebhook addHeadersItem(Object headersItem)
    • getHeaders

      @Nullable public List<Object> getHeaders()
      Get headers
      Returns:
      headers
    • setHeaders

      public void setHeaders(List<Object> headers)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string