Package com.twitter.clientlib.model
Class TweetCountsResponseMeta
- java.lang.Object
-
- com.twitter.clientlib.model.TweetCountsResponseMeta
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetCountsResponseMeta extends Object
TweetCountsResponseMeta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetCountsResponseMeta.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NEXT_TOKENstatic StringSERIALIZED_NAME_TOTAL_TWEET_COUNT
-
Constructor Summary
Constructors Constructor Description TweetCountsResponseMeta()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TweetCountsResponseMetafromJson(String jsonString)Create an instance of TweetCountsResponseMeta given an JSON stringStringgetNextToken()This value is used to get the next 'page' of results by providing it to the next_token parameter.IntegergetTotalTweetCount()Sum of search query count resultsinthashCode()TweetCountsResponseMetanextToken(String nextToken)voidsetNextToken(String nextToken)voidsetTotalTweetCount(Integer totalTweetCount)StringtoJson()Convert an instance of TweetCountsResponseMeta to an JSON stringStringtoString()TweetCountsResponseMetatotalTweetCount(Integer totalTweetCount)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NEXT_TOKEN
public static final String SERIALIZED_NAME_NEXT_TOKEN
- 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
-
nextToken
public TweetCountsResponseMeta nextToken(String nextToken)
-
getNextToken
@Nullable public String getNextToken()
This value is used to get the next 'page' of results by providing it to the next_token parameter.- Returns:
- nextToken
-
setNextToken
public void setNextToken(String nextToken)
-
totalTweetCount
public TweetCountsResponseMeta totalTweetCount(Integer totalTweetCount)
-
getTotalTweetCount
@Nullable public Integer getTotalTweetCount()
Sum of search query count results- Returns:
- totalTweetCount
-
setTotalTweetCount
public void setTotalTweetCount(Integer totalTweetCount)
-
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 TweetCountsResponseMeta
-
fromJson
public static TweetCountsResponseMeta fromJson(String jsonString) throws IOException
Create an instance of TweetCountsResponseMeta given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetCountsResponseMeta
- Throws:
IOException- if the JSON string is invalid with respect to TweetCountsResponseMeta
-
toJson
public String toJson()
Convert an instance of TweetCountsResponseMeta to an JSON string- Returns:
- JSON string
-
-