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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductRemoveVariantAction with checking for non-null required valuesbuilds ProductRemoveVariantAction without checking for non-null required valuesgetId()
Theid
of the ProductVariant to remove.getSku()
Thesku
of the ProductVariant to remove.Iftrue
, only the staged ProductVariant is removed.Theid
of the ProductVariant to remove.of()
factory method for an instance of ProductRemoveVariantActionBuilderof
(ProductRemoveVariantAction template) create builder for ProductRemoveVariantAction instanceThesku
of the ProductVariant to remove.Iftrue
, only the staged ProductVariant is removed.
-
Constructor Details
-
ProductRemoveVariantActionBuilder
public ProductRemoveVariantActionBuilder()
-
-
Method Details
-
id
The
id
of the ProductVariant to remove.- Parameters:
id
- value to be set- Returns:
- Builder
-
sku
The
sku
of 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
id
of the ProductVariant to remove.- Returns:
- id
-
getSku
The
sku
of 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:
build
in 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
-