Package video.api.client.api.models
Class Video
- java.lang.Object
-
- video.api.client.api.models.Video
-
- All Implemented Interfaces:
Serializable,DeepObject
public class Video extends Object implements Serializable, DeepObject
Video- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVideo.LanguageOriginEnumReturns the origin of the last update on the video's `language` attribute.
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ASSETSstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DELETES_ATstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_DISCARDEDstatic StringSERIALIZED_NAME_DISCARDED_ATstatic StringSERIALIZED_NAME_LANGUAGEstatic StringSERIALIZED_NAME_LANGUAGE_ORIGINstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_MP4_SUPPORTstatic StringSERIALIZED_NAME_PANORAMICstatic StringSERIALIZED_NAME_PLAYER_IDstatic StringSERIALIZED_NAME_PUBLICstatic StringSERIALIZED_NAME_PUBLISHED_ATstatic StringSERIALIZED_NAME_SOURCEstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_TITLEstatic StringSERIALIZED_NAME_UPDATED_ATstatic StringSERIALIZED_NAME_VIDEO_ID
-
Constructor Summary
Constructors Constructor Description Video()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Video_public(Boolean _public)VideoaddMetadataItem(Metadata metadataItem)VideoaddTagsItem(String tagsItem)Videoassets(VideoAssets assets)VideocreatedAt(OffsetDateTime createdAt)VideodeletesAt(OffsetDateTime deletesAt)Videodescription(String description)Videodiscarded(Boolean discarded)VideodiscardedAt(OffsetDateTime discardedAt)booleanequals(Object o)VideoAssetsgetAssets()Get assetsOffsetDateTimegetCreatedAt()When a video was created, presented in ATOM UTC format.OffsetDateTimegetDeletesAt()The date and time the video will be permanently deleted.StringgetDescription()A description for the video content.BooleangetDiscarded()Returns `true` for videos you discarded when you have the Video Restore feature enabled.OffsetDateTimegetDiscardedAt()The date and time the video was discarded.StringgetLanguage()Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.Video.LanguageOriginEnumgetLanguageOrigin()Returns the origin of the last update on the video's `language` attribute.List<Metadata>getMetadata()Metadata you can use to categorise and filter videos.BooleangetMp4Support()This lets you know whether mp4 is supported.BooleangetPanoramic()Defines if video is panoramic.StringgetPlayerId()The id of the player that will be applied on the video.BooleangetPublic()Defines if the content is publicly reachable or if a unique token is needed for each play session.OffsetDateTimegetPublishedAt()The date and time the API created the video.VideoSourcegetSource()Get sourceList<String>getTags()One array of tags (each tag is a string) in order to categorize a video.StringgetTitle()The title of the video content.OffsetDateTimegetUpdatedAt()The date and time the video was updated.StringgetVideoId()The unique identifier of the video object.inthashCode()Videolanguage(String language)VideolanguageOrigin(Video.LanguageOriginEnum languageOrigin)Videometadata(List<Metadata> metadata)Videomp4Support(Boolean mp4Support)Videopanoramic(Boolean panoramic)VideoplayerId(String playerId)VideopublishedAt(OffsetDateTime publishedAt)voidsetAssets(VideoAssets assets)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDeletesAt(OffsetDateTime deletesAt)voidsetDescription(String description)voidsetDiscarded(Boolean discarded)voidsetDiscardedAt(OffsetDateTime discardedAt)voidsetLanguage(String language)voidsetLanguageOrigin(Video.LanguageOriginEnum languageOrigin)voidsetMetadata(List<Metadata> metadata)voidsetMp4Support(Boolean mp4Support)voidsetPanoramic(Boolean panoramic)voidsetPlayerId(String playerId)voidsetPublic(Boolean _public)voidsetPublishedAt(OffsetDateTime publishedAt)voidsetSource(VideoSource source)voidsetTags(List<String> tags)voidsetTitle(String title)voidsetUpdatedAt(OffsetDateTime updatedAt)voidsetVideoId(String videoId)Videosource(VideoSource source)Videotags(List<String> tags)Videotitle(String title)StringtoString()VideoupdatedAt(OffsetDateTime updatedAt)VideovideoId(String videoId)
-
-
-
Field Detail
-
SERIALIZED_NAME_VIDEO_ID
public static final String SERIALIZED_NAME_VIDEO_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_TITLE
public static final String SERIALIZED_NAME_TITLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PUBLISHED_AT
public static final String SERIALIZED_NAME_PUBLISHED_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_DISCARDED_AT
public static final String SERIALIZED_NAME_DISCARDED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELETES_AT
public static final String SERIALIZED_NAME_DELETES_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISCARDED
public static final String SERIALIZED_NAME_DISCARDED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LANGUAGE
public static final String SERIALIZED_NAME_LANGUAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LANGUAGE_ORIGIN
public static final String SERIALIZED_NAME_LANGUAGE_ORIGIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCE
public static final String SERIALIZED_NAME_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ASSETS
public static final String SERIALIZED_NAME_ASSETS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLAYER_ID
public static final String SERIALIZED_NAME_PLAYER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PUBLIC
public static final String SERIALIZED_NAME_PUBLIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PANORAMIC
public static final String SERIALIZED_NAME_PANORAMIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MP4_SUPPORT
public static final String SERIALIZED_NAME_MP4_SUPPORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVideoId
public String getVideoId()
The unique identifier of the video object.- Returns:
- videoId
-
setVideoId
public void setVideoId(String videoId)
-
createdAt
public Video createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
When a video was created, presented in ATOM UTC format.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
getTitle
@Nullable public String getTitle()
The title of the video content.- Returns:
- title
-
setTitle
public void setTitle(String title)
-
getDescription
@Nullable public String getDescription()
A description for the video content.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
publishedAt
public Video publishedAt(OffsetDateTime publishedAt)
-
getPublishedAt
@Nullable public OffsetDateTime getPublishedAt()
The date and time the API created the video. Date and time are provided using ATOM UTC format.- Returns:
- publishedAt
-
setPublishedAt
public void setPublishedAt(OffsetDateTime publishedAt)
-
updatedAt
public Video updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
The date and time the video was updated. Date and time are provided using ATOM UTC format.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
discardedAt
public Video discardedAt(OffsetDateTime discardedAt)
-
getDiscardedAt
@Nullable public OffsetDateTime getDiscardedAt()
The date and time the video was discarded. The API populates this field only if you have the Video Restore feature enabled and discard a video. Date and time are provided using ATOM UTC format.- Returns:
- discardedAt
-
setDiscardedAt
public void setDiscardedAt(OffsetDateTime discardedAt)
-
deletesAt
public Video deletesAt(OffsetDateTime deletesAt)
-
getDeletesAt
@Nullable public OffsetDateTime getDeletesAt()
The date and time the video will be permanently deleted. The API populates this field only if you have the Video Restore feature enabled and discard a video. Discarded videos are pemanently deleted after 90 days. Date and time are provided using ATOM UTC format.- Returns:
- deletesAt
-
setDeletesAt
public void setDeletesAt(OffsetDateTime deletesAt)
-
getDiscarded
@Nullable public Boolean getDiscarded()
Returns `true` for videos you discarded when you have the Video Restore feature enabled. Returns `false` for every other video.- Returns:
- discarded
-
setDiscarded
public void setDiscarded(Boolean discarded)
-
getLanguage
@Nullable public String getLanguage()
Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. You can set the language during video creation via the API, otherwise it is detected automatically.- Returns:
- language
-
setLanguage
public void setLanguage(String language)
-
languageOrigin
public Video languageOrigin(Video.LanguageOriginEnum languageOrigin)
-
getLanguageOrigin
@Nullable public Video.LanguageOriginEnum getLanguageOrigin()
Returns the origin of the last update on the video's `language` attribute. - `api` means that the last update was requested from the API. - `auto` means that the last update was done automatically by the API.- Returns:
- languageOrigin
-
setLanguageOrigin
public void setLanguageOrigin(Video.LanguageOriginEnum languageOrigin)
-
getTags
@Nullable public List<String> getTags()
One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.- Returns:
- tags
-
getMetadata
@Nullable public List<Metadata> getMetadata()
Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video.- Returns:
- metadata
-
source
public Video source(VideoSource source)
-
getSource
@Nullable public VideoSource getSource()
Get source- Returns:
- source
-
setSource
public void setSource(VideoSource source)
-
assets
public Video assets(VideoAssets assets)
-
getAssets
@Nullable public VideoAssets getAssets()
Get assets- Returns:
- assets
-
setAssets
public void setAssets(VideoAssets assets)
-
getPlayerId
@Nullable public String getPlayerId()
The id of the player that will be applied on the video.- Returns:
- playerId
-
setPlayerId
public void setPlayerId(String playerId)
-
getPublic
@Nullable public Boolean getPublic()
Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos/).- Returns:
- _public
-
setPublic
public void setPublic(Boolean _public)
-
getPanoramic
@Nullable public Boolean getPanoramic()
Defines if video is panoramic.- Returns:
- panoramic
-
setPanoramic
public void setPanoramic(Boolean panoramic)
-
getMp4Support
@Nullable public Boolean getMp4Support()
This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.- Returns:
- mp4Support
-
setMp4Support
public void setMp4Support(Boolean mp4Support)
-
-