Interface VariantSetImageLabelAction
- All Superinterfaces:
VariantUpdateAction
Sets the label of a Variant's image.
Example to create an instance using the builder pattern
VariantSetImageLabelAction variantSetImageLabelAction = VariantSetImageLabelAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantSetImageLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantSetImageLabelActionbuilder(VariantSetImageLabelAction template) create builder for VariantSetImageLabelAction instancecopyDeep()static VariantSetImageLabelActiondeepCopy(VariantSetImageLabelAction template) factory method to create a deep copy of VariantSetImageLabelAction@NotNull StringThe URL of the image to set the label.getLabel()Value to set.Iftrue, only the staged image is updated.static VariantSetImageLabelActionof()factory methodstatic VariantSetImageLabelActionof(VariantSetImageLabelAction template) factory method to create a shallow copy VariantSetImageLabelActionvoidsetImageUrl(String imageUrl) The URL of the image to set the label.voidValue to set.voidIftrue, only the staged image is updated.static tools.jackson.core.type.TypeReference<VariantSetImageLabelAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.variant.VariantUpdateAction
getAction, withVariantUpdateAction
-
Field Details
-
SET_IMAGE_LABEL
discriminator value for VariantSetImageLabelAction- See Also:
-
-
Method Details
-
getImageUrl
The URL of the image to set the label.
- Returns:
- imageUrl
-
getLabel
String getLabel()Value to set. If omitted, any existing value is 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
-
setImageUrl
The URL of the image to set the label.
- Parameters:
imageUrl- value to be set
-
setLabel
Value to set. If omitted, any existing value is 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 VariantSetImageLabelAction
-
of
factory method to create a shallow copy VariantSetImageLabelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantSetImageLabelAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
factory method to create a deep copy of VariantSetImageLabelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantSetImageLabelAction- Returns:
- builder
-
builder
create builder for VariantSetImageLabelAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantSetImageLabelAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-