Class SearchCount


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class SearchCount
    extends Object
    Represent a Search Count Result.
    • Constructor Detail

      • SearchCount

        public SearchCount()
    • Method Detail

      • getTweetCount

        @Nonnull
        public Integer getTweetCount()
        The count for the bucket.
        Returns:
        tweetCount
      • setTweetCount

        public void setTweetCount​(Integer tweetCount)
      • 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 SearchCount
      • fromJson

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

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