Interface ProductVariantSelectionIncludeAllExcept
- All Superinterfaces:
ProductVariantSelection
All Product Variants except the explicitly stated SKUs are part of the Product Selection.
Example to create an instance using the builder pattern
ProductVariantSelectionIncludeAllExcept productVariantSelectionIncludeAllExcept = ProductVariantSelectionIncludeAllExcept.builder()
.plusSkus(skusBuilder -> skusBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductVariantSelectionIncludeAllExcept -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantSelectionIncludeAllExceptcreate builder for ProductVariantSelectionIncludeAllExcept instancefactory method to create a deep copy of ProductVariantSelectionIncludeAllExceptgetSkus()
Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.@NotNull ProductVariantSelectionTypeEnum
getType()
Determines whether the SKUs are to be included in, or excluded from, the Product Selection.of()
factory methodof
(ProductVariantSelectionIncludeAllExcept template) factory method to create a shallow copy ProductVariantSelectionIncludeAllExceptvoid
Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.void
Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantSelectionIncludeAllExcept>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductVariantSelectionIncludeAllExcept
(Function<ProductVariantSelectionIncludeAllExcept, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_selection.ProductVariantSelection
withProductVariantSelection
-
Field Details
-
INCLUDE_ALL_EXCEPT
discriminator value for ProductVariantSelectionIncludeAllExcept- 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 excluded from the Product Selection.
- Returns:
- skus
-
setSkus
Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- Parameters:
skus
- values to be set
-
setSkus
Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- Parameters:
skus
- values to be set
-
of
factory method- Returns:
- instance of ProductVariantSelectionIncludeAllExcept
-
of
factory method to create a shallow copy ProductVariantSelectionIncludeAllExcept- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductVariantSelectionIncludeAllExcept deepCopy(@Nullable ProductVariantSelectionIncludeAllExcept template) factory method to create a deep copy of ProductVariantSelectionIncludeAllExcept- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantSelectionIncludeAllExcept- Returns:
- builder
-
builder
static ProductVariantSelectionIncludeAllExceptBuilder builder(ProductVariantSelectionIncludeAllExcept template) create builder for ProductVariantSelectionIncludeAllExcept instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantSelectionIncludeAllExcept
default <T> T withProductVariantSelectionIncludeAllExcept(Function<ProductVariantSelectionIncludeAllExcept, 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<ProductVariantSelectionIncludeAllExcept> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-