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

      • CreateTweetRequestMedia

        public CreateTweetRequestMedia()
    • Method Detail

      • getMediaIds

        @Nullable
        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 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