Class WebhookEventPayloadObject


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.9.0")
    public class WebhookEventPayloadObject
    extends Object
    The object affected by this event.
    • Constructor Detail

      • WebhookEventPayloadObject

        public WebhookEventPayloadObject()
    • Method Detail

      • getId

        @Nonnull
        public String getId()
        The unique identifier of the resource.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getStartedAtIso8601

        @Nullable
        public OffsetDateTime getStartedAtIso8601()
        The date and time when the operation was started, if available.
        Returns:
        startedAtIso8601
      • setStartedAtIso8601

        public void setStartedAtIso8601​(OffsetDateTime startedAtIso8601)
      • getCompletedAtIso8601

        @Nullable
        public OffsetDateTime getCompletedAtIso8601()
        The date and time when the operation was completed, if available.
        Returns:
        completedAtIso8601
      • setCompletedAtIso8601

        public void setCompletedAtIso8601​(OffsetDateTime completedAtIso8601)
      • getHref

        @Nonnull
        public String getHref()
        The uri of the resource.
        Returns:
        href
      • setHref

        public void setHref​(String href)
      • putAdditionalProperty

        public WebhookEventPayloadObject putAdditionalProperty​(String key,
                                                               Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the WebhookEventPayloadObject instance itself
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public Object getAdditionalProperty​(String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to WebhookEventPayloadObject
      • fromJson

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

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