Interface VariantAttributesChannelAvailability
public interface VariantAttributesChannelAvailability
Availability of a Variant in a specific supply Channel.
Example to create an instance using the builder pattern
VariantAttributesChannelAvailability variantAttributesChannelAvailability = VariantAttributesChannelAvailability.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantAttributesChannelAvailabilitybuilder(VariantAttributesChannelAvailability template) create builder for VariantAttributesChannelAvailability instancecopyDeep()deepCopy(VariantAttributesChannelAvailability template) factory method to create a deep copy of VariantAttributesChannelAvailabilityNumber of items of this Variant that are in stock in the specified Channel.Indicates whether the Variant is in stock in the specified Channel.of()factory methodof(VariantAttributesChannelAvailability template) factory method to create a shallow copy VariantAttributesChannelAvailabilityvoidsetAvailableQuantity(Long availableQuantity) Number of items of this Variant that are in stock in the specified Channel.voidsetIsOnStock(Boolean isOnStock) Indicates whether the Variant is in stock in the specified Channel.static tools.jackson.core.type.TypeReference<VariantAttributesChannelAvailability>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getIsOnStock
Boolean getIsOnStock()Indicates whether the Variant is in stock in the specified Channel.
- Returns:
- isOnStock
-
getAvailableQuantity
Long getAvailableQuantity()Number of items of this Variant that are in stock in the specified Channel.
- Returns:
- availableQuantity
-
setIsOnStock
Indicates whether the Variant is in stock in the specified Channel.
- Parameters:
isOnStock- value to be set
-
setAvailableQuantity
Number of items of this Variant that are in stock in the specified Channel.
- Parameters:
availableQuantity- value to be set
-
of
factory method- Returns:
- instance of VariantAttributesChannelAvailability
-
of
factory method to create a shallow copy VariantAttributesChannelAvailability- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantAttributesChannelAvailability copyDeep() -
deepCopy
@Nullable static VariantAttributesChannelAvailability deepCopy(@Nullable VariantAttributesChannelAvailability template) factory method to create a deep copy of VariantAttributesChannelAvailability- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantAttributesChannelAvailability- Returns:
- builder
-
builder
static VariantAttributesChannelAvailabilityBuilder builder(VariantAttributesChannelAvailability template) create builder for VariantAttributesChannelAvailability instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantAttributesChannelAvailability
default <T> T withVariantAttributesChannelAvailability(Function<VariantAttributesChannelAvailability, T> helper) 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
-