Class ProductRevertStagedVariantChangesActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductRevertStagedVariantChangesActionBuilder
- All Implemented Interfaces:
Builder<ProductRevertStagedVariantChangesAction>
public class ProductRevertStagedVariantChangesActionBuilder
extends Object
implements Builder<ProductRevertStagedVariantChangesAction>
ProductRevertStagedVariantChangesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductRevertStagedVariantChangesAction productRevertStagedVariantChangesAction = ProductRevertStagedVariantChangesAction.builder()
.variantId(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductRevertStagedVariantChangesAction with checking for non-null required valuesbuilds ProductRevertStagedVariantChangesAction without checking for non-null required valuesTheid
of the ProductVariant to revert.of()
factory method for an instance of ProductRevertStagedVariantChangesActionBuilderof
(ProductRevertStagedVariantChangesAction template) create builder for ProductRevertStagedVariantChangesAction instanceTheid
of the ProductVariant to revert.
-
Constructor Details
-
ProductRevertStagedVariantChangesActionBuilder
public ProductRevertStagedVariantChangesActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to revert.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
getVariantId
The
id
of the ProductVariant to revert.- Returns:
- variantId
-
build
builds ProductRevertStagedVariantChangesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductRevertStagedVariantChangesAction>
- Returns:
- ProductRevertStagedVariantChangesAction
-
buildUnchecked
builds ProductRevertStagedVariantChangesAction without checking for non-null required values- Returns:
- ProductRevertStagedVariantChangesAction
-
of
factory method for an instance of ProductRevertStagedVariantChangesActionBuilder- Returns:
- builder
-
of
public static ProductRevertStagedVariantChangesActionBuilder of(ProductRevertStagedVariantChangesAction template) create builder for ProductRevertStagedVariantChangesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-