Interface InventoryEntryUpdate
- All Superinterfaces:
ResourceUpdate<InventoryEntryUpdate,InventoryEntryUpdateAction, InventoryEntryUpdateBuilder>
public interface InventoryEntryUpdate
extends ResourceUpdate<InventoryEntryUpdate,InventoryEntryUpdateAction,InventoryEntryUpdateBuilder>
InventoryEntryUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InventoryEntryUpdate inventoryEntryUpdate = InventoryEntryUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryEntryUpdateBuilderbuilder()builder factory method for InventoryEntryUpdatestatic InventoryEntryUpdateBuilderbuilder(InventoryEntryUpdate template) create builder for InventoryEntryUpdate instancecopyDeep()static InventoryEntryUpdatedeepCopy(InventoryEntryUpdate template) factory method to create a deep copy of InventoryEntryUpdate@NotNull @Valid List<InventoryEntryUpdateAction>Update actions to be performed on the InventoryEntry.@NotNull LongExpected version of the InventoryEntry on which the changes should be applied.static InventoryEntryUpdateof()factory methodstatic InventoryEntryUpdateof(InventoryEntryUpdate template) factory method to create a shallow copy InventoryEntryUpdatevoidsetActions(InventoryEntryUpdateAction... actions) Update actions to be performed on the InventoryEntry.voidsetActions(List<InventoryEntryUpdateAction> actions) Update actions to be performed on the InventoryEntry.voidsetVersion(Long version) Expected version of the InventoryEntry on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntryUpdate>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithInventoryEntryUpdate(Function<InventoryEntryUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the InventoryEntry 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<InventoryEntryUpdate,InventoryEntryUpdateAction, InventoryEntryUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the InventoryEntry.
- Specified by:
getActionsin interfaceResourceUpdate<InventoryEntryUpdate,InventoryEntryUpdateAction, InventoryEntryUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the InventoryEntry 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<InventoryEntryUpdate,InventoryEntryUpdateAction, InventoryEntryUpdateBuilder> - Parameters:
version- value to be set
-
setActions
Update actions to be performed on the InventoryEntry.
- Parameters:
actions- values to be set
-
setActions
Update actions to be performed on the InventoryEntry.
- Specified by:
setActionsin interfaceResourceUpdate<InventoryEntryUpdate,InventoryEntryUpdateAction, InventoryEntryUpdateBuilder> - Parameters:
actions- values to be set
-
of
factory method- Returns:
- instance of InventoryEntryUpdate
-
of
factory method to create a shallow copy InventoryEntryUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
InventoryEntryUpdate copyDeep() -
deepCopy
factory method to create a deep copy of InventoryEntryUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntryUpdate- Returns:
- builder
-
builder
create builder for InventoryEntryUpdate instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntryUpdate
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
-