Interface ProductAddVariantAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
Example to create an instance using the builder pattern
ProductAddVariantAction productAddVariantAction = ProductAddVariantAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductAddVariantAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductAddVariantActionbuilder(ProductAddVariantAction template) create builder for ProductAddVariantAction instancecopyDeep()static ProductAddVariantActiondeepCopy(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.Iftruethe new Product Variant is only staged.static ProductAddVariantActionof()factory methodstatic ProductAddVariantActionof(ProductAddVariantAction template) factory method to create a shallow copy ProductAddVariantActionvoidsetAssets(AssetDraft... assets) Media assets for the Product Variant.voidsetAssets(List<AssetDraft> assets) Media assets for the Product Variant.voidsetAttributes(Attribute... attributes) Attributes for the Product Variant.voidsetAttributes(List<Attribute> attributes) Attributes for the Product Variant.voidImages for the Product Variant.voidImages for the Product Variant.voidValue to set.voidsetPrices(PriceDraft... prices) Embedded Prices for the Product Variant.voidsetPrices(List<PriceDraft> prices) Embedded Prices for the Product Variant.voidValue to set.voidIftruethe new Product Variant is only staged.static com.fasterxml.jackson.core.type.TypeReference<ProductAddVariantAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods 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
truethe new Product Variant is only staged. Iffalsethe 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
truethe new Product Variant is only staged. Iffalsethe 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
-
copyDeep
ProductAddVariantAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
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
-