Package com.twitter.clientlib.model
Class CreateTweetRequestMedia
- java.lang.Object
-
- com.twitter.clientlib.model.CreateTweetRequestMedia
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateTweetRequestMedia extends Object
Media information being attached to created Tweet. This is mutually exclusive from Quote Tweet Id and Poll.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateTweetRequestMedia.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MEDIA_IDSstatic StringSERIALIZED_NAME_TAGGED_USER_IDS
-
Constructor Summary
Constructors Constructor Description CreateTweetRequestMedia()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTweetRequestMediaaddMediaIdsItem(String mediaIdsItem)CreateTweetRequestMediaaddTaggedUserIdsItem(String taggedUserIdsItem)booleanequals(Object o)static CreateTweetRequestMediafromJson(String jsonString)Create an instance of CreateTweetRequestMedia given an JSON stringList<String>getMediaIds()A list of Media Ids to be attached to a created Tweet.List<String>getTaggedUserIds()A list of User Ids to be tagged in the media for created Tweet.inthashCode()CreateTweetRequestMediamediaIds(List<String> mediaIds)voidsetMediaIds(List<String> mediaIds)voidsetTaggedUserIds(List<String> taggedUserIds)CreateTweetRequestMediataggedUserIds(List<String> taggedUserIds)StringtoJson()Convert an instance of CreateTweetRequestMedia to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_MEDIA_IDS
public static final String SERIALIZED_NAME_MEDIA_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGGED_USER_IDS
public static final String SERIALIZED_NAME_TAGGED_USER_IDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
mediaIds
public CreateTweetRequestMedia mediaIds(List<String> mediaIds)
-
addMediaIdsItem
public CreateTweetRequestMedia addMediaIdsItem(String mediaIdsItem)
-
getMediaIds
@Nullable public List<String> getMediaIds()
A list of Media Ids to be attached to a created Tweet.- Returns:
- mediaIds
-
taggedUserIds
public CreateTweetRequestMedia taggedUserIds(List<String> taggedUserIds)
-
addTaggedUserIdsItem
public CreateTweetRequestMedia addTaggedUserIdsItem(String taggedUserIdsItem)
-
getTaggedUserIds
@Nullable public List<String> getTaggedUserIds()
A list of User Ids to be tagged in the media for created Tweet.- Returns:
- taggedUserIds
-
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 CreateTweetRequestMedia
-
fromJson
public static CreateTweetRequestMedia fromJson(String jsonString) throws IOException
Create an instance of CreateTweetRequestMedia given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateTweetRequestMedia
- Throws:
IOException- if the JSON string is invalid with respect to CreateTweetRequestMedia
-
toJson
public String toJson()
Convert an instance of CreateTweetRequestMedia to an JSON string- Returns:
- JSON string
-
-