Class ProductImportBuilder
- All Implemented Interfaces:
Builder<ProductImport>
Example to create an instance using the builder pattern
ProductImport productImport = ProductImport.builder()
.key("{key}")
.name(nameBuilder -> nameBuilder)
.productType(productTypeBuilder -> productTypeBuilder)
.slug(slugBuilder -> slugBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMaps toProductData.categories.attributes(Attribute... attributes) set values to the attributesattributes(List<Attribute> attributes) set value to the attributesbuild()builds ProductImport with checking for non-null required valuesbuilds ProductImport without checking for non-null required valuescategories(CategoryKeyReference... categories) Maps toProductData.categories.categories(List<CategoryKeyReference> categories) Maps toProductData.categories.description(LocalizedString description) Maps toProductData.description.Maps toProductData.description.value of attributes}Maps toProductData.categories.Maps toProductData.description.getKey()User-defined unique identifier.Maps toProductData.metaDescription.Maps toProductData.metaKeywords.Maps toProductData.metaTitle.getName()Maps toProductData.name.Maps toProduct.priceMode.Maps toProduct.productType.Determines the published status and current/staged projection of the Product.Maps toProductData.searchKeywords.getSlug()Maps toProductData.slug.getState()Maps toProduct.state.Maps toProduct.taxCategory.User-defined unique identifier.metaDescription(LocalizedString metaDescription) Maps toProductData.metaDescription.Maps toProductData.metaDescription.metaKeywords(LocalizedString metaKeywords) Maps toProductData.metaKeywords.Maps toProductData.metaKeywords.metaTitle(LocalizedString metaTitle) Maps toProductData.metaTitle.Maps toProductData.metaTitle.name(LocalizedString name) Maps toProductData.name.Maps toProductData.name.static ProductImportBuilderof()factory method for an instance of ProductImportBuilderstatic ProductImportBuilderof(ProductImport template) create builder for ProductImport instanceplusAttributes(Attribute... attributes) add values to the attributesplusAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) add a value to the attributes using the builder functionplusCategories(CategoryKeyReference... categories) Maps toProductData.categories.Maps toProductData.categories.priceMode(ProductPriceModeEnum priceMode) Maps toProduct.priceMode.productType(ProductTypeKeyReference productType) Maps toProduct.productType.Maps toProduct.productType.Determines the published status and current/staged projection of the Product.searchKeywords(SearchKeywords searchKeywords) Maps toProductData.searchKeywords.Maps toProductData.searchKeywords.Maps toProductData.categories.slug(LocalizedString slug) Maps toProductData.slug.Maps toProductData.slug.state(StateKeyReference state) Maps toProduct.state.Maps toProduct.state.taxCategory(TaxCategoryKeyReference taxCategory) Maps toProduct.taxCategory.Maps toProduct.taxCategory.withAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) set the value to the attributes using the builder functionMaps toProductData.categories.Maps toProductData.description.Maps toProductData.metaDescription.Maps toProductData.metaKeywords.Maps toProductData.metaTitle.Maps toProductData.name.Maps toProduct.productType.Maps toProductData.searchKeywords.Maps toProductData.slug.Maps toProduct.state.Maps toProduct.taxCategory.
-
Constructor Details
-
ProductImportBuilder
public ProductImportBuilder()
-
-
Method Details
-
key
User-defined unique identifier. If a Product with this
keyexists, it is updated with the imported data.- Parameters:
key- value to be set- Returns:
- Builder
-
name
Maps to
ProductData.name.- Parameters:
builder- function to build the name value- Returns:
- Builder
-
withName
Maps to
ProductData.name.- Parameters:
builder- function to build the name value- Returns:
- Builder
-
name
Maps to
ProductData.name.- Parameters:
name- value to be set- Returns:
- Builder
-
productType
public ProductImportBuilder productType(Function<ProductTypeKeyReferenceBuilder, ProductTypeKeyReferenceBuilder> builder) Maps to
Product.productType. If the referenced ProductType does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced ProductType is created.- Parameters:
builder- function to build the productType value- Returns:
- Builder
-
withProductType
public ProductImportBuilder withProductType(Function<ProductTypeKeyReferenceBuilder, ProductTypeKeyReference> builder) Maps to
Product.productType. If the referenced ProductType does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced ProductType is created.- Parameters:
builder- function to build the productType value- Returns:
- Builder
-
productType
Maps to
Product.productType. If the referenced ProductType does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced ProductType is created.- Parameters:
productType- value to be set- Returns:
- Builder
-
slug
Maps to
ProductData.slug.- Parameters:
builder- function to build the slug value- Returns:
- Builder
-
withSlug
Maps to
ProductData.slug.- Parameters:
builder- function to build the slug value- Returns:
- Builder
-
slug
Maps to
ProductData.slug.- Parameters:
slug- value to be set- Returns:
- Builder
-
description
public ProductImportBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Maps to
ProductData.description.- Parameters:
builder- function to build the description value- Returns:
- Builder
-
withDescription
public ProductImportBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Maps to
ProductData.description.- Parameters:
builder- function to build the description value- Returns:
- Builder
-
description
Maps to
ProductData.description.- Parameters:
description- value to be set- Returns:
- Builder
-
categories
Maps to
ProductData.categories. If the referenced Categories do not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Categories are created.- Parameters:
categories- value to be set- Returns:
- Builder
-
categories
Maps to
ProductData.categories. If the referenced Categories do not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Categories are created.- Parameters:
categories- value to be set- Returns:
- Builder
-
plusCategories
Maps to
ProductData.categories. If the referenced Categories do not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Categories are created.- Parameters:
categories- value to be set- Returns:
- Builder
-
plusCategories
public ProductImportBuilder plusCategories(Function<CategoryKeyReferenceBuilder, CategoryKeyReferenceBuilder> builder) Maps to
ProductData.categories. If the referenced Categories do not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Categories are created.- Parameters:
builder- function to build the categories value- Returns:
- Builder
-
withCategories
public ProductImportBuilder withCategories(Function<CategoryKeyReferenceBuilder, CategoryKeyReferenceBuilder> builder) Maps to
ProductData.categories. If the referenced Categories do not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Categories are created.- Parameters:
builder- function to build the categories value- Returns:
- Builder
-
addCategories
public ProductImportBuilder addCategories(Function<CategoryKeyReferenceBuilder, CategoryKeyReference> builder) Maps to
ProductData.categories. If the referenced Categories do not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Categories are created.- Parameters:
builder- function to build the categories value- Returns:
- Builder
-
setCategories
public ProductImportBuilder setCategories(Function<CategoryKeyReferenceBuilder, CategoryKeyReference> builder) Maps to
ProductData.categories. If the referenced Categories do not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Categories are created.- Parameters:
builder- function to build the categories value- Returns:
- Builder
-
attributes
set values to the attributes- Parameters:
attributes- value to be set- Returns:
- Builder
-
attributes
set value to the attributes- Parameters:
attributes- value to be set- Returns:
- Builder
-
plusAttributes
add values to the attributes- Parameters:
attributes- value to be set- Returns:
- Builder
-
plusAttributes
public ProductImportBuilder plusAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) add a value to the attributes using the builder function- Parameters:
builder- function to build the attributes value- Returns:
- Builder
-
withAttributes
public ProductImportBuilder withAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) set the value to the attributes using the builder function- Parameters:
builder- function to build the attributes value- Returns:
- Builder
-
metaTitle
public ProductImportBuilder metaTitle(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Maps to
ProductData.metaTitle.- Parameters:
builder- function to build the metaTitle value- Returns:
- Builder
-
withMetaTitle
Maps to
ProductData.metaTitle.- Parameters:
builder- function to build the metaTitle value- Returns:
- Builder
-
metaTitle
Maps to
ProductData.metaTitle.- Parameters:
metaTitle- value to be set- Returns:
- Builder
-
metaDescription
public ProductImportBuilder metaDescription(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Maps to
ProductData.metaDescription.- Parameters:
builder- function to build the metaDescription value- Returns:
- Builder
-
withMetaDescription
public ProductImportBuilder withMetaDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Maps to
ProductData.metaDescription.- Parameters:
builder- function to build the metaDescription value- Returns:
- Builder
-
metaDescription
Maps to
ProductData.metaDescription.- Parameters:
metaDescription- value to be set- Returns:
- Builder
-
metaKeywords
public ProductImportBuilder metaKeywords(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Maps to
ProductData.metaKeywords.- Parameters:
builder- function to build the metaKeywords value- Returns:
- Builder
-
withMetaKeywords
public ProductImportBuilder withMetaKeywords(Function<LocalizedStringBuilder, LocalizedString> builder) Maps to
ProductData.metaKeywords.- Parameters:
builder- function to build the metaKeywords value- Returns:
- Builder
-
metaKeywords
Maps to
ProductData.metaKeywords.- Parameters:
metaKeywords- value to be set- Returns:
- Builder
-
taxCategory
public ProductImportBuilder taxCategory(Function<TaxCategoryKeyReferenceBuilder, TaxCategoryKeyReferenceBuilder> builder) Maps to
Product.taxCategory. If the referenced TaxCategory does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced TaxCategory is created.- Parameters:
builder- function to build the taxCategory value- Returns:
- Builder
-
withTaxCategory
public ProductImportBuilder withTaxCategory(Function<TaxCategoryKeyReferenceBuilder, TaxCategoryKeyReference> builder) Maps to
Product.taxCategory. If the referenced TaxCategory does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced TaxCategory is created.- Parameters:
builder- function to build the taxCategory value- Returns:
- Builder
-
taxCategory
Maps to
Product.taxCategory. If the referenced TaxCategory does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced TaxCategory is created.- Parameters:
taxCategory- value to be set- Returns:
- Builder
-
searchKeywords
public ProductImportBuilder searchKeywords(Function<SearchKeywordsBuilder, SearchKeywordsBuilder> builder) Maps to
ProductData.searchKeywords.- Parameters:
builder- function to build the searchKeywords value- Returns:
- Builder
-
withSearchKeywords
public ProductImportBuilder withSearchKeywords(Function<SearchKeywordsBuilder, SearchKeywords> builder) Maps to
ProductData.searchKeywords.- Parameters:
builder- function to build the searchKeywords value- Returns:
- Builder
-
searchKeywords
Maps to
ProductData.searchKeywords.- Parameters:
searchKeywords- value to be set- Returns:
- Builder
-
state
public ProductImportBuilder state(Function<StateKeyReferenceBuilder, StateKeyReferenceBuilder> builder) Maps to
Product.state. If the referenced State does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced State is created.- Parameters:
builder- function to build the state value- Returns:
- Builder
-
withState
Maps to
Product.state. If the referenced State does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced State is created.- Parameters:
builder- function to build the state value- Returns:
- Builder
-
state
Maps to
Product.state. If the referenced State does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced State is created.- Parameters:
state- value to be set- Returns:
- Builder
-
publish
Determines the published status and current/staged projection of the Product. For more information, see Managing the published state of Products.
- Parameters:
publish- value to be set- Returns:
- Builder
-
priceMode
Maps to
Product.priceMode.- Parameters:
priceMode- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier. If a Product with this
keyexists, it is updated with the imported data.- Returns:
- key
-
getName
Maps to
ProductData.name.- Returns:
- name
-
getProductType
Maps to
Product.productType. If the referenced ProductType does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced ProductType is created.- Returns:
- productType
-
getSlug
Maps to
ProductData.slug.- Returns:
- slug
-
getDescription
Maps to
ProductData.description.- Returns:
- description
-
getCategories
Maps to
ProductData.categories. If the referenced Categories do not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Categories are created.- Returns:
- categories
-
getAttributes
value of attributes}- Returns:
- attributes
-
getMetaTitle
Maps to
ProductData.metaTitle.- Returns:
- metaTitle
-
getMetaDescription
Maps to
ProductData.metaDescription.- Returns:
- metaDescription
-
getMetaKeywords
Maps to
ProductData.metaKeywords.- Returns:
- metaKeywords
-
getTaxCategory
Maps to
Product.taxCategory. If the referenced TaxCategory does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced TaxCategory is created.- Returns:
- taxCategory
-
getSearchKeywords
Maps to
ProductData.searchKeywords.- Returns:
- searchKeywords
-
getState
Maps to
Product.state. If the referenced State does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced State is created.- Returns:
- state
-
getPublish
Determines the published status and current/staged projection of the Product. For more information, see Managing the published state of Products.
- Returns:
- publish
-
getPriceMode
Maps to
Product.priceMode.- Returns:
- priceMode
-
build
builds ProductImport with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductImport>- Returns:
- ProductImport
-
buildUnchecked
builds ProductImport without checking for non-null required values- Returns:
- ProductImport
-
of
factory method for an instance of ProductImportBuilder- Returns:
- builder
-
of
create builder for ProductImport instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-