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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StandalonePriceChangeValueAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StandalonePriceChangeValueActionbuilder(StandalonePriceChangeValueAction template) create builder for StandalonePriceChangeValueAction instancecopyDeep()deepCopy(StandalonePriceChangeValueAction template) factory method to create a deep copy of StandalonePriceChangeValueActionIf set totruethe update action applies to the StagedStandalonePrice.@NotNull @Valid MoneygetValue()New value to set.of()factory methodof(StandalonePriceChangeValueAction template) factory method to create a shallow copy StandalonePriceChangeValueActionvoidIf set totruethe update action applies to the StagedStandalonePrice.voidNew value to set.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceChangeValueAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
truethe 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
truethe 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
-
copyDeep
StandalonePriceChangeValueAction copyDeep()- Specified by:
copyDeepin interfaceStandalonePriceUpdateAction
-
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
-