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 ProductSelectionAssignmentdeepCopy(ProductSelectionAssignment template) factory method to create a deep copy of ProductSelectionAssignment@NotNull @Valid ProductKeyReferenceReference to the Product by key.@Valid VariantExclusionVariant exclusion specifying excluded SKUs.@Valid VariantSelectionVariant selection specifying included SKUs.static ProductSelectionAssignmentof()factory methodstatic ProductSelectionAssignmentof(ProductSelectionAssignment template) factory method to create a shallow copy ProductSelectionAssignmentvoidsetProduct(ProductKeyReference product) Reference to the Product by key.voidsetVariantExclusion(VariantExclusion variantExclusion) Variant exclusion specifying excluded SKUs.voidsetVariantSelection(VariantSelection variantSelection) Variant selection specifying included SKUs.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionAssignment>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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
-