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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe product that contains this variant.The state of the product variant.The id of the product variant.inthashCode()voidsetProduct(ProductReference product) The product that contains this variant.voidThe state of the product variant.voidsetVariantId(Integer variantId) The id of the product variant.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods 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:
getProductin interfaceProductVariant- Returns:
- product
-
getStaged
The state of the product variant.
- Specified by:
getStagedin interfaceProductVariant- Returns:
- staged
-
getVariantId
The id of the product variant.
- Specified by:
getVariantIdin interfaceProductVariant- Returns:
- variantId
-
setProduct
Description copied from interface:ProductVariantThe product that contains this variant.
- Specified by:
setProductin interfaceProductVariant- Parameters:
product- value to be set
-
setStaged
Description copied from interface:ProductVariantThe state of the product variant.
- Specified by:
setStagedin interfaceProductVariant- Parameters:
staged- value to be set
-
setVariantId
Description copied from interface:ProductVariantThe id of the product variant.
- Specified by:
setVariantIdin interfaceProductVariant- Parameters:
variantId- value to be set
-
equals
-
hashCode
public int hashCode()
-