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 instancecopyDeep()static AssignedProductSelectiondeepCopy(AssignedProductSelection template) factory method to create a deep copy of AssignedProductSelection@NotNull ZonedDateTimeDate and time (UTC) this assignment was initially created.@NotNull @Valid ProductSelectionReferenceReference to the Product Selection that this assignment is part of.@Valid ProductVariantExclusionDefines which Variants of the Product will be excluded from the Product Selection.@Valid ProductVariantSelectionDefines which Variants of the Product will be included in the Product Selection.static AssignedProductSelectionof()factory methodstatic AssignedProductSelectionof(AssignedProductSelection template) factory method to create a shallow copy AssignedProductSelectionvoidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) this assignment was initially created.voidsetProductSelection(ProductSelectionReference productSelection) Reference to the Product Selection that this assignment is part of.voidsetVariantExclusion(ProductVariantExclusion variantExclusion) Defines which Variants of the Product will be excluded from the Product Selection.voidsetVariantSelection(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> Taccessor 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
IndividualProductSelectionMode.- 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
IndividualExclusionProductSelectionMode.- 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
IndividualProductSelectionMode.- 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
IndividualExclusionProductSelectionMode.- 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
-
copyDeep
AssignedProductSelection copyDeep() -
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
-