Class ProductTypeChangeAttributeConstraintActionBuilder
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeChangeAttributeConstraintActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductTypeChangeAttributeConstraintAction>
public class ProductTypeChangeAttributeConstraintActionBuilder
extends Object
implements io.vrap.rmf.base.client.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
-
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.None
newValue
(AttributeConstraintEnumDraft newValue) None
of()
factory method for an instance of ProductTypeChangeAttributeConstraintActionBuilderof
(ProductTypeChangeAttributeConstraintAction template) create builder for ProductTypeChangeAttributeConstraintAction instance
-
Constructor Details
-
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:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-