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 VariantSelectionBuilder
builder()
builder factory method for VariantSelectionstatic VariantSelectionBuilder
builder
(VariantSelection template) create builder for VariantSelection instancecopyDeep()
static VariantSelection
deepCopy
(VariantSelection template) factory method to create a deep copy of VariantSelectiongetSkus()
List of SKUs to include or exclude.@NotNull VariantSelectionType
getType()
Type of variant selection.static VariantSelection
of()
factory methodstatic VariantSelection
of
(VariantSelection template) factory method to create a shallow copy VariantSelectionvoid
List of SKUs to include or exclude.void
List of SKUs to include or exclude.void
setType
(VariantSelectionType type) Type of variant selection.static com.fasterxml.jackson.core.type.TypeReference<VariantSelection>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withVariantSelection
(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
-