Package com.adobe.aco.model
Class FeedCategoryUpdate
- java.lang.Object
-
- com.adobe.aco.model.FeedCategoryUpdate
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedCategoryUpdate extends ObjectCategory information for updating existing categories.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedCategoryUpdate.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 FeedCategoryUpdate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedCategoryUpdateaddFamiliesItem(String familiesItem)booleanequals(Object o)FeedCategoryUpdatefamilies(List<String> families)static FeedCategoryUpdatefromJson(String jsonString)Create an instance of FeedCategoryUpdate 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()FeedCategoryUpdatename(String name)voidsetFamilies(List<String> families)voidsetName(String name)voidsetSlug(String slug)voidsetSource(Source source)FeedCategoryUpdateslug(String slug)FeedCategoryUpdatesource(Source source)StringtoJson()Convert an instance of FeedCategoryUpdate 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 FeedCategoryUpdate 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 FeedCategoryUpdate source(Source source)
-
getSource
@Nonnull public Source getSource()
Get source- Returns:
- source
-
setSource
public void setSource(Source source)
-
name
public FeedCategoryUpdate name(String name)
-
getName
@Nullable public String getName()
Display name of the category- Returns:
- name
-
setName
public void setName(String name)
-
families
public FeedCategoryUpdate families(List<String> families)
-
addFamiliesItem
public FeedCategoryUpdate 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. 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
-
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 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
-
-