Interface VariantImagesSetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set Images update action.
Example to create an instance using the builder pattern
VariantImagesSetMessagePayload variantImagesSetMessagePayload = VariantImagesSetMessagePayload.builder()
.plusImages(imagesBuilder -> imagesBuilder)
.plusOldImages(oldImagesBuilder -> oldImagesBuilder)
.staged(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantImagesSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantImagesSetMessagePayloadbuilder(VariantImagesSetMessagePayload template) create builder for VariantImagesSetMessagePayload instancecopyDeep()deepCopy(VariantImagesSetMessagePayload template) factory method to create a deep copy of VariantImagesSetMessagePayloadThe images that were set on the Variant.The previous images of the Variant.@NotNull BooleanWhether the update was only applied to the staged Variant.of()factory methodof(VariantImagesSetMessagePayload template) factory method to create a shallow copy VariantImagesSetMessagePayloadvoidThe images that were set on the Variant.voidThe images that were set on the Variant.voidsetOldImages(Image... oldImages) The previous images of the Variant.voidsetOldImages(List<Image> oldImages) The previous images of the Variant.voidWhether the update was only applied to the staged Variant.static tools.jackson.core.type.TypeReference<VariantImagesSetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
VARIANT_IMAGES_SET
discriminator value for VariantImagesSetMessagePayload- See Also:
-
-
Method Details
-
getImages
The images that were set on the Variant.
- Returns:
- images
-
getOldImages
The previous images of the Variant.
- Returns:
- oldImages
-
getStaged
Whether the update was only applied to the staged Variant.
- Returns:
- staged
-
setImages
The images that were set on the Variant.
- Parameters:
images- values to be set
-
setImages
The images that were set on the Variant.
- Parameters:
images- values to be set
-
setOldImages
The previous images of the Variant.
- Parameters:
oldImages- values to be set
-
setOldImages
The previous images of the Variant.
- Parameters:
oldImages- values to be set
-
setStaged
Whether the update was only applied to the staged Variant.
- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of VariantImagesSetMessagePayload
-
of
factory method to create a shallow copy VariantImagesSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantImagesSetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static VariantImagesSetMessagePayload deepCopy(@Nullable VariantImagesSetMessagePayload template) factory method to create a deep copy of VariantImagesSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantImagesSetMessagePayload- Returns:
- builder
-
builder
create builder for VariantImagesSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantImagesSetMessagePayload
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
-