Package video.api.client.api.models
Class Webhook
- java.lang.Object
-
- video.api.client.api.models.Webhook
-
- All Implemented Interfaces:
Serializable,DeepObject
public class Webhook extends Object implements Serializable, DeepObject
Webhook- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_EVENTSstatic StringSERIALIZED_NAME_SIGNATURE_SECRETstatic StringSERIALIZED_NAME_URLstatic StringSERIALIZED_NAME_WEBHOOK_ID
-
Constructor Summary
Constructors Constructor Description Webhook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookaddEventsItem(String eventsItem)WebhookcreatedAt(OffsetDateTime createdAt)booleanequals(Object o)Webhookevents(List<String> events)OffsetDateTimegetCreatedAt()The time and date when you created this webhook subscription, in ATOM UTC format.List<String>getEvents()A list of events that you subscribed to.StringgetSignatureSecret()A secret key for the webhook you subscribed to.StringgetUrl()The URL where the API sends the webhook.StringgetWebhookId()A unique identifier of the webhook you subscribed to.inthashCode()voidsetCreatedAt(OffsetDateTime createdAt)voidsetEvents(List<String> events)voidsetSignatureSecret(String signatureSecret)voidsetUrl(String url)voidsetWebhookId(String webhookId)WebhooksignatureSecret(String signatureSecret)StringtoString()Webhookurl(String url)WebhookwebhookId(String webhookId)
-
-
-
Field Detail
-
SERIALIZED_NAME_WEBHOOK_ID
public static final String SERIALIZED_NAME_WEBHOOK_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_EVENTS
public static final String SERIALIZED_NAME_EVENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIGNATURE_SECRET
public static final String SERIALIZED_NAME_SIGNATURE_SECRET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWebhookId
@Nullable public String getWebhookId()
A unique identifier of the webhook you subscribed to.- Returns:
- webhookId
-
setWebhookId
public void setWebhookId(String webhookId)
-
createdAt
public Webhook createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
The time and date when you created this webhook subscription, in ATOM UTC format.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
getEvents
@Nullable public List<String> getEvents()
A list of events that you subscribed to. When these events occur, the API triggers a webhook call to the URL you provided.- Returns:
- events
-
getUrl
@Nullable public String getUrl()
The URL where the API sends the webhook.- Returns:
- url
-
setUrl
public void setUrl(String url)
-
getSignatureSecret
@Nullable public String getSignatureSecret()
A secret key for the webhook you subscribed to. You can use it to verify the origin of the webhook call that you receive.- Returns:
- signatureSecret
-
setSignatureSecret
public void setSignatureSecret(String signatureSecret)
-
-