Interface ProductSetImageLabelAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
Either variantId
or sku
is required.
Example to create an instance using the builder pattern
ProductSetImageLabelAction productSetImageLabelAction = ProductSetImageLabelAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSetImageLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSetImageLabelActionbuilder
(ProductSetImageLabelAction template) create builder for ProductSetImageLabelAction instancestatic ProductSetImageLabelAction
deepCopy
(ProductSetImageLabelAction template) factory method to create a deep copy of ProductSetImageLabelAction@NotNull String
The URL of the image to set the label.getLabel()
Value to set.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged image is updated.Theid
of the ProductVariant to update.static ProductSetImageLabelAction
of()
factory methodstatic ProductSetImageLabelAction
of
(ProductSetImageLabelAction template) factory method to create a shallow copy ProductSetImageLabelActionstatic ProductSetImageLabelAction
static ProductSetImageLabelAction
ofUnsetStaged
(Long variantId, String imageUrl) void
setImageUrl
(String imageUrl) The URL of the image to set the label.void
Value to set.void
Thesku
of the ProductVariant to update.void
Iftrue
, only the staged image is updated.void
setVariantId
(Long variantId) Theid
of the ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductSetImageLabelAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_IMAGE_LABEL
discriminator value for ProductSetImageLabelAction- See Also:
-
-
Method Details
-
getSku
String getSku()The
sku
of the ProductVariant to update.- Returns:
- sku
-
getVariantId
Long getVariantId()The
id
of the ProductVariant to update.- Returns:
- variantId
-
getImageUrl
The URL of the image to set the label.
- Returns:
- imageUrl
-
getLabel
String getLabel()Value to set. If empty, any existing value will be removed.
- Returns:
- label
-
getStaged
Boolean getStaged()If
true
, only the staged image is updated. Iffalse
, both the current and staged image is updated.- Returns:
- staged
-
setSku
The
sku
of the ProductVariant to update.- Parameters:
sku
- value to be set
-
setVariantId
The
id
of the ProductVariant to update.- Parameters:
variantId
- value to be set
-
setImageUrl
The URL of the image to set the label.
- Parameters:
imageUrl
- value to be set
-
setLabel
Value to set. If empty, any existing value will be removed.
- Parameters:
label
- value to be set
-
setStaged
If
true
, only the staged image is updated. Iffalse
, both the current and staged image is updated.- Parameters:
staged
- value to be set
-
of
factory method- Returns:
- instance of ProductSetImageLabelAction
-
of
factory method to create a shallow copy ProductSetImageLabelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductSetImageLabelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSetImageLabelAction- Returns:
- builder
-
builder
create builder for ProductSetImageLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSetImageLabelAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
ofUnsetStaged
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-