Interface ProductVariantSelection
public interface ProductVariantSelection
ProductVariantSelection
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantSelection productVariantSelection = ProductVariantSelection.builder()
.type(ProductVariantSelectionTypeEnum.INCLUSION)
.plusSkus(skusBuilder -> skusBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantSelectionbuilder
(ProductVariantSelection template) create builder for ProductVariantSelection instancestatic ProductVariantSelection
deepCopy
(ProductVariantSelection template) factory method to create a deep copy of ProductVariantSelectiongetSkus()
@NotNull ProductVariantSelectionTypeEnum
getType()
static ProductVariantSelection
of()
factory methodstatic ProductVariantSelection
of
(ProductVariantSelection template) factory method to create a shallow copy ProductVariantSelectionvoid
set skusvoid
set skusvoid
set typestatic com.fasterxml.jackson.core.type.TypeReference<ProductVariantSelection>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getType
- Returns:
- type
-
getSkus
- Returns:
- skus
-
setType
set type- Parameters:
type
- value to be set
-
setSkus
set skus- Parameters:
skus
- values to be set
-
setSkus
set skus- Parameters:
skus
- values to be set
-
of
factory method- Returns:
- instance of ProductVariantSelection
-
of
factory method to create a shallow copy ProductVariantSelection- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductVariantSelection- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantSelection- Returns:
- builder
-
builder
create builder for ProductVariantSelection instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantSelection
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
-