Interface VariantSetImagesAction
- All Superinterfaces:
VariantUpdateAction
Sets the images of the Variant. Existing images will be replaced with the new ones. Generates the VariantImagesSet Message.
Example to create an instance using the builder pattern
VariantSetImagesAction variantSetImagesAction = VariantSetImagesAction.builder()
.plusImages(imagesBuilder -> imagesBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantSetImagesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantSetImagesActionbuilder(VariantSetImagesAction template) create builder for VariantSetImagesAction instancecopyDeep()static VariantSetImagesActiondeepCopy(VariantSetImagesAction template) factory method to create a deep copy of VariantSetImagesActionImages to set for the Variant.Iftrue, only the staged images are updated.static VariantSetImagesActionof()factory methodstatic VariantSetImagesActionof(VariantSetImagesAction template) factory method to create a shallow copy VariantSetImagesActionvoidImages to set for the Variant.voidImages to set for the Variant.voidIftrue, only the staged images are updated.static tools.jackson.core.type.TypeReference<VariantSetImagesAction>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_IMAGES
discriminator value for VariantSetImagesAction- See Also:
-
-
Method Details
-
getImages
Images to set for the Variant.
- Returns:
- images
-
getStaged
Boolean getStaged()If
true, only the staged images are updated. Iffalse, both the current and staged images are updated.- Returns:
- staged
-
setImages
Images to set for the Variant.
- Parameters:
images- values to be set
-
setImages
Images to set for the Variant.
- Parameters:
images- values to be set
-
setStaged
If
true, only the staged images are updated. Iffalse, both the current and staged images are updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of VariantSetImagesAction
-
of
factory method to create a shallow copy VariantSetImagesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantSetImagesAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
factory method to create a deep copy of VariantSetImagesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantSetImagesAction- Returns:
- builder
-
builder
create builder for VariantSetImagesAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantSetImagesAction
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
-