Interface LineItemProductVariantImportDraft
- All Superinterfaces:
Draft<LineItemProductVariantImportDraft>
LineItemProductVariantImportDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LineItemProductVariantImportDraft lineItemProductVariantImportDraft = LineItemProductVariantImportDraft.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for LineItemProductVariantImportDraftbuilder
(LineItemProductVariantImportDraft template) create builder for LineItemProductVariantImportDraft instancedeepCopy
(LineItemProductVariantImportDraft template) factory method to create a deep copy of LineItemProductVariantImportDraftMaps toProductVariantImportDraft.attributes
Maps toProductVariantImportDraft.images
.@Valid List<LineItemPrice>
Maps toProductVariantImportDraft.prices
@Valid ProductVariantKeyReference
Maps toProductVariant.product
.getSku()
Maps toProductVariantImportDraft.sku
.of()
factory methodof
(LineItemProductVariantImportDraft template) factory method to create a shallow copy LineItemProductVariantImportDraftvoid
setAttributes
(Attribute... attributes) Maps toProductVariantImportDraft.attributes
void
setAttributes
(List<Attribute> attributes) Maps toProductVariantImportDraft.attributes
void
Maps toProductVariantImportDraft.images
.void
Maps toProductVariantImportDraft.images
.void
setPrices
(LineItemPrice... prices) Maps toProductVariantImportDraft.prices
void
setPrices
(List<LineItemPrice> prices) Maps toProductVariantImportDraft.prices
void
setProductVariant
(ProductVariantKeyReference productVariant) Maps toProductVariant.product
.void
Maps toProductVariantImportDraft.sku
.static com.fasterxml.jackson.core.type.TypeReference<LineItemProductVariantImportDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getProductVariant
Maps to
ProductVariant.product
.- Returns:
- productVariant
-
getSku
String getSku()Maps to
ProductVariantImportDraft.sku
.- Returns:
- sku
-
getPrices
Maps to
ProductVariantImportDraft.prices
- Returns:
- prices
-
getAttributes
Maps to
ProductVariantImportDraft.attributes
- Returns:
- attributes
-
getImages
Maps to
ProductVariantImportDraft.images
.- Returns:
- images
-
setProductVariant
Maps to
ProductVariant.product
.- Parameters:
productVariant
- value to be set
-
setSku
Maps to
ProductVariantImportDraft.sku
.- Parameters:
sku
- value to be set
-
setPrices
Maps to
ProductVariantImportDraft.prices
- Parameters:
prices
- values to be set
-
setPrices
Maps to
ProductVariantImportDraft.prices
- Parameters:
prices
- values to be set
-
setAttributes
Maps to
ProductVariantImportDraft.attributes
- Parameters:
attributes
- values to be set
-
setAttributes
Maps to
ProductVariantImportDraft.attributes
- Parameters:
attributes
- values to be set
-
setImages
Maps to
ProductVariantImportDraft.images
.- Parameters:
images
- values to be set
-
setImages
Maps to
ProductVariantImportDraft.images
.- Parameters:
images
- values to be set
-
of
factory method- Returns:
- instance of LineItemProductVariantImportDraft
-
of
factory method to create a shallow copy LineItemProductVariantImportDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static LineItemProductVariantImportDraft deepCopy(@Nullable LineItemProductVariantImportDraft template) factory method to create a deep copy of LineItemProductVariantImportDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LineItemProductVariantImportDraft- Returns:
- builder
-
builder
create builder for LineItemProductVariantImportDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLineItemProductVariantImportDraft
default <T> T withLineItemProductVariantImportDraft(Function<LineItemProductVariantImportDraft, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<LineItemProductVariantImportDraft> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-