Class GetWebhook

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

public class GetWebhook extends Object
GetWebhook
  • Field Details

  • Constructor Details

    • GetWebhook

      public GetWebhook()
  • Method Details

    • url

      public GetWebhook url(@Nonnull String url)
    • getUrl

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

      public void setUrl(@Nonnull String url)
    • id

      public GetWebhook id(@Nonnull Long id)
    • getId

      @Nonnull public Long getId()
      ID of the webhook
      Returns:
      id
    • setId

      public void setId(@Nonnull Long id)
    • description

      public GetWebhook description(@Nonnull String description)
    • getDescription

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

      public void setDescription(@Nonnull String description)
    • events

      public GetWebhook events(@Nonnull List<String> events)
    • addEventsItem

      public GetWebhook addEventsItem(String eventsItem)
    • getEvents

      @Nonnull public List<String> getEvents()
      Get events
      Returns:
      events
    • setEvents

      public void setEvents(@Nonnull List<String> events)
    • type

      public GetWebhook type(@Nonnull GetWebhook.TypeEnum type)
    • getType

      @Nonnull public GetWebhook.TypeEnum getType()
      Type of webhook (marketing or transactional)
      Returns:
      type
    • setType

      public void setType(@Nonnull GetWebhook.TypeEnum type)
    • channel

      public GetWebhook channel(@Nullable GetWebhook.ChannelEnum channel)
    • getChannel

      @Nullable public GetWebhook.ChannelEnum getChannel()
      channel of webhook
      Returns:
      channel
    • setChannel

      public void setChannel(@Nullable GetWebhook.ChannelEnum channel)
    • createdAt

      public GetWebhook createdAt(@Nonnull String createdAt)
    • getCreatedAt

      @Nonnull public String getCreatedAt()
      Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ)
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nonnull String createdAt)
    • modifiedAt

      public GetWebhook modifiedAt(@Nonnull String modifiedAt)
    • getModifiedAt

      @Nonnull public String getModifiedAt()
      Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ)
      Returns:
      modifiedAt
    • setModifiedAt

      public void setModifiedAt(@Nonnull String modifiedAt)
    • batched

      public GetWebhook 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 GetWebhook 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 GetWebhook headers(@Nullable List<Object> headers)
    • addHeadersItem

      public GetWebhook 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