Package com.twitter.clientlib.model
Class UserEntities
- java.lang.Object
-
- com.twitter.clientlib.model.UserEntities
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UserEntities extends Object
A list of metadata found in the User's profile description.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserEntities.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DESCRIPTION
static String
SERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description UserEntities()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserEntities
description(FullTextEntities description)
boolean
equals(Object o)
static UserEntities
fromJson(String jsonString)
Create an instance of UserEntities given an JSON stringFullTextEntities
getDescription()
Get descriptionUserEntitiesUrl
getUrl()
Get urlint
hashCode()
void
setDescription(FullTextEntities description)
void
setUrl(UserEntitiesUrl url)
String
toJson()
Convert an instance of UserEntities to an JSON stringString
toString()
UserEntities
url(UserEntitiesUrl url)
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public UserEntities description(FullTextEntities description)
-
getDescription
@Nullable public FullTextEntities getDescription()
Get description- Returns:
- description
-
setDescription
public void setDescription(FullTextEntities description)
-
url
public UserEntities url(UserEntitiesUrl url)
-
getUrl
@Nullable public UserEntitiesUrl getUrl()
Get url- Returns:
- url
-
setUrl
public void setUrl(UserEntitiesUrl url)
-
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 UserEntities
-
fromJson
public static UserEntities fromJson(String jsonString) throws IOException
Create an instance of UserEntities given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of UserEntities
- Throws:
IOException
- if the JSON string is invalid with respect to UserEntities
-
toJson
public String toJson()
Convert an instance of UserEntities to an JSON string- Returns:
- JSON string
-
-