Interface StandalonePriceValueChangedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Change Value update action.
Example to create an instance using the builder pattern
StandalonePriceValueChangedMessage standalonePriceValueChangedMessage = StandalonePriceValueChangedMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.value(valueBuilder -> valueBuilder)
.staged(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceValueChangedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceValueChangedMessagebuilder
(StandalonePriceValueChangedMessage template) create builder for StandalonePriceValueChangedMessage instancedeepCopy
(StandalonePriceValueChangedMessage template) factory method to create a deep copy of StandalonePriceValueChangedMessage@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
(StandalonePriceValueChangedMessage template) factory method to create a shallow copy StandalonePriceValueChangedMessagevoid
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<StandalonePriceValueChangedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
STANDALONE_PRICE_VALUE_CHANGED
discriminator value for StandalonePriceValueChangedMessage- 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 StandalonePriceValueChangedMessage
-
of
factory method to create a shallow copy StandalonePriceValueChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceValueChangedMessage deepCopy(@Nullable StandalonePriceValueChangedMessage template) factory method to create a deep copy of StandalonePriceValueChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceValueChangedMessage- Returns:
- builder
-
builder
static StandalonePriceValueChangedMessageBuilder builder(StandalonePriceValueChangedMessage template) create builder for StandalonePriceValueChangedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceValueChangedMessage
default <T> T withStandalonePriceValueChangedMessage(Function<StandalonePriceValueChangedMessage, 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<StandalonePriceValueChangedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-