Package com.twitter.clientlib.model
Class Get2TweetsCountsRecentResponse
- java.lang.Object
-
- com.twitter.clientlib.model.Get2TweetsCountsRecentResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Get2TweetsCountsRecentResponse extends Object
Get2TweetsCountsRecentResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Get2TweetsCountsRecentResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DATA
static String
SERIALIZED_NAME_ERRORS
static String
SERIALIZED_NAME_META
-
Constructor Summary
Constructors Constructor Description Get2TweetsCountsRecentResponse()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_META
public static final String SERIALIZED_NAME_META
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public Get2TweetsCountsRecentResponse data(List<SearchCount> data)
-
addDataItem
public Get2TweetsCountsRecentResponse addDataItem(SearchCount dataItem)
-
getData
@Nullable public List<SearchCount> getData()
Get data- Returns:
- data
-
setData
public void setData(List<SearchCount> data)
-
errors
public Get2TweetsCountsRecentResponse errors(List<Problem> errors)
-
addErrorsItem
public Get2TweetsCountsRecentResponse addErrorsItem(Problem errorsItem)
-
meta
public Get2TweetsCountsRecentResponse meta(Get2TweetsCountsAllResponseMeta meta)
-
getMeta
@Nullable public Get2TweetsCountsAllResponseMeta getMeta()
Get meta- Returns:
- meta
-
setMeta
public void setMeta(Get2TweetsCountsAllResponseMeta meta)
-
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 Get2TweetsCountsRecentResponse
-
fromJson
public static Get2TweetsCountsRecentResponse fromJson(String jsonString) throws IOException
Create an instance of Get2TweetsCountsRecentResponse given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Get2TweetsCountsRecentResponse
- Throws:
IOException
- if the JSON string is invalid with respect to Get2TweetsCountsRecentResponse
-
toJson
public String toJson()
Convert an instance of Get2TweetsCountsRecentResponse to an JSON string- Returns:
- JSON string
-
-