Package model

Class Webhook


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Webhook
    extends Object
    Webhook
    • Constructor Detail

      • Webhook

        public Webhook()
    • Method Detail

      • getId

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

        public void setId​(String id)
      • getCreatedAt

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

        public void setCreatedAt​(OffsetDateTime createdAt)
      • 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)
      • 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)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode 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