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 ProductVariantDraftImport
deepCopy
(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 String
getKey()
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 ProductVariantDraftImport
of()
factory methodstatic ProductVariantDraftImport
of
(ProductVariantDraftImport template) factory method to create a shallow copy ProductVariantDraftImportvoid
Media assets for the Product Variant.void
Media assets for the Product Variant.void
setAttributes
(Attribute... attributes) Attributes according to the respective AttributeDefinition.void
setAttributes
(List<Attribute> attributes) Attributes according to the respective AttributeDefinition.void
Images for the Product Variant.void
Images for the Product Variant.void
User-defined unique identifier for the ProductVariant.void
setPrices
(PriceDraftImport... prices) The Embedded Prices for the Product Variant.void
setPrices
(List<PriceDraftImport> prices) The Embedded Prices for the Product Variant.void
User-defined unique SKU of the Product Variant.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantDraftImport>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor 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,
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
-
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,
validFrom
andvalidUntil
).- 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,
validFrom
andvalidUntil
).- 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
-