Class ProductVariantImpl
java.lang.Object
com.commercetools.ml.models.common.ProductVariantImpl
- All Implemented Interfaces:
ProductVariant
,io.vrap.rmf.base.client.ModelBase
public class ProductVariantImpl
extends Object
implements ProductVariant, io.vrap.rmf.base.client.ModelBase
The product variant that contains the image.
-
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
The product that contains this variant.The state of the product variant.The id of the product variant.int
hashCode()
void
setProduct
(ProductReference product) The product that contains this variant.void
The state of the product variant.void
setVariantId
(Integer variantId) The id 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.ml.models.common.ProductVariant
withProductVariant
-
Constructor Details
-
ProductVariantImpl
public ProductVariantImpl()create empty instance
-
-
Method Details
-
getProduct
The product that contains this variant.
- Specified by:
getProduct
in interfaceProductVariant
- Returns:
- product
-
getStaged
The state of the product variant.
- Specified by:
getStaged
in interfaceProductVariant
- Returns:
- staged
-
getVariantId
The id of the product variant.
- Specified by:
getVariantId
in interfaceProductVariant
- Returns:
- variantId
-
setProduct
Description copied from interface:ProductVariant
The product that contains this variant.
- Specified by:
setProduct
in interfaceProductVariant
- Parameters:
product
- value to be set
-
setStaged
Description copied from interface:ProductVariant
The state of the product variant.
- Specified by:
setStaged
in interfaceProductVariant
- Parameters:
staged
- value to be set
-
setVariantId
Description copied from interface:ProductVariant
The id of the product variant.
- Specified by:
setVariantId
in interfaceProductVariant
- Parameters:
variantId
- value to be set
-
equals
-
hashCode
-