Interface VariantSelection
public interface VariantSelection
Variant selection specifying how variants are included or excluded.
Example to create an instance using the builder pattern
VariantSelection variantSelection = VariantSelection.builder()
.type(VariantSelectionType.INCLUDE_ONLY)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic VariantSelectionBuilderbuilder()builder factory method for VariantSelectionstatic VariantSelectionBuilderbuilder(VariantSelection template) create builder for VariantSelection instancecopyDeep()static VariantSelectiondeepCopy(VariantSelection template) factory method to create a deep copy of VariantSelectiongetSkus()List of SKUs to include or exclude.@NotNull VariantSelectionTypegetType()Type of variant selection.static VariantSelectionof()factory methodstatic VariantSelectionof(VariantSelection template) factory method to create a shallow copy VariantSelectionvoidList of SKUs to include or exclude.voidList of SKUs to include or exclude.voidsetType(VariantSelectionType type) Type of variant selection.static com.fasterxml.jackson.core.type.TypeReference<VariantSelection>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithVariantSelection(Function<VariantSelection, T> helper) accessor map function
-
Method Details
-
getType
Type of variant selection.
- Returns:
- type
-
getSkus
List of SKUs to include or exclude.
- Returns:
- skus
-
setType
Type of variant selection.
- Parameters:
type- value to be set
-
setSkus
List of SKUs to include or exclude.
- Parameters:
skus- values to be set
-
setSkus
List of SKUs to include or exclude.
- Parameters:
skus- values to be set
-
of
factory method- Returns:
- instance of VariantSelection
-
of
factory method to create a shallow copy VariantSelection- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantSelection copyDeep() -
deepCopy
factory method to create a deep copy of VariantSelection- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantSelection- Returns:
- builder
-
builder
create builder for VariantSelection instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantSelection
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
-