Interface ProductVariantDraftImport
The representation of a Product Variant Draft for the import purpose.
Example to create an instance using the builder pattern
ProductVariantDraftImport productVariantDraftImport = ProductVariantDraftImport.builder()
.key("{key}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductVariantDraftImportbuilder(ProductVariantDraftImport template) create builder for ProductVariantDraftImport instancecopyDeep()static ProductVariantDraftImportdeepCopy(ProductVariantDraftImport template) factory method to create a deep copy of ProductVariantDraftImportMedia assets for the Product Variant.Attributes according to the respective AttributeDefinition.Images for the Product Variant.@NotNull StringgetKey()User-defined unique identifier for the ProductVariant.@Valid List<PriceDraftImport>The Embedded Prices for the Product Variant.getSku()User-defined unique SKU of the Product Variant.static ProductVariantDraftImportof()factory methodstatic ProductVariantDraftImportof(ProductVariantDraftImport template) factory method to create a shallow copy ProductVariantDraftImportvoidMedia assets for the Product Variant.voidMedia assets for the Product Variant.voidsetAttributes(Attribute... attributes) Attributes according to the respective AttributeDefinition.voidsetAttributes(List<Attribute> attributes) Attributes according to the respective AttributeDefinition.voidImages for the Product Variant.voidImages for the Product Variant.voidUser-defined unique identifier for the ProductVariant.voidsetPrices(PriceDraftImport... prices) The Embedded Prices for the Product Variant.voidsetPrices(List<PriceDraftImport> prices) The Embedded Prices for the Product Variant.voidUser-defined unique SKU of the Product Variant.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantDraftImport>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getSku
String 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,
validFromandvalidUntil).- 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
-
setSku
User-defined unique SKU of the Product Variant.
- Parameters:
sku- value to be set
-
setKey
User-defined unique identifier for the ProductVariant.
- Parameters:
key- value to be set
-
setPrices
The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFromandvalidUntil).- Parameters:
prices- values to be set
-
setPrices
The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFromandvalidUntil).- Parameters:
prices- values to be set
-
setAttributes
Attributes according to the respective AttributeDefinition.
- Parameters:
attributes- values to be set
-
setAttributes
Attributes according to the respective AttributeDefinition.
- Parameters:
attributes- values to be set
-
setImages
Images for the Product Variant.
- Parameters:
images- values to be set
-
setImages
Images for the Product Variant.
- Parameters:
images- values to be set
-
setAssets
Media assets for the Product Variant.
- Parameters:
assets- values to be set
-
setAssets
Media assets for the Product Variant.
- Parameters:
assets- values to be set
-
of
factory method- Returns:
- instance of ProductVariantDraftImport
-
of
factory method to create a shallow copy ProductVariantDraftImport- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductVariantDraftImport copyDeep() -
deepCopy
factory method to create a deep copy of ProductVariantDraftImport- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantDraftImport- Returns:
- builder
-
builder
create builder for ProductVariantDraftImport instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantDraftImport
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-