Interface ProductVariantDraftImport
public 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 instancestatic ProductVariantDraftImport
deepCopy
(ProductVariantDraftImport template) factory method to create a deep copy of ProductVariantDraftImport@NotNull String
getKey()
@Valid List<PriceDraftImport>
getSku()
static ProductVariantDraftImport
of()
factory methodstatic ProductVariantDraftImport
of
(ProductVariantDraftImport template) factory method to create a shallow copy ProductVariantDraftImportvoid
set assetsvoid
set assetsvoid
setAttributes
(Attribute... attributes) set attributesvoid
setAttributes
(List<Attribute> attributes) set attributesvoid
set imagesvoid
set imagesvoid
set keyvoid
setPrices
(PriceDraftImport... prices) set pricesvoid
setPrices
(List<PriceDraftImport> prices) set pricesvoid
set skustatic 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()- Returns:
- sku
-
getKey
- Returns:
- key
-
getPrices
- Returns:
- prices
-
getAttributes
- Returns:
- attributes
-
getImages
- Returns:
- images
-
getAssets
- Returns:
- assets
-
setSku
set sku- Parameters:
sku
- value to be set
-
setKey
set key- Parameters:
key
- value to be set
-
setPrices
set prices- Parameters:
prices
- values to be set
-
setPrices
set prices- Parameters:
prices
- values to be set
-
setAttributes
set attributes- Parameters:
attributes
- values to be set
-
setAttributes
set attributes- Parameters:
attributes
- values to be set
-
setImages
set images- Parameters:
images
- values to be set
-
setImages
set images- Parameters:
images
- values to be set
-
setAssets
set assets- Parameters:
assets
- values to be set
-
setAssets
set assets- 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
-
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
-