Package model

Class Webhook

java.lang.Object
model.Webhook

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class Webhook extends Object
Webhook
  • Field Details

  • Constructor Details

    • Webhook

      public Webhook()
  • Method Details

    • id

      public Webhook id(String id)
    • getId

      @Nullable public String getId()
      The ID of the `Webhook` resource.
      Returns:
      id
    • setId

      public void setId(String id)
    • createdAt

      public Webhook createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp of when the object was created.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • updatedAt

      public Webhook updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Timestamp of when the object was last updated.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • application

      public Webhook application(String application)
    • getApplication

      @Nullable public String getApplication()
      The ID of the `Application` resource the `Webhook` was created under.
      Returns:
      application
    • setApplication

      public void setApplication(String application)
    • enabled

      public Webhook enabled(Boolean enabled)
    • getEnabled

      @Nullable public Boolean getEnabled()
      Details if the `Webhook` is enabled:<ul><li><strong>true</strong>: Events are being sent to the `url`.<li><strong>false</strong>: Events are not being sent.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • url

      public Webhook url(String url)
    • getUrl

      @Nullable public String getUrl()
      The HTTP or HTTPS URL where callbacks (i.e. events) will be sent via POST request (max 120 characters).
      Returns:
      url
    • setUrl

      public void setUrl(String url)
    • links

      public Webhook links(ProcessorLinks links)
    • getLinks

      @Nullable public ProcessorLinks getLinks()
      Get links
      Returns:
      links
    • setLinks

      public void setLinks(ProcessorLinks links)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to Webhook
    • fromJson

      public static Webhook fromJson(String jsonString) throws IOException
      Create an instance of Webhook given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Webhook
      Throws:
      IOException - if the JSON string is invalid with respect to Webhook
    • toJson

      public String toJson()
      Convert an instance of Webhook to an JSON string
      Returns:
      JSON string