Class ProductLegacySetSkuActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductLegacySetSkuActionBuilder
- All Implemented Interfaces:
Builder<ProductLegacySetSkuAction>
public class ProductLegacySetSkuActionBuilder
extends Object
implements Builder<ProductLegacySetSkuAction>
ProductLegacySetSkuActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductLegacySetSkuAction productLegacySetSkuAction = ProductLegacySetSkuAction.builder()
.variantId(1)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductLegacySetSkuAction with checking for non-null required valuesbuilds ProductLegacySetSkuAction without checking for non-null required valuesgetSku()
value of sku}value of variantId}of()
factory method for an instance of ProductLegacySetSkuActionBuilderof
(ProductLegacySetSkuAction template) create builder for ProductLegacySetSkuAction instanceset the value to the skuset the value to the variantId
-
Constructor Details
-
ProductLegacySetSkuActionBuilder
public ProductLegacySetSkuActionBuilder()
-
-
Method Details
-
sku
set the value to the sku- Parameters:
sku
- value to be set- Returns:
- Builder
-
variantId
set the value to the variantId- Parameters:
variantId
- value to be set- Returns:
- Builder
-
getSku
value of sku}- Returns:
- sku
-
getVariantId
value of variantId}- Returns:
- variantId
-
build
builds ProductLegacySetSkuAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductLegacySetSkuAction>
- Returns:
- ProductLegacySetSkuAction
-
buildUnchecked
builds ProductLegacySetSkuAction without checking for non-null required values- Returns:
- ProductLegacySetSkuAction
-
of
factory method for an instance of ProductLegacySetSkuActionBuilder- Returns:
- builder
-
of
create builder for ProductLegacySetSkuAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-