Interface ProductVariantExclusion
public interface ProductVariantExclusion
Only Product Variants with the explicitly listed SKUs are part of a Product Selection with IndividualExclusion
ProductSelectionMode.
Example to create an instance using the builder pattern
ProductVariantExclusion productVariantExclusion = ProductVariantExclusion.builder()
.plusSkus(skusBuilder -> skusBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantExclusionbuilder
(ProductVariantExclusion template) create builder for ProductVariantExclusion instancestatic ProductVariantExclusion
deepCopy
(ProductVariantExclusion template) factory method to create a deep copy of ProductVariantExclusiongetSkus()
Non-empty array of SKUs representing Product Variants to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.static ProductVariantExclusion
of()
factory methodstatic ProductVariantExclusion
of
(ProductVariantExclusion template) factory method to create a shallow copy ProductVariantExclusionvoid
Non-empty array of SKUs representing Product Variants to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.void
Non-empty array of SKUs representing Product Variants to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantExclusion>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getSkus
Non-empty array of SKUs representing Product Variants to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode.- Returns:
- skus
-
setSkus
Non-empty array of SKUs representing Product Variants to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode.- Parameters:
skus
- values to be set
-
setSkus
Non-empty array of SKUs representing Product Variants to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode.- Parameters:
skus
- values to be set
-
of
factory method- Returns:
- instance of ProductVariantExclusion
-
of
factory method to create a shallow copy ProductVariantExclusion- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductVariantExclusion- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantExclusion- Returns:
- builder
-
builder
create builder for ProductVariantExclusion instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantExclusion
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
-