Class FeedCategoryUpdate


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class FeedCategoryUpdate
    extends Object
    Category information for updating existing categories.
    • Constructor Detail

      • FeedCategoryUpdate

        public FeedCategoryUpdate()
    • Method Detail

      • getSlug

        @Nonnull
        public String getSlug()
        Category slug using hierarchical format with forward slashes to represent parent-child relationships. String can contain 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)
      • getName

        @Nullable
        public String getName()
        Display name of the category
        Returns:
        name
      • setName

        public void setName​(String name)
      • getFamilies

        @Nullable
        public List<String> getFamilies()
        Optional array of product family identifiers that this category is associated with. Used for enhanced product organization and filtering. For example, for a clothing category, you can associate it with the \"apparel\" family. Note: This field uses the replace strategy to replace the entire array with the new values.
        Returns:
        families
      • setFamilies

        public void setFamilies​(List<String> families)
      • 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 FeedCategoryUpdate
      • fromJson

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

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