Class ProductVariantDraftImpl
- All Implemented Interfaces:
ProductVariantDraft
,WithKey
,io.vrap.rmf.base.client.Draft<ProductVariantDraft>
,io.vrap.rmf.base.client.ModelBase
Creates a Product Variant when included in the masterVariant
and variants
fields of the ProductDraft.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Media assets for the Product Variant.Attributes according to the respective AttributeDefinition.Images for the Product Variant.getKey()
User-defined unique identifier for the ProductVariant.The Embedded Prices for the Product Variant.getSku()
User-defined unique SKU of the Product Variant.int
hashCode()
void
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 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
(PriceDraft... prices) The Embedded Prices for the Product Variant.void
setPrices
(List<PriceDraft> prices) The Embedded Prices for the Product Variant.void
User-defined unique SKU of the Product Variant.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductVariantDraft
withProductVariantDraft
-
Constructor Details
-
ProductVariantDraftImpl
public ProductVariantDraftImpl()create empty instance
-
-
Method Details
-
getSku
User-defined unique SKU of the Product Variant.
- Specified by:
getSku
in interfaceProductVariantDraft
- Returns:
- sku
-
getKey
User-defined unique identifier for the ProductVariant.
- Specified by:
getKey
in interfaceProductVariantDraft
- Specified by:
getKey
in interfaceWithKey
- 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
).- Specified by:
getPrices
in interfaceProductVariantDraft
- Returns:
- prices
-
getAttributes
Attributes according to the respective AttributeDefinition.
- Specified by:
getAttributes
in interfaceProductVariantDraft
- Returns:
- attributes
-
getImages
Images for the Product Variant.
- Specified by:
getImages
in interfaceProductVariantDraft
- Returns:
- images
-
getAssets
Media assets for the Product Variant.
- Specified by:
getAssets
in interfaceProductVariantDraft
- Returns:
- assets
-
setSku
Description copied from interface:ProductVariantDraft
User-defined unique SKU of the Product Variant.
- Specified by:
setSku
in interfaceProductVariantDraft
- Parameters:
sku
- value to be set
-
setKey
Description copied from interface:ProductVariantDraft
User-defined unique identifier for the ProductVariant.
- Specified by:
setKey
in interfaceProductVariantDraft
- Parameters:
key
- value to be set
-
setPrices
Description copied from interface:ProductVariantDraft
The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Specified by:
setPrices
in interfaceProductVariantDraft
- Parameters:
prices
- values to be set
-
setPrices
Description copied from interface:ProductVariantDraft
The Embedded Prices for the Product Variant. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Specified by:
setPrices
in interfaceProductVariantDraft
- Parameters:
prices
- values to be set
-
setAttributes
Description copied from interface:ProductVariantDraft
Attributes according to the respective AttributeDefinition.
- Specified by:
setAttributes
in interfaceProductVariantDraft
- Parameters:
attributes
- values to be set
-
setAttributes
Description copied from interface:ProductVariantDraft
Attributes according to the respective AttributeDefinition.
- Specified by:
setAttributes
in interfaceProductVariantDraft
- Parameters:
attributes
- values to be set
-
setImages
Description copied from interface:ProductVariantDraft
Images for the Product Variant.
- Specified by:
setImages
in interfaceProductVariantDraft
- Parameters:
images
- values to be set
-
setImages
Description copied from interface:ProductVariantDraft
Images for the Product Variant.
- Specified by:
setImages
in interfaceProductVariantDraft
- Parameters:
images
- values to be set
-
setAssets
Description copied from interface:ProductVariantDraft
Media assets for the Product Variant.
- Specified by:
setAssets
in interfaceProductVariantDraft
- Parameters:
assets
- values to be set
-
setAssets
Description copied from interface:ProductVariantDraft
Media assets for the Product Variant.
- Specified by:
setAssets
in interfaceProductVariantDraft
- Parameters:
assets
- values to be set
-
equals
-
hashCode
-