Interface StandalonePriceApplyStagedChangesAction
- All Superinterfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>
,StandalonePriceUpdateAction
Applies all staged changes to the StandalonePrice by overwriting all current values with the values in the StagedStandalonePrice. After successfully applied, the StagedStandalonePrice will be removed from the StandalonePrice. An applyStagedChanges
update action on a StandalonePrice that does not contain any staged changes will return a 400 Bad Request
error. Applying staged changes successfully will produce the StandalonePriceStagedChangesApplied Message.
Example to create an instance using the builder pattern
StandalonePriceApplyStagedChangesAction standalonePriceApplyStagedChangesAction = StandalonePriceApplyStagedChangesAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceApplyStagedChangesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceApplyStagedChangesActioncreate builder for StandalonePriceApplyStagedChangesAction instancefactory method to create a deep copy of StandalonePriceApplyStagedChangesActionof()
factory methodof
(StandalonePriceApplyStagedChangesAction template) factory method to create a shallow copy StandalonePriceApplyStagedChangesActionstatic com.fasterxml.jackson.core.type.TypeReference<StandalonePriceApplyStagedChangesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStandalonePriceApplyStagedChangesAction
(Function<StandalonePriceApplyStagedChangesAction, T> helper) 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
-
APPLY_STAGED_CHANGES
discriminator value for StandalonePriceApplyStagedChangesAction- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of StandalonePriceApplyStagedChangesAction
-
of
factory method to create a shallow copy StandalonePriceApplyStagedChangesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceApplyStagedChangesAction deepCopy(@Nullable StandalonePriceApplyStagedChangesAction template) factory method to create a deep copy of StandalonePriceApplyStagedChangesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceApplyStagedChangesAction- Returns:
- builder
-
builder
static StandalonePriceApplyStagedChangesActionBuilder builder(StandalonePriceApplyStagedChangesAction template) create builder for StandalonePriceApplyStagedChangesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceApplyStagedChangesAction
default <T> T withStandalonePriceApplyStagedChangesAction(Function<StandalonePriceApplyStagedChangesAction, 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<StandalonePriceApplyStagedChangesAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-