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