Package com.twitter.clientlib.model
Class ModelList
- java.lang.Object
-
- com.twitter.clientlib.model.ModelList
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ModelList extends Object
A Twitter List is a curated group of accounts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelList.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_FOLLOWER_COUNTstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_MEMBER_COUNTstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_OWNER_IDstatic StringSERIALIZED_NAME_PRIVATE
-
Constructor Summary
Constructors Constructor Description ModelList()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelList_private(Boolean _private)ModelListcreatedAt(OffsetDateTime createdAt)ModelListdescription(String description)booleanequals(Object o)ModelListfollowerCount(Integer followerCount)static ModelListfromJson(String jsonString)Create an instance of ModelList given an JSON stringOffsetDateTimegetCreatedAt()Get createdAtStringgetDescription()Get descriptionIntegergetFollowerCount()Get followerCountStringgetId()The unique identifier of this List.IntegergetMemberCount()Get memberCountStringgetName()The name of this List.StringgetOwnerId()Unique identifier of this User.BooleangetPrivate()Get _privateinthashCode()ModelListid(String id)ModelListmemberCount(Integer memberCount)ModelListname(String name)ModelListownerId(String ownerId)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDescription(String description)voidsetFollowerCount(Integer followerCount)voidsetId(String id)voidsetMemberCount(Integer memberCount)voidsetName(String name)voidsetOwnerId(String ownerId)voidsetPrivate(Boolean _private)StringtoJson()Convert an instance of ModelList to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FOLLOWER_COUNT
public static final String SERIALIZED_NAME_FOLLOWER_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MEMBER_COUNT
public static final String SERIALIZED_NAME_MEMBER_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OWNER_ID
public static final String SERIALIZED_NAME_OWNER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIVATE
public static final String SERIALIZED_NAME_PRIVATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createdAt
public ModelList createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Get createdAt- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
setDescription
public void setDescription(String description)
-
getFollowerCount
@Nullable public Integer getFollowerCount()
Get followerCount- Returns:
- followerCount
-
setFollowerCount
public void setFollowerCount(Integer followerCount)
-
setId
public void setId(String id)
-
setMemberCount
public void setMemberCount(Integer memberCount)
-
setName
public void setName(String name)
-
getOwnerId
@Nullable public String getOwnerId()
Unique identifier of this User. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.- Returns:
- ownerId
-
setOwnerId
public void setOwnerId(String ownerId)
-
setPrivate
public void setPrivate(Boolean _private)
-
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 ModelList
-
fromJson
public static ModelList fromJson(String jsonString) throws IOException
Create an instance of ModelList given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ModelList
- Throws:
IOException- if the JSON string is invalid with respect to ModelList
-
toJson
public String toJson()
Convert an instance of ModelList to an JSON string- Returns:
- JSON string
-
-