Interface ProductTailoringRemoveVariantAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either id or sku is required. Produces the ProductVariantTailoringDeleted Message.
Example to create an instance using the builder pattern
ProductTailoringRemoveVariantAction productTailoringRemoveVariantAction = ProductTailoringRemoveVariantAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTailoringRemoveVariantAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTailoringRemoveVariantActionbuilder(ProductTailoringRemoveVariantAction template) create builder for ProductTailoringRemoveVariantAction instancecopyDeep()deepCopy(ProductTailoringRemoveVariantAction template) factory method to create a deep copy of ProductTailoringRemoveVariantActiongetId()Theidof the ProductVariant to remove from the Tailoring.getSku()Theskuof the ProductVariant to remove from the Tailoring.Iftrue, only the staged Product Variant Tailoring is removed.of()factory methodof(ProductTailoringRemoveVariantAction template) factory method to create a shallow copy ProductTailoringRemoveVariantActionvoidTheidof the ProductVariant to remove from the Tailoring.voidTheskuof the ProductVariant to remove from the Tailoring.voidIftrue, only the staged Product Variant Tailoring is removed.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringRemoveVariantAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
REMOVE_VARIANT
discriminator value for ProductTailoringRemoveVariantAction- See Also:
-
-
Method Details
-
getId
Long getId()The
idof the ProductVariant to remove from the Tailoring.- Returns:
- id
-
getSku
String getSku()The
skuof the ProductVariant to remove from the Tailoring.- Returns:
- sku
-
getStaged
Boolean getStaged()If
true, only the staged Product Variant Tailoring is removed. Iffalse, both the current and staged Product Variant Tailoring is removed.- Returns:
- staged
-
setId
The
idof the ProductVariant to remove from the Tailoring.- Parameters:
id- value to be set
-
setSku
The
skuof the ProductVariant to remove from the Tailoring.- Parameters:
sku- value to be set
-
setStaged
If
true, only the staged Product Variant Tailoring is removed. Iffalse, both the current and staged Product Variant Tailoring is removed.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductTailoringRemoveVariantAction
-
of
factory method to create a shallow copy ProductTailoringRemoveVariantAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoringRemoveVariantAction copyDeep()- Specified by:
copyDeepin interfaceProductTailoringUpdateAction
-
deepCopy
@Nullable static ProductTailoringRemoveVariantAction deepCopy(@Nullable ProductTailoringRemoveVariantAction template) factory method to create a deep copy of ProductTailoringRemoveVariantAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringRemoveVariantAction- Returns:
- builder
-
builder
static ProductTailoringRemoveVariantActionBuilder builder(ProductTailoringRemoveVariantAction template) create builder for ProductTailoringRemoveVariantAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringRemoveVariantAction
default <T> T withProductTailoringRemoveVariantAction(Function<ProductTailoringRemoveVariantAction, 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<ProductTailoringRemoveVariantAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-