Class ProductRemoveVariantActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductRemoveVariantActionBuilder
- All Implemented Interfaces:
Builder<ProductRemoveVariantAction>
public class ProductRemoveVariantActionBuilder
extends Object
implements Builder<ProductRemoveVariantAction>
ProductRemoveVariantActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductRemoveVariantAction productRemoveVariantAction = ProductRemoveVariantAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductRemoveVariantAction with checking for non-null required valuesbuilds ProductRemoveVariantAction without checking for non-null required valuesgetId()Theidof the ProductVariant to remove.getSku()Theskuof the ProductVariant to remove.Iftrue, only the staged ProductVariant is removed.Theidof the ProductVariant to remove.of()factory method for an instance of ProductRemoveVariantActionBuilderof(ProductRemoveVariantAction template) create builder for ProductRemoveVariantAction instanceTheskuof the ProductVariant to remove.Iftrue, only the staged ProductVariant is removed.
-
Constructor Details
-
ProductRemoveVariantActionBuilder
public ProductRemoveVariantActionBuilder()
-
-
Method Details
-
id
The
idof the ProductVariant to remove.- Parameters:
id- value to be set- Returns:
- Builder
-
sku
The
skuof the ProductVariant to remove.- Parameters:
sku- value to be set- Returns:
- Builder
-
staged
If
true, only the staged ProductVariant is removed. Iffalse, both the current and staged ProductVariant is removed.- Parameters:
staged- value to be set- Returns:
- Builder
-
getId
The
idof the ProductVariant to remove.- Returns:
- id
-
getSku
The
skuof the ProductVariant to remove.- Returns:
- sku
-
getStaged
If
true, only the staged ProductVariant is removed. Iffalse, both the current and staged ProductVariant is removed.- Returns:
- staged
-
build
builds ProductRemoveVariantAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductRemoveVariantAction>- Returns:
- ProductRemoveVariantAction
-
buildUnchecked
builds ProductRemoveVariantAction without checking for non-null required values- Returns:
- ProductRemoveVariantAction
-
of
factory method for an instance of ProductRemoveVariantActionBuilder- Returns:
- builder
-
of
create builder for ProductRemoveVariantAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-