Interface AssignedProductReference
Example to create an instance using the builder pattern
AssignedProductReference assignedProductReference = AssignedProductReference.builder()
.product(productBuilder -> productBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssignedProductReferencebuilder
(AssignedProductReference template) create builder for AssignedProductReference instancestatic AssignedProductReference
deepCopy
(AssignedProductReference template) factory method to create a deep copy of AssignedProductReference@NotNull @Valid ProductReference
Reference to a Product that is assigned to the Product Selection.@Valid ProductVariantExclusion
The Variants of the Product that are excluded from the Product Selection.@Valid ProductVariantSelection
The Variants of the Product that are included from the Product Selection.static AssignedProductReference
of()
factory methodstatic AssignedProductReference
of
(AssignedProductReference template) factory method to create a shallow copy AssignedProductReferencevoid
setProduct
(ProductReference product) Reference to a Product that is assigned to the Product Selection.void
setVariantExclusion
(ProductVariantExclusion variantExclusion) The Variants of the Product that are excluded from the Product Selection.void
setVariantSelection
(ProductVariantSelection variantSelection) The Variants of the Product that are included from the Product Selection.static com.fasterxml.jackson.core.type.TypeReference<AssignedProductReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getProduct
Reference to a Product that is assigned to the Product Selection.
- Returns:
- product
-
getVariantSelection
The Variants of the Product that are included from the Product Selection.
This field may exist only in Product Selections with
Individual
ProductSelectionMode. In absence of this field, all Variants are deemed to be included.- Returns:
- variantSelection
-
getVariantExclusion
The Variants of the Product that are excluded from the Product Selection.
This field may exist only in Product Selections with
IndividualExclusion
ProductSelectionMode. In absence of this field, all Variants are deemed to be excluded.- Returns:
- variantExclusion
-
setProduct
Reference to a Product that is assigned to the Product Selection.
- Parameters:
product
- value to be set
-
setVariantSelection
The Variants of the Product that are included from the Product Selection.
This field may exist only in Product Selections with
Individual
ProductSelectionMode. In absence of this field, all Variants are deemed to be included.- Parameters:
variantSelection
- value to be set
-
setVariantExclusion
The Variants of the Product that are excluded from the Product Selection.
This field may exist only in Product Selections with
IndividualExclusion
ProductSelectionMode. In absence of this field, all Variants are deemed to be excluded.- Parameters:
variantExclusion
- value to be set
-
of
factory method- Returns:
- instance of AssignedProductReference
-
of
factory method to create a shallow copy AssignedProductReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AssignedProductReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssignedProductReference- Returns:
- builder
-
builder
create builder for AssignedProductReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssignedProductReference
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
-