Interface ProductSelectionAssignment
public interface ProductSelectionAssignment
An assignment of a product and either variantSelection or variantExclusion (not both).
Example to create an instance using the builder pattern
ProductSelectionAssignment productSelectionAssignment = ProductSelectionAssignment.builder()
.product(productBuilder -> productBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionAssignmentbuilder
(ProductSelectionAssignment template) create builder for ProductSelectionAssignment instancecopyDeep()
static ProductSelectionAssignment
deepCopy
(ProductSelectionAssignment template) factory method to create a deep copy of ProductSelectionAssignment@NotNull @Valid ProductKeyReference
Reference to the Product by key.@Valid VariantExclusion
Variant exclusion specifying excluded SKUs.@Valid VariantSelection
Variant selection specifying included SKUs.static ProductSelectionAssignment
of()
factory methodstatic ProductSelectionAssignment
of
(ProductSelectionAssignment template) factory method to create a shallow copy ProductSelectionAssignmentvoid
setProduct
(ProductKeyReference product) Reference to the Product by key.void
setVariantExclusion
(VariantExclusion variantExclusion) Variant exclusion specifying excluded SKUs.void
setVariantSelection
(VariantSelection variantSelection) Variant selection specifying included SKUs.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionAssignment>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getProduct
Reference to the Product by key.
- Returns:
- product
-
getVariantSelection
Variant selection specifying included SKUs.
- Returns:
- variantSelection
-
getVariantExclusion
Variant exclusion specifying excluded SKUs.
- Returns:
- variantExclusion
-
setProduct
Reference to the Product by key.
- Parameters:
product
- value to be set
-
setVariantSelection
Variant selection specifying included SKUs.
- Parameters:
variantSelection
- value to be set
-
setVariantExclusion
Variant exclusion specifying excluded SKUs.
- Parameters:
variantExclusion
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionAssignment
-
of
factory method to create a shallow copy ProductSelectionAssignment- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSelectionAssignment copyDeep() -
deepCopy
factory method to create a deep copy of ProductSelectionAssignment- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionAssignment- Returns:
- builder
-
builder
create builder for ProductSelectionAssignment instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionAssignment
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
-