Class ProductSetProductVariantKeyActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetProductVariantKeyActionBuilder
- All Implemented Interfaces:
Builder<ProductSetProductVariantKeyAction>
public class ProductSetProductVariantKeyActionBuilder
extends Object
implements Builder<ProductSetProductVariantKeyAction>
ProductSetProductVariantKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetProductVariantKeyAction productSetProductVariantKeyAction = ProductSetProductVariantKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetProductVariantKeyAction with checking for non-null required valuesbuilds ProductSetProductVariantKeyAction without checking for non-null required valuesgetKey()
Value to set.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the stagedkey
is set.Theid
of the ProductVariant to update.Value to set.of()
factory method for an instance of ProductSetProductVariantKeyActionBuilderof
(ProductSetProductVariantKeyAction template) create builder for ProductSetProductVariantKeyAction instanceThesku
of the ProductVariant to update.Iftrue
, only the stagedkey
is set.Theid
of the ProductVariant to update.
-
Constructor Details
-
ProductSetProductVariantKeyActionBuilder
public ProductSetProductVariantKeyActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the ProductVariant to update.- Parameters:
sku
- value to be set- Returns:
- Builder
-
key
Value to set. Must be unique. If empty, any existing value will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
staged
If
true
, only the stagedkey
is set. Iffalse
, both the current and stagedkey
are set.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
The
id
of the ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Returns:
- sku
-
getKey
Value to set. Must be unique. If empty, any existing value will be removed.
- Returns:
- key
-
getStaged
If
true
, only the stagedkey
is set. Iffalse
, both the current and stagedkey
are set.- Returns:
- staged
-
build
builds ProductSetProductVariantKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetProductVariantKeyAction>
- Returns:
- ProductSetProductVariantKeyAction
-
buildUnchecked
builds ProductSetProductVariantKeyAction without checking for non-null required values- Returns:
- ProductSetProductVariantKeyAction
-
of
factory method for an instance of ProductSetProductVariantKeyActionBuilder- Returns:
- builder
-
of
public static ProductSetProductVariantKeyActionBuilder of(ProductSetProductVariantKeyAction template) create builder for ProductSetProductVariantKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-