Class ProductVariantDraftImportBuilder
- All Implemented Interfaces:
Builder<ProductVariantDraftImport>
Example to create an instance using the builder pattern
ProductVariantDraftImport productVariantDraftImport = ProductVariantDraftImport.builder()
.key("{key}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssets
(Function<AssetBuilder, Asset> builder) Media assets for the Product Variant.addImages
(Function<ImageBuilder, Image> builder) Images for the Product Variant.The Embedded Prices for the Product Variant.Media assets for the Product Variant.Media assets for the Product Variant.attributes
(Attribute... attributes) Attributes according to the respective AttributeDefinition.attributes
(List<Attribute> attributes) Attributes according to the respective AttributeDefinition.build()
builds ProductVariantDraftImport with checking for non-null required valuesbuilds ProductVariantDraftImport without checking for non-null required valuesMedia assets for the Product Variant.Attributes according to the respective AttributeDefinition.Images for the Product Variant.getKey()
User-defined unique identifier for the ProductVariant.The Embedded Prices for the Product Variant.getSku()
User-defined unique SKU of the Product Variant.Images for the Product Variant.Images for the Product Variant.User-defined unique identifier for the ProductVariant.of()
factory method for an instance of ProductVariantDraftImportBuilderof
(ProductVariantDraftImport template) create builder for ProductVariantDraftImport instanceplusAssets
(Asset... assets) Media assets for the Product Variant.plusAssets
(Function<AssetBuilder, AssetBuilder> builder) Media assets for the Product Variant.plusAttributes
(Attribute... attributes) Attributes according to the respective AttributeDefinition.plusAttributes
(Function<AttributeBuilder, Builder<? extends Attribute>> builder) Attributes according to the respective AttributeDefinition.plusImages
(Image... images) Images for the Product Variant.plusImages
(Function<ImageBuilder, ImageBuilder> builder) Images for the Product Variant.plusPrices
(PriceDraftImport... prices) The Embedded Prices for the Product Variant.The Embedded Prices for the Product Variant.prices
(PriceDraftImport... prices) The Embedded Prices for the Product Variant.prices
(List<PriceDraftImport> prices) The Embedded Prices for the Product Variant.setAssets
(Function<AssetBuilder, Asset> builder) Media assets for the Product Variant.setImages
(Function<ImageBuilder, Image> builder) Images for the Product Variant.The Embedded Prices for the Product Variant.User-defined unique SKU of the Product Variant.withAssets
(Function<AssetBuilder, AssetBuilder> builder) Media assets for the Product Variant.withAttributes
(Function<AttributeBuilder, Builder<? extends Attribute>> builder) Attributes according to the respective AttributeDefinition.withImages
(Function<ImageBuilder, ImageBuilder> builder) Images for the Product Variant.The Embedded Prices for the Product Variant.
-
Constructor Details
-
ProductVariantDraftImportBuilder
public ProductVariantDraftImportBuilder()
-
-
Method Details
-
sku
User-defined unique SKU of the Product Variant.
- Parameters:
sku
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier for the ProductVariant.
- Parameters:
key
- value to be set- Returns:
- Builder
-
prices
The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
prices
- value to be set- Returns:
- Builder
-
prices
The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
public ProductVariantDraftImportBuilder plusPrices(Function<PriceDraftImportBuilder, PriceDraftImportBuilder> builder) The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
withPrices
public ProductVariantDraftImportBuilder withPrices(Function<PriceDraftImportBuilder, PriceDraftImportBuilder> builder) The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
addPrices
public ProductVariantDraftImportBuilder addPrices(Function<PriceDraftImportBuilder, PriceDraftImport> builder) The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
setPrices
public ProductVariantDraftImportBuilder setPrices(Function<PriceDraftImportBuilder, PriceDraftImport> builder) The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
attributes
Attributes according to the respective AttributeDefinition.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
attributes
Attributes according to the respective AttributeDefinition.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
Attributes according to the respective AttributeDefinition.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public ProductVariantDraftImportBuilder plusAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) Attributes according to the respective AttributeDefinition.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
withAttributes
public ProductVariantDraftImportBuilder withAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) Attributes according to the respective AttributeDefinition.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
images
Images for the Product Variant.
- Parameters:
images
- value to be set- Returns:
- Builder
-
images
Images for the Product Variant.
- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
Images for the Product Variant.
- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
Images for the Product Variant.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
withImages
Images for the Product Variant.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
addImages
Images for the Product Variant.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
setImages
Images for the Product Variant.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
assets
Media assets for the Product Variant.
- Parameters:
assets
- value to be set- Returns:
- Builder
-
assets
Media assets for the Product Variant.
- Parameters:
assets
- value to be set- Returns:
- Builder
-
plusAssets
Media assets for the Product Variant.
- Parameters:
assets
- value to be set- Returns:
- Builder
-
plusAssets
Media assets for the Product Variant.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
withAssets
Media assets for the Product Variant.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
addAssets
Media assets for the Product Variant.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
setAssets
Media assets for the Product Variant.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
getSku
User-defined unique SKU of the Product Variant.
- Returns:
- sku
-
getKey
User-defined unique identifier for the ProductVariant.
- Returns:
- key
-
getPrices
The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Returns:
- prices
-
getAttributes
Attributes according to the respective AttributeDefinition.
- Returns:
- attributes
-
getImages
Images for the Product Variant.
- Returns:
- images
-
getAssets
Media assets for the Product Variant.
- Returns:
- assets
-
build
builds ProductVariantDraftImport with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductVariantDraftImport>
- Returns:
- ProductVariantDraftImport
-
buildUnchecked
builds ProductVariantDraftImport without checking for non-null required values- Returns:
- ProductVariantDraftImport
-
of
factory method for an instance of ProductVariantDraftImportBuilder- Returns:
- builder
-
of
create builder for ProductVariantDraftImport instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-