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 class
UserEntitiesUrl.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_URLS
-
Constructor Summary
Constructors Constructor Description UserEntitiesUrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserEntitiesUrl
addUrlsItem(UrlEntity urlsItem)
boolean
equals(Object o)
static UserEntitiesUrl
fromJson(String jsonString)
Create an instance of UserEntitiesUrl given an JSON stringList<UrlEntity>
getUrls()
Get urlsint
hashCode()
void
setUrls(List<UrlEntity> urls)
String
toJson()
Convert an instance of UserEntitiesUrl to an JSON stringString
toString()
UserEntitiesUrl
urls(List<UrlEntity> urls)
static void
validateJsonObject(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 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 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
-
-