Class VariantSetSkuActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantSetSkuActionBuilder
- All Implemented Interfaces:
Builder<VariantSetSkuAction>
VariantSetSkuActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantSetSkuAction variantSetSkuAction = VariantSetSkuAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds VariantSetSkuAction with checking for non-null required valuesbuilds VariantSetSkuAction without checking for non-null required valuesgetSku()Value to set.Iftrue, only the stagedskuis updated.static VariantSetSkuActionBuilderof()factory method for an instance of VariantSetSkuActionBuilderstatic VariantSetSkuActionBuilderof(VariantSetSkuAction template) create builder for VariantSetSkuAction instanceValue to set.Iftrue, only the stagedskuis updated.
-
Constructor Details
-
VariantSetSkuActionBuilder
public VariantSetSkuActionBuilder()
-
-
Method Details
-
sku
Value to set. Must be unique.
- 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
-
getSku
Value to set. Must be unique.
- Returns:
- sku
-
getStaged
If
true, only the stagedskuis updated. Iffalse, both the current and stagedskuare updated.- Returns:
- staged
-
build
builds VariantSetSkuAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantSetSkuAction>- Returns:
- VariantSetSkuAction
-
buildUnchecked
builds VariantSetSkuAction without checking for non-null required values- Returns:
- VariantSetSkuAction
-
of
factory method for an instance of VariantSetSkuActionBuilder- Returns:
- builder
-
of
create builder for VariantSetSkuAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-