Package com.twitter.clientlib.model
Class URLImage
- java.lang.Object
-
- com.twitter.clientlib.model.URLImage
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class URLImage extends Object
Represent the information for the URL image
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classURLImage.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_HEIGHTstatic StringSERIALIZED_NAME_URLstatic StringSERIALIZED_NAME_WIDTH
-
Constructor Summary
Constructors Constructor Description URLImage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static URLImagefromJson(String jsonString)Create an instance of URLImage given an JSON stringIntegergetHeight()The height of the media in pixels minimum: 0URIgetUrl()A validly formatted URL.IntegergetWidth()The width of the media in pixels minimum: 0inthashCode()URLImageheight(Integer height)voidsetHeight(Integer height)voidsetUrl(URI url)voidsetWidth(Integer width)StringtoJson()Convert an instance of URLImage to an JSON stringStringtoString()URLImageurl(URI url)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundURLImagewidth(Integer width)
-
-
-
Field Detail
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HEIGHT
public static final String SERIALIZED_NAME_HEIGHT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WIDTH
public static final String SERIALIZED_NAME_WIDTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUrl
public void setUrl(URI url)
-
getHeight
@Nullable public Integer getHeight()
The height of the media in pixels minimum: 0- Returns:
- height
-
setHeight
public void setHeight(Integer height)
-
getWidth
@Nullable public Integer getWidth()
The width of the media in pixels minimum: 0- Returns:
- width
-
setWidth
public void setWidth(Integer width)
-
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 URLImage
-
fromJson
public static URLImage fromJson(String jsonString) throws IOException
Create an instance of URLImage given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of URLImage
- Throws:
IOException- if the JSON string is invalid with respect to URLImage
-
toJson
public String toJson()
Convert an instance of URLImage to an JSON string- Returns:
- JSON string
-
-