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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication(String application) createdAt(OffsetDateTime createdAt) booleanstatic WebhookCreate an instance of Webhook given an JSON stringThe ID of the `Application` resource the `Webhook` was created under.Timestamp of when the object was created.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.getId()The ID of the `Webhook` resource.getLinks()Get linksTimestamp of when the object was last updated.getUrl()The HTTP or HTTPS URL where callbacks (i.e.inthashCode()links(ProcessorLinks links) voidsetApplication(String application) voidsetCreatedAt(OffsetDateTime createdAt) voidsetEnabled(Boolean enabled) voidvoidsetLinks(ProcessorLinks links) voidsetUpdatedAt(OffsetDateTime updatedAt) voidtoJson()Convert an instance of Webhook to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_APPLICATION
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
SERIALIZED_NAME_LINKS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Webhook
public Webhook()
-
-
Method Details
-
id
-
getId
The ID of the `Webhook` resource.- Returns:
- id
-
setId
-
createdAt
-
getCreatedAt
Timestamp of when the object was created.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
-
application
-
getApplication
The ID of the `Application` resource the `Webhook` was created under.- Returns:
- application
-
setApplication
-
enabled
-
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
-
url
-
getUrl
The HTTP or HTTPS URL where callbacks (i.e. events) will be sent via POST request (max 120 characters).- Returns:
- url
-
setUrl
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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
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
Convert an instance of Webhook to an JSON string- Returns:
- JSON string
-