Interface VariantImageAddedMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Add External Image update action.
Example to create an instance using the builder pattern
VariantImageAddedMessagePayload variantImageAddedMessagePayload = VariantImageAddedMessagePayload.builder()
.image(imageBuilder -> imageBuilder)
.staged(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantImageAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantImageAddedMessagePayloadbuilder(VariantImageAddedMessagePayload template) create builder for VariantImageAddedMessagePayload instancecopyDeep()deepCopy(VariantImageAddedMessagePayload template) factory method to create a deep copy of VariantImageAddedMessagePayload@NotNull @Valid ImagegetImage()Image that was added.@NotNull BooleanWhether the update was only applied to the staged Variant.of()factory methodof(VariantImageAddedMessagePayload template) factory method to create a shallow copy VariantImageAddedMessagePayloadvoidImage that was added.voidWhether the update was only applied to the staged Variant.static tools.jackson.core.type.TypeReference<VariantImageAddedMessagePayload>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_IMAGE_ADDED
discriminator value for VariantImageAddedMessagePayload- See Also:
-
-
Method Details
-
getImage
Image that was added.
- Returns:
- image
-
getStaged
Whether the update was only applied to the staged Variant.
- Returns:
- staged
-
setImage
Image that was added.
- Parameters:
image- value 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 VariantImageAddedMessagePayload
-
of
factory method to create a shallow copy VariantImageAddedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantImageAddedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static VariantImageAddedMessagePayload deepCopy(@Nullable VariantImageAddedMessagePayload template) factory method to create a deep copy of VariantImageAddedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantImageAddedMessagePayload- Returns:
- builder
-
builder
create builder for VariantImageAddedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantImageAddedMessagePayload
default <T> T withVariantImageAddedMessagePayload(Function<VariantImageAddedMessagePayload, T> helper) 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
-