Class ProductChangeMasterVariantActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductChangeMasterVariantActionBuilder
- All Implemented Interfaces:
Builder<ProductChangeMasterVariantAction>
public class ProductChangeMasterVariantActionBuilder
extends Object
implements Builder<ProductChangeMasterVariantAction>
ProductChangeMasterVariantActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductChangeMasterVariantAction productChangeMasterVariantAction = ProductChangeMasterVariantAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductChangeMasterVariantAction with checking for non-null required valuesbuilds ProductChangeMasterVariantAction without checking for non-null required valuesgetSku()Theskuof the ProductVariant to become the Master Variant.Iftrue, only the staged Master Variant is changed.Theidof the ProductVariant to become the Master Variant.of()factory method for an instance of ProductChangeMasterVariantActionBuilderof(ProductChangeMasterVariantAction template) create builder for ProductChangeMasterVariantAction instanceTheskuof the ProductVariant to become the Master Variant.Iftrue, only the staged Master Variant is changed.Theidof the ProductVariant to become the Master Variant.
-
Constructor Details
-
ProductChangeMasterVariantActionBuilder
public ProductChangeMasterVariantActionBuilder()
-
-
Method Details
-
variantId
The
idof the ProductVariant to become the Master Variant.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof the ProductVariant to become the Master Variant.- Parameters:
sku- value to be set- Returns:
- Builder
-
staged
If
true, only the staged Master Variant is changed. Iffalse, both the current and staged Master Variant are changed.- Parameters:
staged- value to be set- Returns:
- Builder
-
getVariantId
The
idof the ProductVariant to become the Master Variant.- Returns:
- variantId
-
getSku
The
skuof the ProductVariant to become the Master Variant.- Returns:
- sku
-
getStaged
If
true, only the staged Master Variant is changed. Iffalse, both the current and staged Master Variant are changed.- Returns:
- staged
-
build
builds ProductChangeMasterVariantAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductChangeMasterVariantAction>- Returns:
- ProductChangeMasterVariantAction
-
buildUnchecked
builds ProductChangeMasterVariantAction without checking for non-null required values- Returns:
- ProductChangeMasterVariantAction
-
of
factory method for an instance of ProductChangeMasterVariantActionBuilder- Returns:
- builder
-
of
create builder for ProductChangeMasterVariantAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-