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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductTailoringRemoveVariantAction with checking for non-null required valuesbuilds ProductTailoringRemoveVariantAction without checking for non-null required valuesgetId()Theidof the ProductVariant or Variant to remove from the Tailoring.getSku()Theskuof the ProductVariant or Variant to remove from the Tailoring.Whether only the staged Product Variant Tailoring is removed.Theidof the ProductVariant or Variant to remove from the Tailoring.of()factory method for an instance of ProductTailoringRemoveVariantActionBuilderof(ProductTailoringRemoveVariantAction template) create builder for ProductTailoringRemoveVariantAction instanceTheskuof the ProductVariant or Variant to remove from the Tailoring.Whether only the staged Product Variant Tailoring is removed.
-
Constructor Details
-
ProductTailoringRemoveVariantActionBuilder
public ProductTailoringRemoveVariantActionBuilder()
-
-
Method Details
-
id
The
idof the ProductVariant or Variant to remove from the Tailoring.- Parameters:
id- value to be set- Returns:
- Builder
-
sku
The
skuof the ProductVariant or Variant to remove from the Tailoring.- Parameters:
sku- value to be set- Returns:
- Builder
-
staged
Whether only the staged Product Variant Tailoring is removed. If
false, both the current and staged Product Variant Tailoring is removed.- Parameters:
staged- value to be set- Returns:
- Builder
-
getId
The
idof the ProductVariant or Variant to remove from the Tailoring.- Returns:
- id
-
getSku
The
skuof the ProductVariant or Variant to remove from the Tailoring.- Returns:
- sku
-
getStaged
Whether only the staged Product Variant Tailoring is removed. If
false, both the current and staged Product Variant Tailoring is removed.- Returns:
- staged
-
build
builds ProductTailoringRemoveVariantAction with checking for non-null required values- Specified by:
buildin 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
-