Interface ProductPriceModeSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set PriceMode update action.
Example to create an instance using the builder pattern
ProductPriceModeSetMessagePayload productPriceModeSetMessagePayload = ProductPriceModeSetMessagePayload.builder()
.to(ProductPriceModeEnum.EMBEDDED)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductPriceModeSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductPriceModeSetMessagePayloadbuilder
(ProductPriceModeSetMessagePayload template) create builder for ProductPriceModeSetMessagePayload instancedeepCopy
(ProductPriceModeSetMessagePayload template) factory method to create a deep copy of ProductPriceModeSetMessagePayload@NotNull ProductPriceModeEnum
getTo()
The PriceMode that was set.of()
factory methodof
(ProductPriceModeSetMessagePayload template) factory method to create a shallow copy ProductPriceModeSetMessagePayloadvoid
The PriceMode that was set.static com.fasterxml.jackson.core.type.TypeReference<ProductPriceModeSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
PRODUCT_PRICE_MODE_SET
discriminator value for ProductPriceModeSetMessagePayload- See Also:
-
-
Method Details
-
getTo
The PriceMode that was set.
- Returns:
- to
-
setTo
The PriceMode that was set.
- Parameters:
to
- value to be set
-
of
factory method- Returns:
- instance of ProductPriceModeSetMessagePayload
-
of
factory method to create a shallow copy ProductPriceModeSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductPriceModeSetMessagePayload deepCopy(@Nullable ProductPriceModeSetMessagePayload template) factory method to create a deep copy of ProductPriceModeSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductPriceModeSetMessagePayload- Returns:
- builder
-
builder
create builder for ProductPriceModeSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductPriceModeSetMessagePayload
default <T> T withProductPriceModeSetMessagePayload(Function<ProductPriceModeSetMessagePayload, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductPriceModeSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-