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 class
ModelList.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_CREATED_AT
static String
SERIALIZED_NAME_DESCRIPTION
static String
SERIALIZED_NAME_FOLLOWER_COUNT
static String
SERIALIZED_NAME_ID
static String
SERIALIZED_NAME_MEMBER_COUNT
static String
SERIALIZED_NAME_NAME
static String
SERIALIZED_NAME_OWNER_ID
static String
SERIALIZED_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)
ModelList
createdAt(OffsetDateTime createdAt)
ModelList
description(String description)
boolean
equals(Object o)
ModelList
followerCount(Integer followerCount)
static ModelList
fromJson(String jsonString)
Create an instance of ModelList given an JSON stringOffsetDateTime
getCreatedAt()
Get createdAtString
getDescription()
Get descriptionInteger
getFollowerCount()
Get followerCountString
getId()
The unique identifier of this List.Integer
getMemberCount()
Get memberCountString
getName()
The name of this List.String
getOwnerId()
Unique identifier of this User.Boolean
getPrivate()
Get _privateint
hashCode()
ModelList
id(String id)
ModelList
memberCount(Integer memberCount)
ModelList
name(String name)
ModelList
ownerId(String ownerId)
void
setCreatedAt(OffsetDateTime createdAt)
void
setDescription(String description)
void
setFollowerCount(Integer followerCount)
void
setId(String id)
void
setMemberCount(Integer memberCount)
void
setName(String name)
void
setOwnerId(String ownerId)
void
setPrivate(Boolean _private)
String
toJson()
Convert an instance of ModelList to an JSON stringString
toString()
static void
validateJsonObject(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 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 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
-
-