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 InventoryEntryUpdateBuilder
builder()
builder factory method for InventoryEntryUpdatestatic InventoryEntryUpdateBuilder
builder
(InventoryEntryUpdate template) create builder for InventoryEntryUpdate instancestatic InventoryEntryUpdate
deepCopy
(InventoryEntryUpdate template) factory method to create a deep copy of InventoryEntryUpdate@NotNull @Valid List<InventoryEntryUpdateAction>
Update actions to be performed on the InventoryEntry.@NotNull Long
Expected version of the InventoryEntry on which the changes should be applied.static InventoryEntryUpdate
of()
factory methodstatic InventoryEntryUpdate
of
(InventoryEntryUpdate template) factory method to create a shallow copy InventoryEntryUpdatevoid
setActions
(InventoryEntryUpdateAction... actions) Update actions to be performed on the InventoryEntry.void
setActions
(List<InventoryEntryUpdateAction> actions) Update actions to be performed on the InventoryEntry.void
setVersion
(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> T
withInventoryEntryUpdate
(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:
getVersion
in interfaceResourceUpdate<InventoryEntryUpdate,
InventoryEntryUpdateAction, InventoryEntryUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the InventoryEntry.
- Specified by:
getActions
in 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:
setVersion
in 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:
setActions
in 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
-
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
-