Class ProductTypeChangeEnumKeyActionBuilder
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeChangeEnumKeyActionBuilder
- All Implemented Interfaces:
Builder<ProductTypeChangeEnumKeyAction>
public class ProductTypeChangeEnumKeyActionBuilder
extends Object
implements Builder<ProductTypeChangeEnumKeyAction>
ProductTypeChangeEnumKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTypeChangeEnumKeyAction productTypeChangeEnumKeyAction = ProductTypeChangeEnumKeyAction.builder()
.attributeName("{attributeName}")
.key("{key}")
.newKey("{newKey}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Name of the AttributeDefinition to update.build()
builds ProductTypeChangeEnumKeyAction with checking for non-null required valuesbuilds ProductTypeChangeEnumKeyAction without checking for non-null required valuesName of the AttributeDefinition to update.getKey()
Existing key to be changed.New key to be set.Existing key to be changed.New key to be set.of()
factory method for an instance of ProductTypeChangeEnumKeyActionBuilderof
(ProductTypeChangeEnumKeyAction template) create builder for ProductTypeChangeEnumKeyAction instance
-
Constructor Details
-
ProductTypeChangeEnumKeyActionBuilder
public ProductTypeChangeEnumKeyActionBuilder()
-
-
Method Details
-
attributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName
- value to be set- Returns:
- Builder
-
key
Existing key to be changed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
newKey
New key to be set.
- Parameters:
newKey
- value to be set- Returns:
- Builder
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getKey
Existing key to be changed.
- Returns:
- key
-
getNewKey
New key to be set.
- Returns:
- newKey
-
build
builds ProductTypeChangeEnumKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTypeChangeEnumKeyAction>
- Returns:
- ProductTypeChangeEnumKeyAction
-
buildUnchecked
builds ProductTypeChangeEnumKeyAction without checking for non-null required values- Returns:
- ProductTypeChangeEnumKeyAction
-
of
factory method for an instance of ProductTypeChangeEnumKeyActionBuilder- Returns:
- builder
-
of
create builder for ProductTypeChangeEnumKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-