Interface ProductVariantSelection
- All Known Subinterfaces:
ProductVariantSelectionIncludeAllExcept,ProductVariantSelectionIncludeOnly
public interface ProductVariantSelection
Polymorphic base type for Product Variant Selections. The actual type is determined by the type field.
Example to create a subtype instance using the builder pattern
ProductVariantSelection productVariantSelection = ProductVariantSelection.exclusionBuilder()
plusSkus(skusBuilder -> skusBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptioncopyDeep()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.builder for includeAllExcept subtypebuilder for includeOnly subtypestatic 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
-
copyDeep
ProductVariantSelection copyDeep() -
deepCopy
factory method to create a deep copy of ProductVariantSelection- Parameters:
template- instance to be copied- Returns:
- copy instance
-
includeAllExceptBuilder
builder for includeAllExcept subtype- Returns:
- builder
-
includeOnlyBuilder
builder for includeOnly subtype- 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
-