Class 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.
    • Constructor Detail

      • TweetCreateRequestMedia

        public TweetCreateRequestMedia()
    • Method Detail

      • getMediaIds

        @Nonnull
        public List<String> getMediaIds()
        A list of Media Ids to be attached to a created Tweet.
        Returns:
        mediaIds
      • setMediaIds

        public void setMediaIds​(List<String> mediaIds)
      • getTaggedUserIds

        @Nullable
        public List<String> getTaggedUserIds()
        A list of User Ids to be tagged in the media for created Tweet.
        Returns:
        taggedUserIds
      • setTaggedUserIds

        public void setTaggedUserIds​(List<String> taggedUserIds)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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