Class SpaceTopics


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class SpaceTopics
    extends Object
    The Twitter Topic object.
    • Constructor Detail

      • SpaceTopics

        public SpaceTopics()
    • Method Detail

      • getDescription

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

        public void setDescription​(String description)
      • getId

        @Nonnull
        public String getId()
        An ID suitable for use in the REST API.
        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 SpaceTopics
      • fromJson

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

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