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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductChangeMasterVariantAction with checking for non-null required valuesbuilds ProductChangeMasterVariantAction without checking for non-null required valuesgetSku()
Thesku
of the ProductVariant to become the Master Variant.Iftrue
, only the staged Master Variant is changed.Theid
of the ProductVariant to become the Master Variant.of()
factory method for an instance of ProductChangeMasterVariantActionBuilderof
(ProductChangeMasterVariantAction template) create builder for ProductChangeMasterVariantAction instanceThesku
of the ProductVariant to become the Master Variant.Iftrue
, only the staged Master Variant is changed.Theid
of the ProductVariant to become the Master Variant.
-
Constructor Details
-
ProductChangeMasterVariantActionBuilder
public ProductChangeMasterVariantActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to become the Master Variant.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of 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
id
of the ProductVariant to become the Master Variant.- Returns:
- variantId
-
getSku
The
sku
of 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:
build
in 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
-