Package com.twitter.clientlib.model
Class Get2TweetsCountsAllResponseMeta
- java.lang.Object
-
- com.twitter.clientlib.model.Get2TweetsCountsAllResponseMeta
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Get2TweetsCountsAllResponseMeta extends Object
Get2TweetsCountsAllResponseMeta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Get2TweetsCountsAllResponseMeta.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_TOTAL_TWEET_COUNT
-
Constructor Summary
Constructors Constructor Description Get2TweetsCountsAllResponseMeta()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Get2TweetsCountsAllResponseMeta
fromJson(String jsonString)
Create an instance of Get2TweetsCountsAllResponseMeta given an JSON stringString
getNewestId()
The newest id in this response.String
getNextToken()
The next token.String
getOldestId()
The oldest id in this response.Integer
getTotalTweetCount()
The sum of results returned in this response.int
hashCode()
Get2TweetsCountsAllResponseMeta
newestId(String newestId)
Get2TweetsCountsAllResponseMeta
nextToken(String nextToken)
Get2TweetsCountsAllResponseMeta
oldestId(String oldestId)
void
setNewestId(String newestId)
void
setNextToken(String nextToken)
void
setOldestId(String oldestId)
void
setTotalTweetCount(Integer totalTweetCount)
String
toJson()
Convert an instance of Get2TweetsCountsAllResponseMeta to an JSON stringString
toString()
Get2TweetsCountsAllResponseMeta
totalTweetCount(Integer totalTweetCount)
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_TOTAL_TWEET_COUNT
public static final String SERIALIZED_NAME_TOTAL_TWEET_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
newestId
public Get2TweetsCountsAllResponseMeta newestId(String newestId)
-
setNewestId
public void setNewestId(String newestId)
-
nextToken
public Get2TweetsCountsAllResponseMeta nextToken(String nextToken)
-
setNextToken
public void setNextToken(String nextToken)
-
oldestId
public Get2TweetsCountsAllResponseMeta oldestId(String oldestId)
-
setOldestId
public void setOldestId(String oldestId)
-
totalTweetCount
public Get2TweetsCountsAllResponseMeta totalTweetCount(Integer totalTweetCount)
-
getTotalTweetCount
@Nullable public Integer getTotalTweetCount()
The sum of results returned in this response.- Returns:
- totalTweetCount
-
setTotalTweetCount
public void setTotalTweetCount(Integer totalTweetCount)
-
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 Get2TweetsCountsAllResponseMeta
-
fromJson
public static Get2TweetsCountsAllResponseMeta fromJson(String jsonString) throws IOException
Create an instance of Get2TweetsCountsAllResponseMeta given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Get2TweetsCountsAllResponseMeta
- Throws:
IOException
- if the JSON string is invalid with respect to Get2TweetsCountsAllResponseMeta
-
toJson
public String toJson()
Convert an instance of Get2TweetsCountsAllResponseMeta to an JSON string- Returns:
- JSON string
-
-