Interface ProductVariantAvailability
public interface ProductVariantAvailability
ProductVariantAvailability
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantAvailability productVariantAvailability = ProductVariantAvailability.builder()
.isOnStock(true)
.restockableInDays(1)
.availableQuantity(1)
.channels(channelsBuilder -> channelsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductVariantAvailabilitybuilder(ProductVariantAvailability template) create builder for ProductVariantAvailability instancecopyDeep()static ProductVariantAvailabilitydeepCopy(ProductVariantAvailability template) factory method to create a deep copy of ProductVariantAvailability@NotNull Integer@NotNull @Valid ProductVariantChannelAvailabilityMap@NotNull Boolean@NotNull Integerstatic ProductVariantAvailabilityof()factory methodstatic ProductVariantAvailabilityof(ProductVariantAvailability template) factory method to create a shallow copy ProductVariantAvailabilityvoidsetAvailableQuantity(Integer availableQuantity) set availableQuantityvoidset channelsvoidsetIsOnStock(Boolean isOnStock) set isOnStockvoidsetRestockableInDays(Integer restockableInDays) set restockableInDaysstatic com.fasterxml.jackson.core.type.TypeReference<ProductVariantAvailability>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getIsOnStock
- Returns:
- isOnStock
-
getRestockableInDays
- Returns:
- restockableInDays
-
getAvailableQuantity
- Returns:
- availableQuantity
-
getChannels
- Returns:
- channels
-
setIsOnStock
set isOnStock- Parameters:
isOnStock- value to be set
-
setRestockableInDays
set restockableInDays- Parameters:
restockableInDays- value to be set
-
setAvailableQuantity
set availableQuantity- Parameters:
availableQuantity- value to be set
-
setChannels
set channels- Parameters:
channels- value to be set
-
of
factory method- Returns:
- instance of ProductVariantAvailability
-
of
factory method to create a shallow copy ProductVariantAvailability- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductVariantAvailability copyDeep() -
deepCopy
factory method to create a deep copy of ProductVariantAvailability- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantAvailability- Returns:
- builder
-
builder
create builder for ProductVariantAvailability instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantAvailability
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
-