Interface ProductVariantSelectionIncludeOnly
- All Superinterfaces:
ProductVariantSelection
Only Product Variants with explicitly stated SKUs are part of the Product Selection.
Example to create an instance using the builder pattern
ProductVariantSelectionIncludeOnly productVariantSelectionIncludeOnly = ProductVariantSelectionIncludeOnly.builder()
.plusSkus(skusBuilder -> skusBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductVariantSelectionIncludeOnly -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantSelectionIncludeOnlybuilder
(ProductVariantSelectionIncludeOnly template) create builder for ProductVariantSelectionIncludeOnly instancedeepCopy
(ProductVariantSelectionIncludeOnly template) factory method to create a deep copy of ProductVariantSelectionIncludeOnlygetSkus()
Non-empty array of SKUs representing Product Variants to be included into the Product Selection.@NotNull ProductVariantSelectionTypeEnum
getType()
Determines whether the SKUs are to be included in, or excluded from, the Product Selection.of()
factory methodof
(ProductVariantSelectionIncludeOnly template) factory method to create a shallow copy ProductVariantSelectionIncludeOnlyvoid
Non-empty array of SKUs representing Product Variants to be included into the Product Selection.void
Non-empty array of SKUs representing Product Variants to be included into the Product Selection.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantSelectionIncludeOnly>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_selection.ProductVariantSelection
withProductVariantSelection
-
Field Details
-
INCLUDE_ONLY
discriminator value for ProductVariantSelectionIncludeOnly- See Also:
-
-
Method Details
-
getType
Description copied from interface:ProductVariantSelection
Determines whether the SKUs are to be included in, or excluded from, the Product Selection.
- Specified by:
getType
in interfaceProductVariantSelection
- Returns:
- type
-
getSkus
Non-empty array of SKUs representing Product Variants to be included into the Product Selection.
- Returns:
- skus
-
setSkus
Non-empty array of SKUs representing Product Variants to be included into the Product Selection.
- Parameters:
skus
- values to be set
-
setSkus
Non-empty array of SKUs representing Product Variants to be included into the Product Selection.
- Parameters:
skus
- values to be set
-
of
factory method- Returns:
- instance of ProductVariantSelectionIncludeOnly
-
of
factory method to create a shallow copy ProductVariantSelectionIncludeOnly- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductVariantSelectionIncludeOnly deepCopy(@Nullable ProductVariantSelectionIncludeOnly template) factory method to create a deep copy of ProductVariantSelectionIncludeOnly- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantSelectionIncludeOnly- Returns:
- builder
-
builder
static ProductVariantSelectionIncludeOnlyBuilder builder(ProductVariantSelectionIncludeOnly template) create builder for ProductVariantSelectionIncludeOnly instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantSelectionIncludeOnly
default <T> T withProductVariantSelectionIncludeOnly(Function<ProductVariantSelectionIncludeOnly, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductVariantSelectionIncludeOnly> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-