Package com.twitter.clientlib.model
Class Get2UsersIdMentionsResponseMeta
- java.lang.Object
-
- com.twitter.clientlib.model.Get2UsersIdMentionsResponseMeta
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Get2UsersIdMentionsResponseMeta extends Object
Get2UsersIdMentionsResponseMeta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Get2UsersIdMentionsResponseMeta.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_NEWEST_ID
static String
SERIALIZED_NAME_NEXT_TOKEN
static String
SERIALIZED_NAME_OLDEST_ID
static String
SERIALIZED_NAME_PREVIOUS_TOKEN
static String
SERIALIZED_NAME_RESULT_COUNT
-
Constructor Summary
Constructors Constructor Description Get2UsersIdMentionsResponseMeta()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Get2UsersIdMentionsResponseMeta
fromJson(String jsonString)
Create an instance of Get2UsersIdMentionsResponseMeta given an JSON stringString
getNewestId()
The newest id in this response.String
getNextToken()
The next token.String
getOldestId()
The oldest id in this response.String
getPreviousToken()
The previous token.Integer
getResultCount()
The number of results returned in this response.int
hashCode()
Get2UsersIdMentionsResponseMeta
newestId(String newestId)
Get2UsersIdMentionsResponseMeta
nextToken(String nextToken)
Get2UsersIdMentionsResponseMeta
oldestId(String oldestId)
Get2UsersIdMentionsResponseMeta
previousToken(String previousToken)
Get2UsersIdMentionsResponseMeta
resultCount(Integer resultCount)
void
setNewestId(String newestId)
void
setNextToken(String nextToken)
void
setOldestId(String oldestId)
void
setPreviousToken(String previousToken)
void
setResultCount(Integer resultCount)
String
toJson()
Convert an instance of Get2UsersIdMentionsResponseMeta 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_NEWEST_ID
public static final String SERIALIZED_NAME_NEWEST_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NEXT_TOKEN
public static final String SERIALIZED_NAME_NEXT_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OLDEST_ID
public static final String SERIALIZED_NAME_OLDEST_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PREVIOUS_TOKEN
public static final String SERIALIZED_NAME_PREVIOUS_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESULT_COUNT
public static final String SERIALIZED_NAME_RESULT_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
newestId
public Get2UsersIdMentionsResponseMeta newestId(String newestId)
-
setNewestId
public void setNewestId(String newestId)
-
nextToken
public Get2UsersIdMentionsResponseMeta nextToken(String nextToken)
-
setNextToken
public void setNextToken(String nextToken)
-
oldestId
public Get2UsersIdMentionsResponseMeta oldestId(String oldestId)
-
setOldestId
public void setOldestId(String oldestId)
-
previousToken
public Get2UsersIdMentionsResponseMeta previousToken(String previousToken)
-
getPreviousToken
@Nullable public String getPreviousToken()
The previous token.- Returns:
- previousToken
-
setPreviousToken
public void setPreviousToken(String previousToken)
-
resultCount
public Get2UsersIdMentionsResponseMeta resultCount(Integer resultCount)
-
getResultCount
@Nullable public Integer getResultCount()
The number of results returned in this response.- Returns:
- resultCount
-
setResultCount
public void setResultCount(Integer resultCount)
-
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 Get2UsersIdMentionsResponseMeta
-
fromJson
public static Get2UsersIdMentionsResponseMeta fromJson(String jsonString) throws IOException
Create an instance of Get2UsersIdMentionsResponseMeta given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Get2UsersIdMentionsResponseMeta
- Throws:
IOException
- if the JSON string is invalid with respect to Get2UsersIdMentionsResponseMeta
-
toJson
public String toJson()
Convert an instance of Get2UsersIdMentionsResponseMeta to an JSON string- Returns:
- JSON string
-
-