Class ProductSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetKeyActionBuilder
- All Implemented Interfaces:
Builder<ProductSetKeyAction>
ProductSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetKeyAction productSetKeyAction = ProductSetKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetKeyAction with checking for non-null required valuesbuilds ProductSetKeyAction without checking for non-null required valuesgetKey()
Value to set.Value to set.static ProductSetKeyActionBuilder
of()
factory method for an instance of ProductSetKeyActionBuilderstatic ProductSetKeyActionBuilder
of
(ProductSetKeyAction template) create builder for ProductSetKeyAction instance
-
Constructor Details
-
ProductSetKeyActionBuilder
public ProductSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If empty, any existing value will be removed.
To update a Product using the Import API and the Merchant Center, the Product
key
must match the pattern^[A-Za-z0-9_-]{2,256}$
.- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Value to set. If empty, any existing value will be removed.
To update a Product using the Import API and the Merchant Center, the Product
key
must match the pattern^[A-Za-z0-9_-]{2,256}$
.- Returns:
- key
-
build
builds ProductSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetKeyAction>
- Returns:
- ProductSetKeyAction
-
buildUnchecked
builds ProductSetKeyAction without checking for non-null required values- Returns:
- ProductSetKeyAction
-
of
factory method for an instance of ProductSetKeyActionBuilder- Returns:
- builder
-
of
create builder for ProductSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-