Package com.twitter.clientlib.model
Class UserEntitiesUrl
- java.lang.Object
-
- com.twitter.clientlib.model.UserEntitiesUrl
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UserEntitiesUrl extends Object
Expanded details for the URL specified in the user's profile, with start and end indices.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserEntitiesUrl.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_URLS
-
Constructor Summary
Constructors Constructor Description UserEntitiesUrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserEntitiesUrladdUrlsItem(UrlEntity urlsItem)booleanequals(Object o)static UserEntitiesUrlfromJson(String jsonString)Create an instance of UserEntitiesUrl given an JSON stringList<UrlEntity>getUrls()Get urlsinthashCode()voidsetUrls(List<UrlEntity> urls)StringtoJson()Convert an instance of UserEntitiesUrl to an JSON stringStringtoString()UserEntitiesUrlurls(List<UrlEntity> urls)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
urls
public UserEntitiesUrl urls(List<UrlEntity> urls)
-
addUrlsItem
public UserEntitiesUrl addUrlsItem(UrlEntity urlsItem)
-
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 UserEntitiesUrl
-
fromJson
public static UserEntitiesUrl fromJson(String jsonString) throws IOException
Create an instance of UserEntitiesUrl given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UserEntitiesUrl
- Throws:
IOException- if the JSON string is invalid with respect to UserEntitiesUrl
-
toJson
public String toJson()
Convert an instance of UserEntitiesUrl to an JSON string- Returns:
- JSON string
-
-