Package video.api.client.api.models
Class WebhooksCreationPayload
- java.lang.Object
-
- video.api.client.api.models.WebhooksCreationPayload
-
- All Implemented Interfaces:
Serializable,DeepObject
public class WebhooksCreationPayload extends Object implements Serializable, DeepObject
WebhooksCreationPayload- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_EVENTSstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description WebhooksCreationPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhooksCreationPayloadaddEventsItem(String eventsItem)booleanequals(Object o)WebhooksCreationPayloadevents(List<String> events)List<String>getEvents()A list of the webhooks that you are subscribing to.StringgetUrl()The the url to which HTTP notifications are sent.inthashCode()voidsetEvents(List<String> events)voidsetUrl(String url)StringtoString()WebhooksCreationPayloadurl(String url)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
events
public WebhooksCreationPayload events(List<String> events)
-
addEventsItem
public WebhooksCreationPayload addEventsItem(String eventsItem)
-
getEvents
public List<String> getEvents()
A list of the webhooks that you are subscribing to. There are Currently four webhook options: * ```video.encoding.quality.completed``` Occurs when a new video is uploaded into your account, it will be encoded into several different HLS and mp4 qualities. When each version is encoded, your webhook will get a notification. It will look like ```{ \\\"type\\\": \\\"video.encoding.quality.completed\\\", \\\"emittedAt\\\": \\\"2021-01-29T16:46:25.217+01:00\\\", \\\"videoId\\\": \\\"viXXXXXXXX\\\", \\\"encoding\\\": \\\"hls\\\", \\\"quality\\\": \\\"720p\\\"} ```. This request says that the 720p HLS encoding was completed. * ```live-stream.broadcast.started``` When a live stream begins broadcasting, the broadcasting parameter changes from false to true, and this webhook fires. * ```live-stream.broadcast.ended``` This event fires when a live stream has finished broadcasting. * ```video.source.recorded``` Occurs when a live stream is recorded and submitted for encoding.- Returns:
- events
-
url
public WebhooksCreationPayload url(String url)
-
getUrl
public String getUrl()
The the url to which HTTP notifications are sent. It could be any http or https URL.- Returns:
- url
-
setUrl
public void setUrl(String url)
-
-