Class UpdateWebhook

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

public class UpdateWebhook extends Object
UpdateWebhook
  • Field Details

  • Constructor Details

    • UpdateWebhook

      public UpdateWebhook()
  • Method Details

    • url

      public UpdateWebhook url(@Nullable String url)
    • getUrl

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

      public void setUrl(@Nullable String url)
    • description

      public UpdateWebhook description(@Nullable String description)
    • getDescription

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

      public void setDescription(@Nullable String description)
    • events

      public UpdateWebhook events(@Nullable List<UpdateWebhook.EventsEnum> events)
    • addEventsItem

      public UpdateWebhook addEventsItem(UpdateWebhook.EventsEnum eventsItem)
    • getEvents

      @Nullable public List<UpdateWebhook.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(@Nullable List<UpdateWebhook.EventsEnum> events)
    • domain

      public UpdateWebhook domain(@Nullable String domain)
    • getDomain

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

      public void setDomain(@Nullable String domain)
    • batched

      public UpdateWebhook batched(@Nullable 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(@Nullable Boolean batched)
    • auth

      public UpdateWebhook auth(@Nullable Object auth)
    • getAuth

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

      public void setAuth(@Nullable Object auth)
    • headers

      public UpdateWebhook headers(@Nullable List<Object> headers)
    • addHeadersItem

      public UpdateWebhook addHeadersItem(Object headersItem)
    • getHeaders

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

      public void setHeaders(@Nullable 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