Package com.twitter.clientlib.model
Class AnimatedGifAllOf
- java.lang.Object
-
- com.twitter.clientlib.model.AnimatedGifAllOf
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class AnimatedGifAllOf extends Object
AnimatedGifAllOf
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnimatedGifAllOf.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PREVIEW_IMAGE_URLstatic StringSERIALIZED_NAME_VARIANTS
-
Constructor Summary
Constructors Constructor Description AnimatedGifAllOf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimatedGifAllOfaddVariantsItem(VideoAllOfVariants variantsItem)booleanequals(Object o)static AnimatedGifAllOffromJson(String jsonString)Create an instance of AnimatedGifAllOf given an JSON stringURLgetPreviewImageUrl()Get previewImageUrlList<VideoAllOfVariants>getVariants()An array of all available variants of the mediainthashCode()AnimatedGifAllOfpreviewImageUrl(URL previewImageUrl)voidsetPreviewImageUrl(URL previewImageUrl)voidsetVariants(List<VideoAllOfVariants> variants)StringtoJson()Convert an instance of AnimatedGifAllOf to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundAnimatedGifAllOfvariants(List<VideoAllOfVariants> variants)
-
-
-
Field Detail
-
SERIALIZED_NAME_PREVIEW_IMAGE_URL
public static final String SERIALIZED_NAME_PREVIEW_IMAGE_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VARIANTS
public static final String SERIALIZED_NAME_VARIANTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
previewImageUrl
public AnimatedGifAllOf previewImageUrl(URL previewImageUrl)
-
getPreviewImageUrl
@Nullable public URL getPreviewImageUrl()
Get previewImageUrl- Returns:
- previewImageUrl
-
setPreviewImageUrl
public void setPreviewImageUrl(URL previewImageUrl)
-
variants
public AnimatedGifAllOf variants(List<VideoAllOfVariants> variants)
-
addVariantsItem
public AnimatedGifAllOf addVariantsItem(VideoAllOfVariants variantsItem)
-
getVariants
@Nullable public List<VideoAllOfVariants> getVariants()
An array of all available variants of the media- Returns:
- variants
-
setVariants
public void setVariants(List<VideoAllOfVariants> variants)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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 AnimatedGifAllOf
-
fromJson
public static AnimatedGifAllOf fromJson(String jsonString) throws IOException
Create an instance of AnimatedGifAllOf given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AnimatedGifAllOf
- Throws:
IOException- if the JSON string is invalid with respect to AnimatedGifAllOf
-
toJson
public String toJson()
Convert an instance of AnimatedGifAllOf to an JSON string- Returns:
- JSON string
-
-