Package com.twitter.clientlib.model
Class PhotoAllOf
- java.lang.Object
-
- com.twitter.clientlib.model.PhotoAllOf
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PhotoAllOf extends Object
PhotoAllOf
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhotoAllOf.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ALT_TEXTstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description PhotoAllOf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PhotoAllOfaltText(String altText)booleanequals(Object o)static PhotoAllOffromJson(String jsonString)Create an instance of PhotoAllOf given an JSON stringStringgetAltText()Get altTextURLgetUrl()Get urlinthashCode()voidsetAltText(String altText)voidsetUrl(URL url)StringtoJson()Convert an instance of PhotoAllOf to an JSON stringStringtoString()PhotoAllOfurl(URL url)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALT_TEXT
public static final String SERIALIZED_NAME_ALT_TEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
url
public PhotoAllOf url(URL url)
-
setUrl
public void setUrl(URL url)
-
altText
public PhotoAllOf altText(String altText)
-
setAltText
public void setAltText(String altText)
-
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 PhotoAllOf
-
fromJson
public static PhotoAllOf fromJson(String jsonString) throws IOException
Create an instance of PhotoAllOf given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PhotoAllOf
- Throws:
IOException- if the JSON string is invalid with respect to PhotoAllOf
-
toJson
public String toJson()
Convert an instance of PhotoAllOf to an JSON string- Returns:
- JSON string
-
-