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 StandalonePriceUpdateBuilderbuilder()builder factory method for StandalonePriceUpdatestatic StandalonePriceUpdateBuilderbuilder(StandalonePriceUpdate template) create builder for StandalonePriceUpdate instancecopyDeep()static StandalonePriceUpdatedeepCopy(StandalonePriceUpdate template) factory method to create a deep copy of StandalonePriceUpdate@NotNull @Valid List<StandalonePriceUpdateAction>Update actions to be performed on the StandalonePrice.@NotNull LongExpected version of the StandalonePrice on which the changes should be applied.static StandalonePriceUpdateof()factory methodstatic StandalonePriceUpdateof(StandalonePriceUpdate template) factory method to create a shallow copy StandalonePriceUpdatevoidsetActions(StandalonePriceUpdateAction... actions) Update actions to be performed on the StandalonePrice.voidsetActions(List<StandalonePriceUpdateAction> actions) Update actions to be performed on the StandalonePrice.voidsetVersion(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> Taccessor 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:
getVersionin interfaceResourceUpdate<StandalonePriceUpdate,StandalonePriceUpdateAction, StandalonePriceUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the StandalonePrice.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
StandalonePriceUpdate copyDeep() -
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
-