Package model
Class Webhook
- java.lang.Object
-
- model.Webhook
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Webhook extends Object
Webhook
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhook.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_APPLICATIONstatic StringSERIALIZED_NAME_AUTHENTICATIONstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_ENABLEDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_UPDATED_ATstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description Webhook()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Webhookapplication(String application)Webhookauthentication(WebhookAuthentication authentication)WebhookcreatedAt(OffsetDateTime createdAt)Webhookenabled(Boolean enabled)booleanequals(Object o)static WebhookfromJson(String jsonString)Create an instance of Webhook given an JSON stringStringgetApplication()The ID of the `Application` resource the `Webhook` was created under.WebhookAuthenticationgetAuthentication()Get authenticationOffsetDateTimegetCreatedAt()Timestamp of when the object was created.BooleangetEnabled()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.StringgetId()The ID of the `Webhook` resource.ProcessorLinksgetLinks()Get linksOffsetDateTimegetUpdatedAt()Timestamp of when the object was last updated.StringgetUrl()The HTTP or HTTPS URL where callbacks (i.e.inthashCode()Webhookid(String id)Webhooklinks(ProcessorLinks links)voidsetApplication(String application)voidsetAuthentication(WebhookAuthentication authentication)voidsetCreatedAt(OffsetDateTime createdAt)voidsetEnabled(Boolean enabled)voidsetId(String id)voidsetLinks(ProcessorLinks links)voidsetUpdatedAt(OffsetDateTime updatedAt)voidsetUrl(String url)StringtoJson()Convert an instance of Webhook to an JSON stringStringtoString()WebhookupdatedAt(OffsetDateTime updatedAt)Webhookurl(String url)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICATION
public static final String SERIALIZED_NAME_APPLICATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AUTHENTICATION
public static final String SERIALIZED_NAME_AUTHENTICATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
getApplication
@Nullable public String getApplication()
The ID of the `Application` resource the `Webhook` was created under.- Returns:
- application
-
setApplication
public void setApplication(String application)
-
authentication
public Webhook authentication(WebhookAuthentication authentication)
-
getAuthentication
@Nullable public WebhookAuthentication getAuthentication()
Get authentication- Returns:
- authentication
-
setAuthentication
public void setAuthentication(WebhookAuthentication authentication)
-
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)
-
links
public Webhook links(ProcessorLinks links)
-
getLinks
@Nullable public ProcessorLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(ProcessorLinks links)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-