Package video.api.client.api.models
Class VideoCreationPayload
- java.lang.Object
-
- video.api.client.api.models.VideoCreationPayload
-
- All Implemented Interfaces:
Serializable
public class VideoCreationPayload extends Object implements Serializable
VideoCreationPayload- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CLIPstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_MP4_SUPPORTstatic StringSERIALIZED_NAME_PANORAMICstatic StringSERIALIZED_NAME_PLAYER_IDstatic StringSERIALIZED_NAME_PUBLICstatic StringSERIALIZED_NAME_SOURCEstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_TITLEstatic StringSERIALIZED_NAME_WATERMARK
-
Constructor Summary
Constructors Constructor Description VideoCreationPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoCreationPayload_public(Boolean _public)VideoCreationPayloadaddMetadataItem(Metadata metadataItem)VideoCreationPayloadaddTagsItem(String tagsItem)VideoCreationPayloadclip(VideoClip clip)VideoCreationPayloaddescription(String description)booleanequals(Object o)VideoClipgetClip()Get clipStringgetDescription()A brief description of your video.List<Metadata>getMetadata()A list of key value pairs that you use to provide metadata for your video.BooleangetMp4Support()Enables mp4 version in addition to streamed version.BooleangetPanoramic()Indicates if your video is a 360/immersive video.StringgetPlayerId()The unique identification number for your video player.BooleangetPublic()Default: True.StringgetSource()You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video.List<String>getTags()A list of tags you want to use to describe your video.StringgetTitle()The title of your new video.VideoWatermarkgetWatermark()Get watermarkinthashCode()VideoCreationPayloadmetadata(List<Metadata> metadata)VideoCreationPayloadmp4Support(Boolean mp4Support)VideoCreationPayloadpanoramic(Boolean panoramic)VideoCreationPayloadplayerId(String playerId)voidsetClip(VideoClip clip)voidsetDescription(String description)voidsetMetadata(List<Metadata> metadata)voidsetMp4Support(Boolean mp4Support)voidsetPanoramic(Boolean panoramic)voidsetPlayerId(String playerId)voidsetPublic(Boolean _public)voidsetSource(String source)voidsetTags(List<String> tags)voidsetTitle(String title)voidsetWatermark(VideoWatermark watermark)VideoCreationPayloadsource(String source)VideoCreationPayloadtags(List<String> tags)VideoCreationPayloadtitle(String title)StringtoString()VideoCreationPayloadwatermark(VideoWatermark watermark)
-
-
-
Field Detail
-
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_SOURCE
public static final String SERIALIZED_NAME_SOURCE
- 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
-
SERIALIZED_NAME_PLAYER_ID
public static final String SERIALIZED_NAME_PLAYER_ID
- 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_CLIP
public static final String SERIALIZED_NAME_CLIP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WATERMARK
public static final String SERIALIZED_NAME_WATERMARK
- See Also:
- Constant Field Values
-
-
Method Detail
-
title
public VideoCreationPayload title(String title)
-
getTitle
public String getTitle()
The title of your new video.- Returns:
- title
-
setTitle
public void setTitle(String title)
-
description
public VideoCreationPayload description(String description)
-
getDescription
@Nullable public String getDescription()
A brief description of your video.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
source
public VideoCreationPayload source(String source)
-
getSource
@Nullable public String getSource()
You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create.- Returns:
- source
-
setSource
public void setSource(String source)
-
_public
public VideoCreationPayload _public(Boolean _public)
-
getPublic
@Nullable public Boolean getPublic()
Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/docs/private-videos)- Returns:
- _public
-
setPublic
public void setPublic(Boolean _public)
-
panoramic
public VideoCreationPayload panoramic(Boolean panoramic)
-
getPanoramic
@Nullable public Boolean getPanoramic()
Indicates if your video is a 360/immersive video.- Returns:
- panoramic
-
setPanoramic
public void setPanoramic(Boolean panoramic)
-
mp4Support
public VideoCreationPayload mp4Support(Boolean mp4Support)
-
getMp4Support
@Nullable public Boolean getMp4Support()
Enables mp4 version in addition to streamed version.- Returns:
- mp4Support
-
setMp4Support
public void setMp4Support(Boolean mp4Support)
-
playerId
public VideoCreationPayload playerId(String playerId)
-
getPlayerId
@Nullable public String getPlayerId()
The unique identification number for your video player.- Returns:
- playerId
-
setPlayerId
public void setPlayerId(String playerId)
-
tags
public VideoCreationPayload tags(List<String> tags)
-
addTagsItem
public VideoCreationPayload addTagsItem(String tagsItem)
-
getTags
@Nullable public List<String> getTags()
A list of tags you want to use to describe your video.- Returns:
- tags
-
metadata
public VideoCreationPayload metadata(List<Metadata> metadata)
-
addMetadataItem
public VideoCreationPayload addMetadataItem(Metadata metadataItem)
-
getMetadata
@Nullable public List<Metadata> getMetadata()
A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. Read more on [dynamic metadata](https://api.video/blog/endpoints/dynamic-metadata).- Returns:
- metadata
-
clip
public VideoCreationPayload clip(VideoClip clip)
-
getClip
@Nullable public VideoClip getClip()
Get clip- Returns:
- clip
-
setClip
public void setClip(VideoClip clip)
-
watermark
public VideoCreationPayload watermark(VideoWatermark watermark)
-
getWatermark
@Nullable public VideoWatermark getWatermark()
Get watermark- Returns:
- watermark
-
setWatermark
public void setWatermark(VideoWatermark watermark)
-
-