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 class
UrlImage.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_HEIGHT
static String
SERIALIZED_NAME_URL
static String
SERIALIZED_NAME_WIDTH
-
Constructor Summary
Constructors Constructor Description UrlImage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static UrlImage
fromJson(String jsonString)
Create an instance of UrlImage given an JSON stringInteger
getHeight()
The height of the media in pixels.URL
getUrl()
A validly formatted URL.Integer
getWidth()
The width of the media in pixels.int
hashCode()
UrlImage
height(Integer height)
void
setHeight(Integer height)
void
setUrl(URL url)
void
setWidth(Integer width)
String
toJson()
Convert an instance of UrlImage to an JSON stringString
toString()
UrlImage
url(URL url)
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues foundUrlImage
width(Integer width)
-
-
-
Field Detail
-
SERIALIZED_NAME_HEIGHT
public static final String SERIALIZED_NAME_HEIGHT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WIDTH
public static final String SERIALIZED_NAME_WIDTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHeight
@Nullable public Integer getHeight()
The height of the media in pixels. minimum: 0- Returns:
- height
-
setHeight
public void setHeight(Integer height)
-
setUrl
public void setUrl(URL url)
-
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 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 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
-
-