Class StandalonePriceValueChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceValueChangedMessagePayload>
Example to create an instance using the builder pattern
StandalonePriceValueChangedMessagePayload standalonePriceValueChangedMessagePayload = StandalonePriceValueChangedMessagePayload.builder()
.value(valueBuilder -> valueBuilder)
.staged(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceValueChangedMessagePayload with checking for non-null required valuesbuilds StandalonePriceValueChangedMessagePayload without checking for non-null required valuesThe old value of the updated StandalonePrice.Whether the new value was applied to the current or the staged representation of the StandalonePrice.getValue()
The new value of the updated StandalonePrice.of()
factory method for an instance of StandalonePriceValueChangedMessagePayloadBuilderof
(StandalonePriceValueChangedMessagePayload template) create builder for StandalonePriceValueChangedMessagePayload instanceoldValue
(TypedMoney oldValue) The old value of the updated StandalonePrice.oldValue
(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) The old value of the updated StandalonePrice.Whether the new value was applied to the current or the staged representation of the StandalonePrice.value
(TypedMoney value) The new value of the updated StandalonePrice.value
(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) The new value of the updated StandalonePrice.
-
Constructor Details
-
StandalonePriceValueChangedMessagePayloadBuilder
public StandalonePriceValueChangedMessagePayloadBuilder()
-
-
Method Details
-
value
The new value of the updated StandalonePrice.
- Parameters:
value
- value to be set- Returns:
- Builder
-
value
public StandalonePriceValueChangedMessagePayloadBuilder value(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) The new value of the updated StandalonePrice.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
staged
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- Returns:
- Builder
-
oldValue
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- Returns:
- Builder
-
oldValue
public StandalonePriceValueChangedMessagePayloadBuilder oldValue(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) The old value of the updated StandalonePrice. Present on Messages created after 3 February 2023. Optional for backwards compatibility.
- Parameters:
builder
- function to build the oldValue value- Returns:
- Builder
-
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
-
build
builds StandalonePriceValueChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceValueChangedMessagePayload>
- Returns:
- StandalonePriceValueChangedMessagePayload
-
buildUnchecked
builds StandalonePriceValueChangedMessagePayload without checking for non-null required values- Returns:
- StandalonePriceValueChangedMessagePayload
-
of
factory method for an instance of StandalonePriceValueChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceValueChangedMessagePayloadBuilder of(StandalonePriceValueChangedMessagePayload template) create builder for StandalonePriceValueChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-