Interface VariantExclusion
public interface VariantExclusion
Defines which Variants of the Product will be excluded from the Product Selection. If not supplied all Variants are deemed to be excluded.
Example to create an instance using the builder pattern
VariantExclusion variantExclusion = VariantExclusion.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic VariantExclusionBuilder
builder()
builder factory method for VariantExclusionstatic VariantExclusionBuilder
builder
(VariantExclusion template) create builder for VariantExclusion instancecopyDeep()
static VariantExclusion
deepCopy
(VariantExclusion template) factory method to create a deep copy of VariantExclusiongetSkus()
List of SKUs to be excluded.static VariantExclusion
of()
factory methodstatic VariantExclusion
of
(VariantExclusion template) factory method to create a shallow copy VariantExclusionvoid
List of SKUs to be excluded.void
List of SKUs to be excluded.static com.fasterxml.jackson.core.type.TypeReference<VariantExclusion>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withVariantExclusion
(Function<VariantExclusion, T> helper) accessor map function
-
Method Details
-
getSkus
List of SKUs to be excluded.
- Returns:
- skus
-
setSkus
List of SKUs to be excluded.
- Parameters:
skus
- values to be set
-
setSkus
List of SKUs to be excluded.
- Parameters:
skus
- values to be set
-
of
factory method- Returns:
- instance of VariantExclusion
-
of
factory method to create a shallow copy VariantExclusion- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantExclusion copyDeep() -
deepCopy
factory method to create a deep copy of VariantExclusion- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantExclusion- Returns:
- builder
-
builder
create builder for VariantExclusion instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withVariantExclusion
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
-