Class ProductTailoringRemoveVariantActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringRemoveVariantActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringRemoveVariantAction>
public class ProductTailoringRemoveVariantActionBuilder
extends Object
implements Builder<ProductTailoringRemoveVariantAction>
ProductTailoringRemoveVariantActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringRemoveVariantAction productTailoringRemoveVariantAction = ProductTailoringRemoveVariantAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringRemoveVariantAction with checking for non-null required valuesbuilds ProductTailoringRemoveVariantAction without checking for non-null required valuesgetId()
Theid
of the ProductVariant to remove from the Tailoring.getSku()
Thesku
of the ProductVariant to remove from the Tailoring.Iftrue
, only the staged Product Variant Tailoring is removed.Theid
of the ProductVariant to remove from the Tailoring.of()
factory method for an instance of ProductTailoringRemoveVariantActionBuilderof
(ProductTailoringRemoveVariantAction template) create builder for ProductTailoringRemoveVariantAction instanceThesku
of the ProductVariant to remove from the Tailoring.Iftrue
, only the staged Product Variant Tailoring is removed.
-
Constructor Details
-
ProductTailoringRemoveVariantActionBuilder
public ProductTailoringRemoveVariantActionBuilder()
-
-
Method Details
-
id
The
id
of the ProductVariant to remove from the Tailoring.- Parameters:
id
- value to be set- Returns:
- Builder
-
sku
The
sku
of the ProductVariant to remove from the Tailoring.- Parameters:
sku
- value to be set- Returns:
- Builder
-
staged
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- Returns:
- Builder
-
getId
The
id
of the ProductVariant to remove from the Tailoring.- Returns:
- id
-
getSku
The
sku
of the ProductVariant to remove from the Tailoring.- Returns:
- sku
-
getStaged
If
true
, only the staged Product Variant Tailoring is removed. Iffalse
, both the current and staged Product Variant Tailoring is removed.- Returns:
- staged
-
build
builds ProductTailoringRemoveVariantAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringRemoveVariantAction>
- Returns:
- ProductTailoringRemoveVariantAction
-
buildUnchecked
builds ProductTailoringRemoveVariantAction without checking for non-null required values- Returns:
- ProductTailoringRemoveVariantAction
-
of
factory method for an instance of ProductTailoringRemoveVariantActionBuilder- Returns:
- builder
-
of
public static ProductTailoringRemoveVariantActionBuilder of(ProductTailoringRemoveVariantAction template) create builder for ProductTailoringRemoveVariantAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-