Class ProductTypeAddLocalizedEnumValueActionBuilder
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeAddLocalizedEnumValueActionBuilder
- All Implemented Interfaces:
Builder<ProductTypeAddLocalizedEnumValueAction>
public class ProductTypeAddLocalizedEnumValueActionBuilder
extends Object
implements Builder<ProductTypeAddLocalizedEnumValueAction>
ProductTypeAddLocalizedEnumValueActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTypeAddLocalizedEnumValueAction productTypeAddLocalizedEnumValueAction = ProductTypeAddLocalizedEnumValueAction.builder()
.attributeName("{attributeName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Name of the AttributeDefinition to update.build()
builds ProductTypeAddLocalizedEnumValueAction with checking for non-null required valuesbuilds ProductTypeAddLocalizedEnumValueAction without checking for non-null required valuesName of the AttributeDefinition to update.getValue()
Value to append to the array.of()
factory method for an instance of ProductTypeAddLocalizedEnumValueActionBuilderof
(ProductTypeAddLocalizedEnumValueAction template) create builder for ProductTypeAddLocalizedEnumValueAction instancevalue
(AttributeLocalizedEnumValue value) Value to append to the array.Value to append to the array.Value to append to the array.
-
Constructor Details
-
ProductTypeAddLocalizedEnumValueActionBuilder
public ProductTypeAddLocalizedEnumValueActionBuilder()
-
-
Method Details
-
attributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName
- value to be set- Returns:
- Builder
-
value
public ProductTypeAddLocalizedEnumValueActionBuilder value(Function<AttributeLocalizedEnumValueBuilder, AttributeLocalizedEnumValueBuilder> builder) Value to append to the array.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
withValue
public ProductTypeAddLocalizedEnumValueActionBuilder withValue(Function<AttributeLocalizedEnumValueBuilder, AttributeLocalizedEnumValue> builder) Value to append to the array.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
value
Value to append to the array.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getValue
Value to append to the array.
- Returns:
- value
-
build
builds ProductTypeAddLocalizedEnumValueAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTypeAddLocalizedEnumValueAction>
- Returns:
- ProductTypeAddLocalizedEnumValueAction
-
buildUnchecked
builds ProductTypeAddLocalizedEnumValueAction without checking for non-null required values- Returns:
- ProductTypeAddLocalizedEnumValueAction
-
of
factory method for an instance of ProductTypeAddLocalizedEnumValueActionBuilder- Returns:
- builder
-
of
public static ProductTypeAddLocalizedEnumValueActionBuilder of(ProductTypeAddLocalizedEnumValueAction template) create builder for ProductTypeAddLocalizedEnumValueAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-