Class ProductTypeChangePlainEnumValueLabelActionBuilder
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeChangePlainEnumValueLabelActionBuilder
- All Implemented Interfaces:
Builder<ProductTypeChangePlainEnumValueLabelAction>
public class ProductTypeChangePlainEnumValueLabelActionBuilder
extends Object
implements Builder<ProductTypeChangePlainEnumValueLabelAction>
ProductTypeChangePlainEnumValueLabelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTypeChangePlainEnumValueLabelAction productTypeChangePlainEnumValueLabelAction = ProductTypeChangePlainEnumValueLabelAction.builder()
.attributeName("{attributeName}")
.newValue(newValueBuilder -> newValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Name of the AttributeDefinition to update.build()
builds ProductTypeChangePlainEnumValueLabelAction with checking for non-null required valuesbuilds ProductTypeChangePlainEnumValueLabelAction without checking for non-null required valuesName of the AttributeDefinition to update.New value to set.newValue
(AttributePlainEnumValue newValue) New value to set.New value to set.of()
factory method for an instance of ProductTypeChangePlainEnumValueLabelActionBuilderof
(ProductTypeChangePlainEnumValueLabelAction template) create builder for ProductTypeChangePlainEnumValueLabelAction instanceNew value to set.
-
Constructor Details
-
ProductTypeChangePlainEnumValueLabelActionBuilder
public ProductTypeChangePlainEnumValueLabelActionBuilder()
-
-
Method Details
-
attributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName
- value to be set- Returns:
- Builder
-
newValue
public ProductTypeChangePlainEnumValueLabelActionBuilder newValue(Function<AttributePlainEnumValueBuilder, AttributePlainEnumValueBuilder> builder) New value to set. Must be different from the existing value.
- Parameters:
builder
- function to build the newValue value- Returns:
- Builder
-
withNewValue
public ProductTypeChangePlainEnumValueLabelActionBuilder withNewValue(Function<AttributePlainEnumValueBuilder, AttributePlainEnumValue> builder) New value to set. Must be different from the existing value.
- Parameters:
builder
- function to build the newValue value- Returns:
- Builder
-
newValue
New value to set. Must be different from the existing value.
- Parameters:
newValue
- value to be set- Returns:
- Builder
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getNewValue
New value to set. Must be different from the existing value.
- Returns:
- newValue
-
build
builds ProductTypeChangePlainEnumValueLabelAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTypeChangePlainEnumValueLabelAction>
- Returns:
- ProductTypeChangePlainEnumValueLabelAction
-
buildUnchecked
builds ProductTypeChangePlainEnumValueLabelAction without checking for non-null required values- Returns:
- ProductTypeChangePlainEnumValueLabelAction
-
of
factory method for an instance of ProductTypeChangePlainEnumValueLabelActionBuilder- Returns:
- builder
-
of
public static ProductTypeChangePlainEnumValueLabelActionBuilder of(ProductTypeChangePlainEnumValueLabelAction template) create builder for ProductTypeChangePlainEnumValueLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-