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