Package com.twitter.clientlib.model
Class VideoAllOf
- java.lang.Object
-
- com.twitter.clientlib.model.VideoAllOf
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VideoAllOf extends Object
VideoAllOf
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VideoAllOf.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DURATION_MS
static String
SERIALIZED_NAME_NON_PUBLIC_METRICS
static String
SERIALIZED_NAME_ORGANIC_METRICS
static String
SERIALIZED_NAME_PREVIEW_IMAGE_URL
static String
SERIALIZED_NAME_PROMOTED_METRICS
static String
SERIALIZED_NAME_PUBLIC_METRICS
static String
SERIALIZED_NAME_VARIANTS
-
Constructor Summary
Constructors Constructor Description VideoAllOf()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_DURATION_MS
public static final String SERIALIZED_NAME_DURATION_MS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NON_PUBLIC_METRICS
public static final String SERIALIZED_NAME_NON_PUBLIC_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORGANIC_METRICS
public static final String SERIALIZED_NAME_ORGANIC_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PREVIEW_IMAGE_URL
public static final String SERIALIZED_NAME_PREVIEW_IMAGE_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROMOTED_METRICS
public static final String SERIALIZED_NAME_PROMOTED_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PUBLIC_METRICS
public static final String SERIALIZED_NAME_PUBLIC_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VARIANTS
public static final String SERIALIZED_NAME_VARIANTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
durationMs
public VideoAllOf durationMs(Integer durationMs)
-
setDurationMs
public void setDurationMs(Integer durationMs)
-
nonPublicMetrics
public VideoAllOf nonPublicMetrics(VideoAllOfNonPublicMetrics nonPublicMetrics)
-
getNonPublicMetrics
@Nullable public VideoAllOfNonPublicMetrics getNonPublicMetrics()
Get nonPublicMetrics- Returns:
- nonPublicMetrics
-
setNonPublicMetrics
public void setNonPublicMetrics(VideoAllOfNonPublicMetrics nonPublicMetrics)
-
organicMetrics
public VideoAllOf organicMetrics(VideoAllOfOrganicMetrics organicMetrics)
-
getOrganicMetrics
@Nullable public VideoAllOfOrganicMetrics getOrganicMetrics()
Get organicMetrics- Returns:
- organicMetrics
-
setOrganicMetrics
public void setOrganicMetrics(VideoAllOfOrganicMetrics organicMetrics)
-
previewImageUrl
public VideoAllOf previewImageUrl(URL previewImageUrl)
-
getPreviewImageUrl
@Nullable public URL getPreviewImageUrl()
Get previewImageUrl- Returns:
- previewImageUrl
-
setPreviewImageUrl
public void setPreviewImageUrl(URL previewImageUrl)
-
promotedMetrics
public VideoAllOf promotedMetrics(VideoAllOfPromotedMetrics promotedMetrics)
-
getPromotedMetrics
@Nullable public VideoAllOfPromotedMetrics getPromotedMetrics()
Get promotedMetrics- Returns:
- promotedMetrics
-
setPromotedMetrics
public void setPromotedMetrics(VideoAllOfPromotedMetrics promotedMetrics)
-
publicMetrics
public VideoAllOf publicMetrics(VideoAllOfPublicMetrics publicMetrics)
-
getPublicMetrics
@Nullable public VideoAllOfPublicMetrics getPublicMetrics()
Get publicMetrics- Returns:
- publicMetrics
-
setPublicMetrics
public void setPublicMetrics(VideoAllOfPublicMetrics publicMetrics)
-
variants
public VideoAllOf variants(List<Variant> variants)
-
addVariantsItem
public VideoAllOf addVariantsItem(Variant variantsItem)
-
getVariants
@Nullable public List<Variant> getVariants()
An array of all available variants of the media.- Returns:
- variants
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
Validates 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 VideoAllOf
-
fromJson
public static VideoAllOf fromJson(String jsonString) throws IOException
Create an instance of VideoAllOf given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of VideoAllOf
- Throws:
IOException
- if the JSON string is invalid with respect to VideoAllOf
-
toJson
public String toJson()
Convert an instance of VideoAllOf to an JSON string- Returns:
- JSON string
-
-