Interface ProductVariantChannelAvailability
public interface ProductVariantChannelAvailability
ProductVariantChannelAvailability
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantChannelAvailability productVariantChannelAvailability = ProductVariantChannelAvailability.builder()
.isOnStock(true)
.restockableInDays(1)
.availableQuantity(1)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantChannelAvailabilitybuilder
(ProductVariantChannelAvailability template) create builder for ProductVariantChannelAvailability instancedeepCopy
(ProductVariantChannelAvailability template) factory method to create a deep copy of ProductVariantChannelAvailability@NotNull Integer
@NotNull Boolean
@NotNull Integer
of()
factory methodof
(ProductVariantChannelAvailability template) factory method to create a shallow copy ProductVariantChannelAvailabilityvoid
setAvailableQuantity
(Integer availableQuantity) set availableQuantityvoid
setIsOnStock
(Boolean isOnStock) set isOnStockvoid
setRestockableInDays
(Integer restockableInDays) set restockableInDaysstatic com.fasterxml.jackson.core.type.TypeReference<ProductVariantChannelAvailability>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getIsOnStock
- Returns:
- isOnStock
-
getRestockableInDays
- Returns:
- restockableInDays
-
getAvailableQuantity
- Returns:
- availableQuantity
-
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
-
of
factory method- Returns:
- instance of ProductVariantChannelAvailability
-
of
factory method to create a shallow copy ProductVariantChannelAvailability- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductVariantChannelAvailability deepCopy(@Nullable ProductVariantChannelAvailability template) factory method to create a deep copy of ProductVariantChannelAvailability- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantChannelAvailability- Returns:
- builder
-
builder
create builder for ProductVariantChannelAvailability instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantChannelAvailability
default <T> T withProductVariantChannelAvailability(Function<ProductVariantChannelAvailability, 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<ProductVariantChannelAvailability> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-