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
Constructors -
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 stagedskuis updated.Theidof the ProductVariant to update.static ProductSetSkuActionBuilderof()factory method for an instance of ProductSetSkuActionBuilderstatic ProductSetSkuActionBuilderof(ProductSetSkuAction template) create builder for ProductSetSkuAction instanceValue to set.Iftrue, only the stagedskuis updated.Theidof the ProductVariant to update.
-
Constructor Details
-
ProductSetSkuActionBuilder
public ProductSetSkuActionBuilder()
-
-
Method Details
-
variantId
The
idof 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 stagedskuis updated. Iffalse, both the current and stagedskuare updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
getVariantId
The
idof 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 stagedskuis updated. Iffalse, both the current and stagedskuare updated.- Returns:
- staged
-
build
builds ProductSetSkuAction with checking for non-null required values- Specified by:
buildin 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
-