Package com.twitter.clientlib.model
Class TweetCreateRequestMedia
- java.lang.Object
-
- com.twitter.clientlib.model.TweetCreateRequestMedia
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetCreateRequestMedia 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 classTweetCreateRequestMedia.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 TweetCreateRequestMedia()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TweetCreateRequestMediaaddMediaIdsItem(String mediaIdsItem)TweetCreateRequestMediaaddTaggedUserIdsItem(String taggedUserIdsItem)booleanequals(Object o)static TweetCreateRequestMediafromJson(String jsonString)Create an instance of TweetCreateRequestMedia 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()TweetCreateRequestMediamediaIds(List<String> mediaIds)voidsetMediaIds(List<String> mediaIds)voidsetTaggedUserIds(List<String> taggedUserIds)TweetCreateRequestMediataggedUserIds(List<String> taggedUserIds)StringtoJson()Convert an instance of TweetCreateRequestMedia 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 TweetCreateRequestMedia mediaIds(List<String> mediaIds)
-
addMediaIdsItem
public TweetCreateRequestMedia addMediaIdsItem(String mediaIdsItem)
-
getMediaIds
@Nonnull public List<String> getMediaIds()
A list of Media Ids to be attached to a created Tweet.- Returns:
- mediaIds
-
taggedUserIds
public TweetCreateRequestMedia taggedUserIds(List<String> taggedUserIds)
-
addTaggedUserIdsItem
public TweetCreateRequestMedia 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 TweetCreateRequestMedia
-
fromJson
public static TweetCreateRequestMedia fromJson(String jsonString) throws IOException
Create an instance of TweetCreateRequestMedia given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetCreateRequestMedia
- Throws:
IOException- if the JSON string is invalid with respect to TweetCreateRequestMedia
-
toJson
public String toJson()
Convert an instance of TweetCreateRequestMedia to an JSON string- Returns:
- JSON string
-
-