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
Constructors -
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()Theskuof the ProductVariant to update.Iftrue, only the stagedkeyis set.Theidof the ProductVariant to update.Value to set.of()factory method for an instance of ProductSetProductVariantKeyActionBuilderof(ProductSetProductVariantKeyAction template) create builder for ProductSetProductVariantKeyAction instanceTheskuof the ProductVariant to update.Iftrue, only the stagedkeyis set.Theidof the ProductVariant to update.
-
Constructor Details
-
ProductSetProductVariantKeyActionBuilder
public ProductSetProductVariantKeyActionBuilder()
-
-
Method Details
-
variantId
The
idof the ProductVariant to update.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof 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 stagedkeyis set. Iffalse, both the current and stagedkeyare set.- Parameters:
staged- value to be set- Returns:
- Builder
-
getVariantId
The
idof the ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof 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 stagedkeyis set. Iffalse, both the current and stagedkeyare set.- Returns:
- staged
-
build
builds ProductSetProductVariantKeyAction with checking for non-null required values- Specified by:
buildin 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
-