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 instancecopyDeep()static AssignedProductReferencedeepCopy(AssignedProductReference template) factory method to create a deep copy of AssignedProductReference@NotNull @Valid ProductReferenceReference to a Product that is assigned to the Product Selection.@Valid ProductVariantExclusionThe Variants of the Product that are excluded from the Product Selection.@Valid ProductVariantSelectionThe Variants of the Product that are included from the Product Selection.static AssignedProductReferenceof()factory methodstatic AssignedProductReferenceof(AssignedProductReference template) factory method to create a shallow copy AssignedProductReferencevoidsetProduct(ProductReference product) Reference to a Product that is assigned to the Product Selection.voidsetVariantExclusion(ProductVariantExclusion variantExclusion) The Variants of the Product that are excluded from the Product Selection.voidsetVariantSelection(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> Taccessor 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
IndividualProductSelectionMode. 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
IndividualExclusionProductSelectionMode. 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
IndividualProductSelectionMode. 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
IndividualExclusionProductSelectionMode. 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
-
copyDeep
AssignedProductReference copyDeep() -
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
-