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 class
TweetCreateRequestMedia.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_MEDIA_IDS
static String
SERIALIZED_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 TweetCreateRequestMedia
addMediaIdsItem(String mediaIdsItem)
TweetCreateRequestMedia
addTaggedUserIdsItem(String taggedUserIdsItem)
boolean
equals(Object o)
static TweetCreateRequestMedia
fromJson(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.int
hashCode()
TweetCreateRequestMedia
mediaIds(List<String> mediaIds)
void
setMediaIds(List<String> mediaIds)
void
setTaggedUserIds(List<String> taggedUserIds)
TweetCreateRequestMedia
taggedUserIds(List<String> taggedUserIds)
String
toJson()
Convert an instance of TweetCreateRequestMedia 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_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 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 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
-
-