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 class
AnimatedGifAllOf.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_PREVIEW_IMAGE_URL
static String
SERIALIZED_NAME_VARIANTS
-
Constructor Summary
Constructors Constructor Description AnimatedGifAllOf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimatedGifAllOf
addVariantsItem(Variant variantsItem)
boolean
equals(Object o)
static AnimatedGifAllOf
fromJson(String jsonString)
Create an instance of AnimatedGifAllOf given an JSON stringURL
getPreviewImageUrl()
Get previewImageUrlList<Variant>
getVariants()
An array of all available variants of the media.int
hashCode()
AnimatedGifAllOf
previewImageUrl(URL previewImageUrl)
void
setPreviewImageUrl(URL previewImageUrl)
void
setVariants(List<Variant> variants)
String
toJson()
Convert an instance of AnimatedGifAllOf to an JSON stringString
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues foundAnimatedGifAllOf
variants(List<Variant> 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<Variant> variants)
-
addVariantsItem
public AnimatedGifAllOf 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 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
-
-