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(String url)
    • getUrl

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

      public void setUrl(String url)
    • id

      public GetWebhook id(Long id)
    • getId

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

      public void setId(Long id)
    • description

      public GetWebhook description(String description)
    • getDescription

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

      public void setDescription(String description)
    • events

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

      public GetWebhook addEventsItem(String eventsItem)
    • getEvents

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

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

      public GetWebhook type(GetWebhook.TypeEnum type)
    • getType

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

      public void setType(GetWebhook.TypeEnum type)
    • createdAt

      public GetWebhook createdAt(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(String createdAt)
    • modifiedAt

      public GetWebhook modifiedAt(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(String modifiedAt)
    • batched

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

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