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 classUserEntities.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description UserEntities()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserEntitiesdescription(FullTextEntities description)booleanequals(Object o)static UserEntitiesfromJson(String jsonString)Create an instance of UserEntities given an JSON stringFullTextEntitiesgetDescription()Get descriptionUserEntitiesUrlgetUrl()Get urlinthashCode()voidsetDescription(FullTextEntities description)voidsetUrl(UserEntitiesUrl url)StringtoJson()Convert an instance of UserEntities to an JSON stringStringtoString()UserEntitiesurl(UserEntitiesUrl 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_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
url
public UserEntities url(UserEntitiesUrl url)
-
getUrl
@Nullable public UserEntitiesUrl getUrl()
Get url- Returns:
- url
-
setUrl
public void setUrl(UserEntitiesUrl url)
-
description
public UserEntities description(FullTextEntities description)
-
getDescription
@Nullable public FullTextEntities getDescription()
Get description- Returns:
- description
-
setDescription
public void setDescription(FullTextEntities description)
-
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 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
-
-