Package com.adobe.aco.model
Class FeedCategory
- java.lang.Object
-
- com.adobe.aco.model.FeedCategory
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedCategory extends ObjectCategory information for organizing products with hierarchical structure and localization support.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedCategory.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_FAMILIESstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_SLUGstatic StringSERIALIZED_NAME_SOURCE
-
Constructor Summary
Constructors Constructor Description FeedCategory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedCategoryaddFamiliesItem(String familiesItem)booleanequals(Object o)FeedCategoryfamilies(List<String> families)static FeedCategoryfromJson(String jsonString)Create an instance of FeedCategory given an JSON stringList<String>getFamilies()Optional array of product family identifiers that this category is associated with.StringgetName()Display name of the categoryStringgetSlug()Category slug using hierarchical format with forward slashes to represent parent-child relationships.SourcegetSource()Get sourceinthashCode()FeedCategoryname(String name)voidsetFamilies(List<String> families)voidsetName(String name)voidsetSlug(String slug)voidsetSource(Source source)FeedCategoryslug(String slug)FeedCategorysource(Source source)StringtoJson()Convert an instance of FeedCategory to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_SLUG
public static final String SERIALIZED_NAME_SLUG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCE
public static final String SERIALIZED_NAME_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FAMILIES
public static final String SERIALIZED_NAME_FAMILIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
slug
public FeedCategory slug(String slug)
-
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)
-
source
public FeedCategory source(Source source)
-
getSource
@Nonnull public Source getSource()
Get source- Returns:
- source
-
setSource
public void setSource(Source source)
-
name
public FeedCategory name(String name)
-
getName
@Nonnull public String getName()
Display name of the category- Returns:
- name
-
setName
public void setName(String name)
-
families
public FeedCategory families(List<String> families)
-
addFamiliesItem
public FeedCategory addFamiliesItem(String familiesItem)
-
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.- Returns:
- families
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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 FeedCategory
-
fromJson
public static FeedCategory fromJson(String jsonString) throws IOException
Create an instance of FeedCategory given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FeedCategory
- Throws:
IOException- if the JSON string is invalid with respect to FeedCategory
-
toJson
public String toJson()
Convert an instance of FeedCategory to an JSON string- Returns:
- JSON string
-
-