Package com.adobe.aco.model
Class FeedProduct
- java.lang.Object
-
- com.adobe.aco.model.FeedProduct
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedProduct extends ObjectFeedProduct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedProduct.CustomTypeAdapterFactorystatic classFeedProduct.StatusEnumIndicates whether the product is visible on the storefront.static classFeedProduct.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 FeedProduct()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedProductaddAttributesItem(ProductAttribute attributesItem)FeedProductaddBundlesItem(ProductBundle bundlesItem)FeedProductaddConfigurationsItem(ProductConfiguration configurationsItem)FeedProductaddExternalIdsItem(ProductExternalId externalIdsItem)FeedProductaddImagesItem(ProductImage imagesItem)FeedProductaddLinksItem(ProductLink linksItem)FeedProductaddRoutesItem(ProductRoutes routesItem)FeedProductaddVisibleInItem(FeedProduct.VisibleInEnum visibleInItem)FeedProductattributes(List<ProductAttribute> attributes)FeedProductbundles(List<ProductBundle> bundles)FeedProductconfigurations(List<ProductConfiguration> configurations)FeedProductdescription(String description)booleanequals(Object o)FeedProductexternalIds(List<ProductExternalId> externalIds)static FeedProductfromJson(String jsonString)Create an instance of FeedProduct given an JSON stringList<ProductAttribute>getAttributes()A list of product attributes.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\").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.).StringgetDescription()The main description for the productList<ProductExternalId>getExternalIds()A list of external IDs for the product.List<ProductImage>getImages()A list of product images.List<ProductLink>getLinks()A list of linked SKUs.ProductMetaAttributegetMetaTags()Get metaTagsStringgetName()Product nameList<ProductRoutes>getRoutes()A list of product routes.StringgetShortDescription()A short description of the productStringgetSku()SKU (Stock Keeping Unit) is a unique identifier for a product.StringgetSlug()The URL key for the product.SourcegetSource()Get sourceFeedProduct.StatusEnumgetStatus()Indicates whether the product is visible on the storefront.List<FeedProduct.VisibleInEnum>getVisibleIn()Storefront area where the product is visible.inthashCode()FeedProductimages(List<ProductImage> images)FeedProductlinks(List<ProductLink> links)FeedProductmetaTags(ProductMetaAttribute metaTags)FeedProductname(String name)FeedProductroutes(List<ProductRoutes> routes)voidsetAttributes(List<ProductAttribute> attributes)voidsetBundles(List<ProductBundle> bundles)voidsetConfigurations(List<ProductConfiguration> configurations)voidsetDescription(String description)voidsetExternalIds(List<ProductExternalId> externalIds)voidsetImages(List<ProductImage> images)voidsetLinks(List<ProductLink> links)voidsetMetaTags(ProductMetaAttribute metaTags)voidsetName(String name)voidsetRoutes(List<ProductRoutes> routes)voidsetShortDescription(String shortDescription)voidsetSku(String sku)voidsetSlug(String slug)voidsetSource(Source source)voidsetStatus(FeedProduct.StatusEnum status)voidsetVisibleIn(List<FeedProduct.VisibleInEnum> visibleIn)FeedProductshortDescription(String shortDescription)FeedProductsku(String sku)FeedProductslug(String slug)FeedProductsource(Source source)FeedProductstatus(FeedProduct.StatusEnum status)StringtoJson()Convert an instance of FeedProduct to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundFeedProductvisibleIn(List<FeedProduct.VisibleInEnum> visibleIn)
-
-
-
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 FeedProduct 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 FeedProduct source(Source source)
-
getSource
@Nonnull public Source getSource()
Get source- Returns:
- source
-
setSource
public void setSource(Source source)
-
name
public FeedProduct name(String name)
-
getName
@Nonnull public String getName()
Product name- Returns:
- name
-
setName
public void setName(String name)
-
slug
public FeedProduct slug(String slug)
-
getSlug
@Nonnull public String getSlug()
The URL key for the product.- Returns:
- slug
-
setSlug
public void setSlug(String slug)
-
description
public FeedProduct description(String description)
-
getDescription
@Nullable public String getDescription()
The main description for the product- Returns:
- description
-
setDescription
public void setDescription(String description)
-
shortDescription
public FeedProduct shortDescription(String shortDescription)
-
getShortDescription
@Nullable public String getShortDescription()
A short description of the product- Returns:
- shortDescription
-
setShortDescription
public void setShortDescription(String shortDescription)
-
status
public FeedProduct status(FeedProduct.StatusEnum status)
-
getStatus
@Nonnull public FeedProduct.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(FeedProduct.StatusEnum status)
-
visibleIn
public FeedProduct visibleIn(List<FeedProduct.VisibleInEnum> visibleIn)
-
addVisibleInItem
public FeedProduct addVisibleInItem(FeedProduct.VisibleInEnum visibleInItem)
-
getVisibleIn
@Nullable public List<FeedProduct.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<FeedProduct.VisibleInEnum> visibleIn)
-
metaTags
public FeedProduct metaTags(ProductMetaAttribute metaTags)
-
getMetaTags
@Nullable public ProductMetaAttribute getMetaTags()
Get metaTags- Returns:
- metaTags
-
setMetaTags
public void setMetaTags(ProductMetaAttribute metaTags)
-
attributes
public FeedProduct attributes(List<ProductAttribute> attributes)
-
addAttributesItem
public FeedProduct 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 FeedProduct images(List<ProductImage> images)
-
addImagesItem
public FeedProduct 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 FeedProduct links(List<ProductLink> links)
-
addLinksItem
public FeedProduct addLinksItem(ProductLink linksItem)
-
getLinks
@Nullable public List<ProductLink> getLinks()
A list of linked SKUs.- Returns:
- links
-
setLinks
public void setLinks(List<ProductLink> links)
-
routes
public FeedProduct routes(List<ProductRoutes> routes)
-
addRoutesItem
public FeedProduct 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 FeedProduct configurations(List<ProductConfiguration> configurations)
-
addConfigurationsItem
public FeedProduct 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 FeedProduct bundles(List<ProductBundle> bundles)
-
addBundlesItem
public FeedProduct 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 FeedProduct externalIds(List<ProductExternalId> externalIds)
-
addExternalIdsItem
public FeedProduct 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 FeedProduct
-
fromJson
public static FeedProduct fromJson(String jsonString) throws IOException
Create an instance of FeedProduct given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FeedProduct
- Throws:
IOException- if the JSON string is invalid with respect to FeedProduct
-
toJson
public String toJson()
Convert an instance of FeedProduct to an JSON string- Returns:
- JSON string
-
-