Interface InventoryEntrySetReservationExpirationInMinutesAction
- All Superinterfaces:
InventoryEntryUpdateAction,ResourceUpdateAction<InventoryEntryUpdateAction>
public interface InventoryEntrySetReservationExpirationInMinutesAction
extends InventoryEntryUpdateAction
Sets the default reservation expiration time for the Inventory Entry. This action does not affect existing reservations. To change the expiration date and time of existing reservations, see the Set Reservation Expiration In Minutes update action on the Carts API.
Produces the InventoryEntry Reservation Expiration In Minutes Set Message after a successful update.
Example to create an instance using the builder pattern
InventoryEntrySetReservationExpirationInMinutesAction inventoryEntrySetReservationExpirationInMinutesAction = InventoryEntrySetReservationExpirationInMinutesAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for InventoryEntrySetReservationExpirationInMinutesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InventoryEntrySetReservationExpirationInMinutesActioncreate builder for InventoryEntrySetReservationExpirationInMinutesAction instancecopyDeep()factory method to create a deep copy of InventoryEntrySetReservationExpirationInMinutesActionValue to set, must be a positive integer.of()factory methodfactory method to create a shallow copy InventoryEntrySetReservationExpirationInMinutesActionvoidsetReservationExpirationInMinutes(Integer reservationExpirationInMinutes) Value to set, must be a positive integer.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntrySetReservationExpirationInMinutesAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithInventoryEntrySetReservationExpirationInMinutesAction(Function<InventoryEntrySetReservationExpirationInMinutesAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.inventory.InventoryEntryUpdateAction
getAction, withInventoryEntryUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_RESERVATION_EXPIRATION_IN_MINUTES
discriminator value for InventoryEntrySetReservationExpirationInMinutesAction- See Also:
-
-
Method Details
-
getReservationExpirationInMinutes
Integer getReservationExpirationInMinutes()Value to set, must be a positive integer. If empty, any existing value will be removed.
- Returns:
- reservationExpirationInMinutes
-
setReservationExpirationInMinutes
Value to set, must be a positive integer. If empty, any existing value will be removed.
- Parameters:
reservationExpirationInMinutes- value to be set
-
of
factory method- Returns:
- instance of InventoryEntrySetReservationExpirationInMinutesAction
-
of
static InventoryEntrySetReservationExpirationInMinutesAction of(InventoryEntrySetReservationExpirationInMinutesAction template) factory method to create a shallow copy InventoryEntrySetReservationExpirationInMinutesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceInventoryEntryUpdateAction
-
deepCopy
@Nullable static InventoryEntrySetReservationExpirationInMinutesAction deepCopy(@Nullable InventoryEntrySetReservationExpirationInMinutesAction template) factory method to create a deep copy of InventoryEntrySetReservationExpirationInMinutesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntrySetReservationExpirationInMinutesAction- Returns:
- builder
-
builder
static InventoryEntrySetReservationExpirationInMinutesActionBuilder builder(InventoryEntrySetReservationExpirationInMinutesAction template) create builder for InventoryEntrySetReservationExpirationInMinutesAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntrySetReservationExpirationInMinutesAction
default <T> T withInventoryEntrySetReservationExpirationInMinutesAction(Function<InventoryEntrySetReservationExpirationInMinutesAction, 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<InventoryEntrySetReservationExpirationInMinutesAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-