Class ModelList


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class ModelList
    extends Object
    A Twitter List is a curated group of accounts.
    • Constructor Detail

      • ModelList

        public ModelList()
    • Method Detail

      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
      • getDescription

        @Nullable
        public String getDescription()
        Get description
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getFollowerCount

        @Nullable
        public Integer getFollowerCount()
        Get followerCount
        Returns:
        followerCount
      • setFollowerCount

        public void setFollowerCount​(Integer followerCount)
      • getId

        @Nonnull
        public String getId()
        The unique identifier of this List.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getMemberCount

        @Nullable
        public Integer getMemberCount()
        Get memberCount
        Returns:
        memberCount
      • setMemberCount

        public void setMemberCount​(Integer memberCount)
      • getName

        @Nonnull
        public String getName()
        The name of this List.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getOwnerId

        @Nullable
        public String getOwnerId()
        Unique identifier of this User. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.
        Returns:
        ownerId
      • setOwnerId

        public void setOwnerId​(String ownerId)
      • getPrivate

        @Nullable
        public Boolean getPrivate()
        Get _private
        Returns:
        _private
      • setPrivate

        public void setPrivate​(Boolean _private)
      • 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 ModelList
      • fromJson

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

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