Class Topic


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Topic
    extends Object
    The topic of a Space, as selected by its creator.
    • Constructor Detail

      • Topic

        public Topic()
    • Method Detail

      • description

        public Topic description​(String description)
      • getDescription

        @Nullable
        public String getDescription()
        The description of the given topic.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getId

        @Nonnull
        public String getId()
        Unique identifier of this Topic.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getName

        @Nonnull
        public String getName()
        The name of the given topic.
        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 Topic
      • fromJson

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

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