Class FeedCategoryDelete


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class FeedCategoryDelete
    extends Object
    Delete category information for removing categories from the catalog.
    • Constructor Detail

      • FeedCategoryDelete

        public FeedCategoryDelete()
    • Method Detail

      • getSlug

        @Nonnull
        public String getSlug()
        Category slug using hierarchical format with forward slashes to represent parent-child relationships. Must use only lowercase letters, numbers, and hyphens. Examples: 'men', 'men/clothing', 'men/clothing/pants'
        Returns:
        slug
      • setSlug

        public void setSlug​(String slug)
      • getSource

        @Nonnull
        public Source getSource()
        Get source
        Returns:
        source
      • setSource

        public void setSource​(Source source)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to FeedCategoryDelete
      • fromJson

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

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