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