Interface StandalonePriceChangeValueAction
- All Superinterfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>
,StandalonePriceUpdateAction
Updating the value of a StandalonePrice produces the StandalonePriceValueChangedMessage.
Example to create an instance using the builder pattern
StandalonePriceChangeValueAction standalonePriceChangeValueAction = StandalonePriceChangeValueAction.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceChangeValueAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceChangeValueActionbuilder
(StandalonePriceChangeValueAction template) create builder for StandalonePriceChangeValueAction instancedeepCopy
(StandalonePriceChangeValueAction template) factory method to create a deep copy of StandalonePriceChangeValueActionIf set totrue
the update action applies to the StagedStandalonePrice.@NotNull @Valid Money
getValue()
New value to set.of()
factory methodof
(StandalonePriceChangeValueAction template) factory method to create a shallow copy StandalonePriceChangeValueActionvoid
If set totrue
the update action applies to the StagedStandalonePrice.void
New value to set.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceChangeValueAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceUpdateAction
getAction, withStandalonePriceUpdateAction
-
Field Details
-
CHANGE_VALUE
discriminator value for StandalonePriceChangeValueAction- See Also:
-
-
Method Details
-
getValue
New value to set. Must not be empty.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Returns:
- value
-
getStaged
Boolean getStaged()If set to
true
the update action applies to the StagedStandalonePrice. If set tofalse
, the update action applies to the current StandalonePrice.- Returns:
- staged
-
setValue
New value to set. Must not be empty.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
value
- value to be set
-
setStaged
If set to
true
the update action applies to the StagedStandalonePrice. If set tofalse
, the update action applies to the current StandalonePrice.- Parameters:
staged
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceChangeValueAction
-
of
factory method to create a shallow copy StandalonePriceChangeValueAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceChangeValueAction deepCopy(@Nullable StandalonePriceChangeValueAction template) factory method to create a deep copy of StandalonePriceChangeValueAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceChangeValueAction- Returns:
- builder
-
builder
create builder for StandalonePriceChangeValueAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceChangeValueAction
default <T> T withStandalonePriceChangeValueAction(Function<StandalonePriceChangeValueAction, 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<StandalonePriceChangeValueAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-