Interface ProductAddVariantAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
Example to create an instance using the builder pattern
ProductAddVariantAction productAddVariantAction = ProductAddVariantAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductAddVariantAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductAddVariantActionbuilder
(ProductAddVariantAction template) create builder for ProductAddVariantAction instancestatic ProductAddVariantAction
deepCopy
(ProductAddVariantAction template) factory method to create a deep copy of ProductAddVariantAction@Valid List<AssetDraft>
Media assets for the Product Variant.Attributes for the Product Variant.Images for the Product Variant.getKey()
Value to set.@Valid List<PriceDraft>
Embedded Prices for the Product Variant.getSku()
Value to set.Iftrue
the new Product Variant is only staged.static ProductAddVariantAction
of()
factory methodstatic ProductAddVariantAction
of
(ProductAddVariantAction template) factory method to create a shallow copy ProductAddVariantActionvoid
setAssets
(AssetDraft... assets) Media assets for the Product Variant.void
setAssets
(List<AssetDraft> assets) Media assets for the Product Variant.void
setAttributes
(Attribute... attributes) Attributes for the Product Variant.void
setAttributes
(List<Attribute> attributes) Attributes for the Product Variant.void
Images for the Product Variant.void
Images for the Product Variant.void
Value to set.void
setPrices
(PriceDraft... prices) Embedded Prices for the Product Variant.void
setPrices
(List<PriceDraft> prices) Embedded Prices for the Product Variant.void
Value to set.void
Iftrue
the new Product Variant is only staged.static com.fasterxml.jackson.core.type.TypeReference<ProductAddVariantAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_VARIANT
discriminator value for ProductAddVariantAction- See Also:
-
-
Method Details
-
getSku
String getSku()Value to set. Must be unique.
- Returns:
- sku
-
getKey
String getKey()Value to set. Must be unique.
- Returns:
- key
-
getPrices
Embedded Prices for the Product Variant.
- Returns:
- prices
-
getImages
Images for the Product Variant.
- Returns:
- images
-
getAttributes
Attributes for the Product Variant.
- Returns:
- attributes
-
getStaged
Boolean getStaged()If
true
the new Product Variant is only staged. Iffalse
the new Product Variant is both current and staged.- Returns:
- staged
-
getAssets
Media assets for the Product Variant.
- Returns:
- assets
-
setSku
Value to set. Must be unique.
- Parameters:
sku
- value to be set
-
setKey
Value to set. Must be unique.
- Parameters:
key
- value to be set
-
setPrices
Embedded Prices for the Product Variant.
- Parameters:
prices
- values to be set
-
setPrices
Embedded Prices for the Product Variant.
- Parameters:
prices
- 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
-
setAttributes
Attributes for the Product Variant.
- Parameters:
attributes
- values to be set
-
setAttributes
Attributes for the Product Variant.
- Parameters:
attributes
- values to be set
-
setStaged
If
true
the new Product Variant is only staged. Iffalse
the new Product Variant is both current and staged.- Parameters:
staged
- value 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 ProductAddVariantAction
-
of
factory method to create a shallow copy ProductAddVariantAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductAddVariantAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductAddVariantAction- Returns:
- builder
-
builder
create builder for ProductAddVariantAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductAddVariantAction
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
-