Interface StandalonePriceUpdate
- All Superinterfaces:
ResourceUpdate<StandalonePriceUpdate,
StandalonePriceUpdateAction, StandalonePriceUpdateBuilder>
public interface StandalonePriceUpdate
extends ResourceUpdate<StandalonePriceUpdate,StandalonePriceUpdateAction,StandalonePriceUpdateBuilder>
StandalonePriceUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceUpdate standalonePriceUpdate = StandalonePriceUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StandalonePriceUpdateBuilder
builder()
builder factory method for StandalonePriceUpdatestatic StandalonePriceUpdateBuilder
builder
(StandalonePriceUpdate template) create builder for StandalonePriceUpdate instancestatic StandalonePriceUpdate
deepCopy
(StandalonePriceUpdate template) factory method to create a deep copy of StandalonePriceUpdate@NotNull @Valid List<StandalonePriceUpdateAction>
Update actions to be performed on the StandalonePrice.@NotNull Long
Expected version of the StandalonePrice on which the changes should be applied.static StandalonePriceUpdate
of()
factory methodstatic StandalonePriceUpdate
of
(StandalonePriceUpdate template) factory method to create a shallow copy StandalonePriceUpdatevoid
setActions
(StandalonePriceUpdateAction... actions) Update actions to be performed on the StandalonePrice.void
setActions
(List<StandalonePriceUpdateAction> actions) Update actions to be performed on the StandalonePrice.void
setVersion
(Long version) Expected version of the StandalonePrice on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the StandalonePrice on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
getVersion
in interfaceResourceUpdate<StandalonePriceUpdate,
StandalonePriceUpdateAction, StandalonePriceUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the StandalonePrice.
- Specified by:
getActions
in interfaceResourceUpdate<StandalonePriceUpdate,
StandalonePriceUpdateAction, StandalonePriceUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the StandalonePrice on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
setVersion
in interfaceResourceUpdate<StandalonePriceUpdate,
StandalonePriceUpdateAction, StandalonePriceUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the StandalonePrice.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the StandalonePrice.
- Specified by:
setActions
in interfaceResourceUpdate<StandalonePriceUpdate,
StandalonePriceUpdateAction, StandalonePriceUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of StandalonePriceUpdate
-
of
factory method to create a shallow copy StandalonePriceUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StandalonePriceUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceUpdate- Returns:
- builder
-
builder
create builder for StandalonePriceUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceUpdate
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-