Package com.twitter.clientlib.model
Class VideoAllOfVariants
- java.lang.Object
-
- com.twitter.clientlib.model.VideoAllOfVariants
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VideoAllOfVariants extends Object
VideoAllOfVariants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVideoAllOfVariants.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BIT_RATEstatic StringSERIALIZED_NAME_CONTENT_TYPEstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description VideoAllOfVariants()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoAllOfVariantsbitRate(Integer bitRate)VideoAllOfVariantscontentType(String contentType)booleanequals(Object o)static VideoAllOfVariantsfromJson(String jsonString)Create an instance of VideoAllOfVariants given an JSON stringIntegergetBitRate()The bit rate of the mediaStringgetContentType()The content type of the mediaURLgetUrl()The url to the mediainthashCode()voidsetBitRate(Integer bitRate)voidsetContentType(String contentType)voidsetUrl(URL url)StringtoJson()Convert an instance of VideoAllOfVariants to an JSON stringStringtoString()VideoAllOfVariantsurl(URL url)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BIT_RATE
public static final String SERIALIZED_NAME_BIT_RATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTENT_TYPE
public static final String SERIALIZED_NAME_CONTENT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
bitRate
public VideoAllOfVariants bitRate(Integer bitRate)
-
setBitRate
public void setBitRate(Integer bitRate)
-
contentType
public VideoAllOfVariants contentType(String contentType)
-
getContentType
@Nullable public String getContentType()
The content type of the media- Returns:
- contentType
-
setContentType
public void setContentType(String contentType)
-
url
public VideoAllOfVariants url(URL url)
-
setUrl
public void setUrl(URL url)
-
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 VideoAllOfVariants
-
fromJson
public static VideoAllOfVariants fromJson(String jsonString) throws IOException
Create an instance of VideoAllOfVariants given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VideoAllOfVariants
- Throws:
IOException- if the JSON string is invalid with respect to VideoAllOfVariants
-
toJson
public String toJson()
Convert an instance of VideoAllOfVariants to an JSON string- Returns:
- JSON string
-
-