Class ProductAddExternalImageActionImpl
java.lang.Object
com.commercetools.api.models.product.ProductAddExternalImageActionImpl
- All Implemented Interfaces:
ProductAddExternalImageAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductAddExternalImageActionImpl
extends Object
implements ProductAddExternalImageAction, io.vrap.rmf.base.client.ModelBase
Either variantId
or sku
is required. Produces the ProductImageAdded Message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.product.ProductAddExternalImageAction
ADD_EXTERNAL_IMAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getImage()
Value to add toimages
.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the ProductVariant to update.int
hashCode()
void
Value to add toimages
.void
Thesku
of the ProductVariant to update.void
Iftrue
, only the stagedimages
is updated.void
setVariantId
(Long variantId) Theid
of the ProductVariant to update.toString()
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductAddExternalImageAction
withProductAddExternalImageAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductAddExternalImageActionImpl
public ProductAddExternalImageActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductUpdateAction>
- Returns:
- action
-
getVariantId
The
id
of the ProductVariant to update.- Specified by:
getVariantId
in interfaceProductAddExternalImageAction
- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Specified by:
getSku
in interfaceProductAddExternalImageAction
- Returns:
- sku
-
getImage
Value to add to
images
.- Specified by:
getImage
in interfaceProductAddExternalImageAction
- Returns:
- image
-
getStaged
If
true
, only the stagedimages
is updated. Iffalse
, both the current and stagedimages
is updated.- Specified by:
getStaged
in interfaceProductAddExternalImageAction
- Returns:
- staged
-
setVariantId
Description copied from interface:ProductAddExternalImageAction
The
id
of the ProductVariant to update.- Specified by:
setVariantId
in interfaceProductAddExternalImageAction
- Parameters:
variantId
- value to be set
-
setSku
Description copied from interface:ProductAddExternalImageAction
The
sku
of the ProductVariant to update.- Specified by:
setSku
in interfaceProductAddExternalImageAction
- Parameters:
sku
- value to be set
-
setImage
Description copied from interface:ProductAddExternalImageAction
Value to add to
images
.- Specified by:
setImage
in interfaceProductAddExternalImageAction
- Parameters:
image
- value to be set
-
setStaged
Description copied from interface:ProductAddExternalImageAction
If
true
, only the stagedimages
is updated. Iffalse
, both the current and stagedimages
is updated.- Specified by:
setStaged
in interfaceProductAddExternalImageAction
- Parameters:
staged
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-