Class TweetCreateResponseData


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class TweetCreateResponseData
    extends Object
    TweetCreateResponseData
    • Constructor Detail

      • TweetCreateResponseData

        public TweetCreateResponseData()
    • Method Detail

      • getId

        @Nonnull
        public String getId()
        Unique identifier of this Tweet. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getText

        @Nonnull
        public String getText()
        The content of the Tweet.
        Returns:
        text
      • setText

        public void setText​(String text)
      • 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 TweetCreateResponseData
      • fromJson

        public static TweetCreateResponseData fromJson​(String jsonString)
                                                throws IOException
        Create an instance of TweetCreateResponseData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of TweetCreateResponseData
        Throws:
        IOException - if the JSON string is invalid with respect to TweetCreateResponseData
      • toJson

        public String toJson()
        Convert an instance of TweetCreateResponseData to an JSON string
        Returns:
        JSON string