Class ListCreateResponseData


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

      • ListCreateResponseData

        public ListCreateResponseData()
    • Method Detail

      • getId

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

        public void setId​(String id)
      • getName

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

        public void setName​(String name)
      • 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 ListCreateResponseData
      • fromJson

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

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