Package com.adobe.aco.model
Class FeedProductUpdate
- java.lang.Object
-
- com.adobe.aco.model.FeedProductUpdate
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedProductUpdate extends ObjectFeedProductUpdate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedProductUpdate.CustomTypeAdapterFactorystatic classFeedProductUpdate.StatusEnumIndicates whether the product is visible on the storefront.static classFeedProductUpdate.VisibleInEnumGets or Sets visibleIn
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ATTRIBUTESstatic StringSERIALIZED_NAME_BUNDLESstatic StringSERIALIZED_NAME_CONFIGURATIONSstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_EXTERNAL_IDSstatic StringSERIALIZED_NAME_IMAGESstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_META_TAGSstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_ROUTESstatic StringSERIALIZED_NAME_SHORT_DESCRIPTIONstatic StringSERIALIZED_NAME_SKUstatic StringSERIALIZED_NAME_SLUGstatic StringSERIALIZED_NAME_SOURCEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_VISIBLE_IN
-
Constructor Summary
Constructors Constructor Description FeedProductUpdate()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_SKU
public static final String SERIALIZED_NAME_SKU
- 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_SLUG
public static final String SERIALIZED_NAME_SLUG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHORT_DESCRIPTION
public static final String SERIALIZED_NAME_SHORT_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VISIBLE_IN
public static final String SERIALIZED_NAME_VISIBLE_IN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_META_TAGS
public static final String SERIALIZED_NAME_META_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ATTRIBUTES
public static final String SERIALIZED_NAME_ATTRIBUTES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IMAGES
public static final String SERIALIZED_NAME_IMAGES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROUTES
public static final String SERIALIZED_NAME_ROUTES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONFIGURATIONS
public static final String SERIALIZED_NAME_CONFIGURATIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUNDLES
public static final String SERIALIZED_NAME_BUNDLES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXTERNAL_IDS
public static final String SERIALIZED_NAME_EXTERNAL_IDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
sku
public FeedProductUpdate sku(String sku)
-
getSku
@Nonnull public String getSku()
SKU (Stock Keeping Unit) is a unique identifier for a product.- Returns:
- sku
-
setSku
public void setSku(String sku)
-
source
public FeedProductUpdate source(Source source)
-
getSource
@Nonnull public Source getSource()
Get source- Returns:
- source
-
setSource
public void setSource(Source source)
-
name
public FeedProductUpdate name(String name)
-
getName
@Nullable public String getName()
Product name- Returns:
- name
-
setName
public void setName(String name)
-
slug
public FeedProductUpdate slug(String slug)
-
getSlug
@Nullable public String getSlug()
The URL key for the product.- Returns:
- slug
-
setSlug
public void setSlug(String slug)
-
description
public FeedProductUpdate description(String description)
-
getDescription
@Nullable public String getDescription()
The main description for the product- Returns:
- description
-
setDescription
public void setDescription(String description)
-
shortDescription
public FeedProductUpdate shortDescription(String shortDescription)
-
getShortDescription
@Nullable public String getShortDescription()
A short description of the product- Returns:
- shortDescription
-
setShortDescription
public void setShortDescription(String shortDescription)
-
status
public FeedProductUpdate status(FeedProductUpdate.StatusEnum status)
-
getStatus
@Nullable public FeedProductUpdate.StatusEnum getStatus()
Indicates whether the product is visible on the storefront. The value is \"Enabled\" if it is visible, and \"Disabled\" if it is not visible.- Returns:
- status
-
setStatus
public void setStatus(FeedProductUpdate.StatusEnum status)
-
visibleIn
public FeedProductUpdate visibleIn(List<FeedProductUpdate.VisibleInEnum> visibleIn)
-
addVisibleInItem
public FeedProductUpdate addVisibleInItem(FeedProductUpdate.VisibleInEnum visibleInItem)
-
getVisibleIn
@Nullable public List<FeedProductUpdate.VisibleInEnum> getVisibleIn()
Storefront area where the product is visible. An empty list means that it is not visible as a stand alone product. * `CATALOG`: Product is visible on Product Listing Page and Product Detail Page. * `SEARCH`: Product is visible on Search Results Page and Product Detail Page.- Returns:
- visibleIn
-
setVisibleIn
public void setVisibleIn(List<FeedProductUpdate.VisibleInEnum> visibleIn)
-
metaTags
public FeedProductUpdate metaTags(ProductMetaAttribute metaTags)
-
getMetaTags
@Nullable public ProductMetaAttribute getMetaTags()
Get metaTags- Returns:
- metaTags
-
setMetaTags
public void setMetaTags(ProductMetaAttribute metaTags)
-
attributes
public FeedProductUpdate attributes(List<ProductAttribute> attributes)
-
addAttributesItem
public FeedProductUpdate addAttributesItem(ProductAttribute attributesItem)
-
getAttributes
@Nullable public List<ProductAttribute> getAttributes()
A list of product attributes.- Returns:
- attributes
-
setAttributes
public void setAttributes(List<ProductAttribute> attributes)
-
images
public FeedProductUpdate images(List<ProductImage> images)
-
addImagesItem
public FeedProductUpdate addImagesItem(ProductImage imagesItem)
-
getImages
@Nullable public List<ProductImage> getImages()
A list of product images.- Returns:
- images
-
setImages
public void setImages(List<ProductImage> images)
-
links
public FeedProductUpdate links(List<ProductLink> links)
-
addLinksItem
public FeedProductUpdate addLinksItem(ProductLink linksItem)
-
getLinks
@Nullable public List<ProductLink> getLinks()
A list of linked SKUs. For product variants, this is a required field that establishes a link between a product variant and the corresponding configurable product. `VARIANT_OF` link type must be specified to establish a connection to the configurable product SKU.- Returns:
- links
-
setLinks
public void setLinks(List<ProductLink> links)
-
routes
public FeedProductUpdate routes(List<ProductRoutes> routes)
-
addRoutesItem
public FeedProductUpdate addRoutesItem(ProductRoutes routesItem)
-
getRoutes
@Nullable public List<ProductRoutes> getRoutes()
A list of product routes.- Returns:
- routes
-
setRoutes
public void setRoutes(List<ProductRoutes> routes)
-
configurations
public FeedProductUpdate configurations(List<ProductConfiguration> configurations)
-
addConfigurationsItem
public FeedProductUpdate addConfigurationsItem(ProductConfiguration configurationsItem)
-
getConfigurations
@Nullable public List<ProductConfiguration> getConfigurations()
Composite products, such as configurable products, must provide a list of product options that a shopper can select (for example, \"color\", \"size\", etc.).- Returns:
- configurations
-
setConfigurations
public void setConfigurations(List<ProductConfiguration> configurations)
-
bundles
public FeedProductUpdate bundles(List<ProductBundle> bundles)
-
addBundlesItem
public FeedProductUpdate addBundlesItem(ProductBundle bundlesItem)
-
getBundles
@Nullable public List<ProductBundle> getBundles()
Composite products, such as bundle products, must include a list of individual products that are part of the bundle, organized into groups (for example, \"shirts\", \"pants\", \"accessories\").- Returns:
- bundles
-
setBundles
public void setBundles(List<ProductBundle> bundles)
-
externalIds
public FeedProductUpdate externalIds(List<ProductExternalId> externalIds)
-
addExternalIdsItem
public FeedProductUpdate addExternalIdsItem(ProductExternalId externalIdsItem)
-
getExternalIds
@Nullable public List<ProductExternalId> getExternalIds()
A list of external IDs for the product.- Returns:
- externalIds
-
setExternalIds
public void setExternalIds(List<ProductExternalId> externalIds)
-
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 FeedProductUpdate
-
fromJson
public static FeedProductUpdate fromJson(String jsonString) throws IOException
Create an instance of FeedProductUpdate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FeedProductUpdate
- Throws:
IOException- if the JSON string is invalid with respect to FeedProductUpdate
-
toJson
public String toJson()
Convert an instance of FeedProductUpdate to an JSON string- Returns:
- JSON string
-
-