Interface AssignedProductSelection
Example to create an instance using the builder pattern
AssignedProductSelection assignedProductSelection = AssignedProductSelection.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssignedProductSelectionbuilder
(AssignedProductSelection template) create builder for AssignedProductSelection instancestatic AssignedProductSelection
deepCopy
(AssignedProductSelection template) factory method to create a deep copy of AssignedProductSelection@NotNull ZonedDateTime
Date and time (UTC) this assignment was initially created.@NotNull @Valid ProductSelectionReference
Reference to the Product Selection that this assignment is part of.@Valid ProductVariantExclusion
Defines which Variants of the Product will be excluded from the Product Selection.@Valid ProductVariantSelection
Defines which Variants of the Product will be included in the Product Selection.static AssignedProductSelection
of()
factory methodstatic AssignedProductSelection
of
(AssignedProductSelection template) factory method to create a shallow copy AssignedProductSelectionvoid
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) this assignment was initially created.void
setProductSelection
(ProductSelectionReference productSelection) Reference to the Product Selection that this assignment is part of.void
setVariantExclusion
(ProductVariantExclusion variantExclusion) Defines which Variants of the Product will be excluded from the Product Selection.void
setVariantSelection
(ProductVariantSelection variantSelection) Defines which Variants of the Product will be included in the Product Selection.static com.fasterxml.jackson.core.type.TypeReference<AssignedProductSelection>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getProductSelection
Reference to the Product Selection that this assignment is part of.
- Returns:
- productSelection
-
getVariantSelection
Defines which Variants of the Product will be included in the Product Selection.
This field is only available for assignments to a Product Selection with
Individual
ProductSelectionMode.- Returns:
- variantSelection
-
getVariantExclusion
Defines which Variants of the Product will be excluded from the Product Selection.
This field is only available for assignments to a Product Selection with
IndividualExclusion
ProductSelectionMode.- Returns:
- variantExclusion
-
getCreatedAt
Date and time (UTC) this assignment was initially created.
- Returns:
- createdAt
-
setProductSelection
Reference to the Product Selection that this assignment is part of.
- Parameters:
productSelection
- value to be set
-
setVariantSelection
Defines which Variants of the Product will be included in the Product Selection.
This field is only available for assignments to a Product Selection with
Individual
ProductSelectionMode.- Parameters:
variantSelection
- value to be set
-
setVariantExclusion
Defines which Variants of the Product will be excluded from the Product Selection.
This field is only available for assignments to a Product Selection with
IndividualExclusion
ProductSelectionMode.- Parameters:
variantExclusion
- value to be set
-
setCreatedAt
Date and time (UTC) this assignment was initially created.
- Parameters:
createdAt
- value to be set
-
of
factory method- Returns:
- instance of AssignedProductSelection
-
of
factory method to create a shallow copy AssignedProductSelection- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AssignedProductSelection- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssignedProductSelection- Returns:
- builder
-
builder
create builder for AssignedProductSelection instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssignedProductSelection
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
-