Interface StandalonePriceValueChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Value update action.
Example to create an instance using the builder pattern
StandalonePriceValueChangedMessagePayload standalonePriceValueChangedMessagePayload = StandalonePriceValueChangedMessagePayload.builder()
.value(valueBuilder -> valueBuilder)
.staged(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceValueChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceValueChangedMessagePayloadcreate builder for StandalonePriceValueChangedMessagePayload instancefactory method to create a deep copy of StandalonePriceValueChangedMessagePayload@Valid TypedMoney
The old value of the updated StandalonePrice.@NotNull Boolean
Whether the new value was applied to the current or the staged representation of the StandalonePrice.@NotNull @Valid TypedMoney
getValue()
The new value of the updated StandalonePrice.of()
factory methodof
(StandalonePriceValueChangedMessagePayload template) factory method to create a shallow copy StandalonePriceValueChangedMessagePayloadvoid
setOldValue
(TypedMoney oldValue) The old value of the updated StandalonePrice.void
Whether the new value was applied to the current or the staged representation of the StandalonePrice.void
setValue
(TypedMoney value) The new value of the updated StandalonePrice.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceValueChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStandalonePriceValueChangedMessagePayload
(Function<StandalonePriceValueChangedMessagePayload, T> helper) 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
-
STANDALONE_PRICE_VALUE_CHANGED
discriminator value for StandalonePriceValueChangedMessagePayload- See Also:
-
-
Method Details
-
getValue
The new value of the updated StandalonePrice.
- Returns:
- value
-
getStaged
Whether the new value was applied to the current or the staged representation of the StandalonePrice. Staged changes are stored on the StagedStandalonePrice.
- Returns:
- staged
-
getOldValue
The old value of the updated StandalonePrice. Present on Messages created after 3 February 2023. Optional for backwards compatibility.
- Returns:
- oldValue
-
setValue
The new value of the updated StandalonePrice.
- Parameters:
value
- value to be set
-
setStaged
Whether the new value was applied to the current or the staged representation of the StandalonePrice. Staged changes are stored on the StagedStandalonePrice.
- Parameters:
staged
- value to be set
-
setOldValue
The old value of the updated StandalonePrice. Present on Messages created after 3 February 2023. Optional for backwards compatibility.
- Parameters:
oldValue
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceValueChangedMessagePayload
-
of
static StandalonePriceValueChangedMessagePayload of(StandalonePriceValueChangedMessagePayload template) factory method to create a shallow copy StandalonePriceValueChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceValueChangedMessagePayload deepCopy(@Nullable StandalonePriceValueChangedMessagePayload template) factory method to create a deep copy of StandalonePriceValueChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceValueChangedMessagePayload- Returns:
- builder
-
builder
static StandalonePriceValueChangedMessagePayloadBuilder builder(StandalonePriceValueChangedMessagePayload template) create builder for StandalonePriceValueChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceValueChangedMessagePayload
default <T> T withStandalonePriceValueChangedMessagePayload(Function<StandalonePriceValueChangedMessagePayload, 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<StandalonePriceValueChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-