Class ProductTypeChangeAttributeConstraintActionBuilder
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeChangeAttributeConstraintActionBuilder
- All Implemented Interfaces:
Builder<ProductTypeChangeAttributeConstraintAction>
public class ProductTypeChangeAttributeConstraintActionBuilder
extends Object
implements Builder<ProductTypeChangeAttributeConstraintAction>
ProductTypeChangeAttributeConstraintActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTypeChangeAttributeConstraintAction productTypeChangeAttributeConstraintAction = ProductTypeChangeAttributeConstraintAction.builder()
.attributeName("{attributeName}")
.newValue(AttributeConstraintEnumDraft.NONE)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeName(String attributeName) Name of the AttributeDefinition to update.build()builds ProductTypeChangeAttributeConstraintAction with checking for non-null required valuesbuilds ProductTypeChangeAttributeConstraintAction without checking for non-null required valuesName of the AttributeDefinition to update.NonenewValue(AttributeConstraintEnumDraft newValue) Noneof()factory method for an instance of ProductTypeChangeAttributeConstraintActionBuilderof(ProductTypeChangeAttributeConstraintAction template) create builder for ProductTypeChangeAttributeConstraintAction instance
-
Constructor Details
-
ProductTypeChangeAttributeConstraintActionBuilder
public ProductTypeChangeAttributeConstraintActionBuilder()
-
-
Method Details
-
attributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName- value to be set- Returns:
- Builder
-
newValue
public ProductTypeChangeAttributeConstraintActionBuilder newValue(AttributeConstraintEnumDraft newValue) None- Parameters:
newValue- value to be set- Returns:
- Builder
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getNewValue
None- Returns:
- newValue
-
build
builds ProductTypeChangeAttributeConstraintAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductTypeChangeAttributeConstraintAction>- Returns:
- ProductTypeChangeAttributeConstraintAction
-
buildUnchecked
builds ProductTypeChangeAttributeConstraintAction without checking for non-null required values- Returns:
- ProductTypeChangeAttributeConstraintAction
-
of
factory method for an instance of ProductTypeChangeAttributeConstraintActionBuilder- Returns:
- builder
-
of
public static ProductTypeChangeAttributeConstraintActionBuilder of(ProductTypeChangeAttributeConstraintAction template) create builder for ProductTypeChangeAttributeConstraintAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-