Interface ProductVariantSelection
public interface ProductVariantSelection
Polymorphic base type for Product Variant Selections. The actual type is determined by the type field.
Example to create an instance using the builder pattern
ProductVariantSelection productVariantSelection = ProductVariantSelection.builder()
.type(ProductVariantSelectionTypeEnum.INCLUSION)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductVariantSelectionbuilder(ProductVariantSelection template) create builder for ProductVariantSelection instancecopyDeep()static ProductVariantSelectiondeepCopy(ProductVariantSelection template) factory method to create a deep copy of ProductVariantSelection@NotNull ProductVariantSelectionTypeEnumgetType()Determines whether the SKUs are to be included in, or excluded from, the Product Selection.static ProductVariantSelectionof()factory methodstatic ProductVariantSelectionof(ProductVariantSelection template) factory method to create a shallow copy ProductVariantSelectionvoidDetermines whether the SKUs are to be included in, or excluded from, the Product Selection.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantSelection>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getType
Determines whether the SKUs are to be included in, or excluded from, the Product Selection.
- Returns:
- type
-
setType
Determines whether the SKUs are to be included in, or excluded from, the Product Selection.
- Parameters:
type- value to be set
-
of
factory method- Returns:
- instance of ProductVariantSelection
-
of
factory method to create a shallow copy ProductVariantSelection- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductVariantSelection copyDeep() -
deepCopy
factory method to create a deep copy of ProductVariantSelection- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantSelection- Returns:
- builder
-
builder
create builder for ProductVariantSelection instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantSelection
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
-