Class ProductTypeSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeSetKeyActionBuilder
- All Implemented Interfaces:
Builder<ProductTypeSetKeyAction>
public class ProductTypeSetKeyActionBuilder
extends Object
implements Builder<ProductTypeSetKeyAction>
ProductTypeSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTypeSetKeyAction productTypeSetKeyAction = ProductTypeSetKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTypeSetKeyAction with checking for non-null required valuesbuilds ProductTypeSetKeyAction without checking for non-null required valuesgetKey()
Value to set.Value to set.of()
factory method for an instance of ProductTypeSetKeyActionBuilderof
(ProductTypeSetKeyAction template) create builder for ProductTypeSetKeyAction instance
-
Constructor Details
-
ProductTypeSetKeyActionBuilder
public ProductTypeSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If empty, any existing value will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Value to set. If empty, any existing value will be removed.
- Returns:
- key
-
build
builds ProductTypeSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTypeSetKeyAction>
- Returns:
- ProductTypeSetKeyAction
-
buildUnchecked
builds ProductTypeSetKeyAction without checking for non-null required values- Returns:
- ProductTypeSetKeyAction
-
of
factory method for an instance of ProductTypeSetKeyActionBuilder- Returns:
- builder
-
of
create builder for ProductTypeSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-