Package com.twitter.clientlib.model
Class Get2TweetsSearchAllResponseMeta
- java.lang.Object
-
- com.twitter.clientlib.model.Get2TweetsSearchAllResponseMeta
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Get2TweetsSearchAllResponseMeta extends Object
Get2TweetsSearchAllResponseMeta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Get2TweetsSearchAllResponseMeta.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_RESULT_COUNT
-
Constructor Summary
Constructors Constructor Description Get2TweetsSearchAllResponseMeta()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Get2TweetsSearchAllResponseMeta
fromJson(String jsonString)
Create an instance of Get2TweetsSearchAllResponseMeta 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
getResultCount()
The number of results returned in this response.int
hashCode()
Get2TweetsSearchAllResponseMeta
newestId(String newestId)
Get2TweetsSearchAllResponseMeta
nextToken(String nextToken)
Get2TweetsSearchAllResponseMeta
oldestId(String oldestId)
Get2TweetsSearchAllResponseMeta
resultCount(Integer resultCount)
void
setNewestId(String newestId)
void
setNextToken(String nextToken)
void
setOldestId(String oldestId)
void
setResultCount(Integer resultCount)
String
toJson()
Convert an instance of Get2TweetsSearchAllResponseMeta 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_RESULT_COUNT
public static final String SERIALIZED_NAME_RESULT_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
newestId
public Get2TweetsSearchAllResponseMeta newestId(String newestId)
-
setNewestId
public void setNewestId(String newestId)
-
nextToken
public Get2TweetsSearchAllResponseMeta nextToken(String nextToken)
-
setNextToken
public void setNextToken(String nextToken)
-
oldestId
public Get2TweetsSearchAllResponseMeta oldestId(String oldestId)
-
setOldestId
public void setOldestId(String oldestId)
-
resultCount
public Get2TweetsSearchAllResponseMeta 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 Get2TweetsSearchAllResponseMeta
-
fromJson
public static Get2TweetsSearchAllResponseMeta fromJson(String jsonString) throws IOException
Create an instance of Get2TweetsSearchAllResponseMeta given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Get2TweetsSearchAllResponseMeta
- Throws:
IOException
- if the JSON string is invalid with respect to Get2TweetsSearchAllResponseMeta
-
toJson
public String toJson()
Convert an instance of Get2TweetsSearchAllResponseMeta to an JSON string- Returns:
- JSON string
-
-