Class AttributeLocalizedEnumTypeBuilder
java.lang.Object
com.commercetools.api.models.product_type.AttributeLocalizedEnumTypeBuilder
- All Implemented Interfaces:
Builder<AttributeLocalizedEnumType>
public class AttributeLocalizedEnumTypeBuilder
extends Object
implements Builder<AttributeLocalizedEnumType>
AttributeLocalizedEnumTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeLocalizedEnumType attributeLocalizedEnumType = AttributeLocalizedEnumType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAvailable values that can be assigned to Products.build()
builds AttributeLocalizedEnumType with checking for non-null required valuesbuilds AttributeLocalizedEnumType without checking for non-null required valuesAvailable values that can be assigned to Products.of()
factory method for an instance of AttributeLocalizedEnumTypeBuilderof
(AttributeLocalizedEnumType template) create builder for AttributeLocalizedEnumType instanceplusValues
(AttributeLocalizedEnumValue... values) Available values that can be assigned to Products.Available values that can be assigned to Products.Available values that can be assigned to Products.values
(AttributeLocalizedEnumValue... values) Available values that can be assigned to Products.values
(List<AttributeLocalizedEnumValue> values) Available values that can be assigned to Products.Available values that can be assigned to Products.
-
Constructor Details
-
AttributeLocalizedEnumTypeBuilder
public AttributeLocalizedEnumTypeBuilder()
-
-
Method Details
-
values
Available values that can be assigned to Products.
- Parameters:
values
- value to be set- Returns:
- Builder
-
values
Available values that can be assigned to Products.
- Parameters:
values
- value to be set- Returns:
- Builder
-
plusValues
Available values that can be assigned to Products.
- Parameters:
values
- value to be set- Returns:
- Builder
-
plusValues
public AttributeLocalizedEnumTypeBuilder plusValues(Function<AttributeLocalizedEnumValueBuilder, AttributeLocalizedEnumValueBuilder> builder) Available values that can be assigned to Products.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
withValues
public AttributeLocalizedEnumTypeBuilder withValues(Function<AttributeLocalizedEnumValueBuilder, AttributeLocalizedEnumValueBuilder> builder) Available values that can be assigned to Products.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
addValues
public AttributeLocalizedEnumTypeBuilder addValues(Function<AttributeLocalizedEnumValueBuilder, AttributeLocalizedEnumValue> builder) Available values that can be assigned to Products.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
setValues
public AttributeLocalizedEnumTypeBuilder setValues(Function<AttributeLocalizedEnumValueBuilder, AttributeLocalizedEnumValue> builder) Available values that can be assigned to Products.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
getValues
Available values that can be assigned to Products.
- Returns:
- values
-
build
builds AttributeLocalizedEnumType with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeLocalizedEnumType>
- Returns:
- AttributeLocalizedEnumType
-
buildUnchecked
builds AttributeLocalizedEnumType without checking for non-null required values- Returns:
- AttributeLocalizedEnumType
-
of
factory method for an instance of AttributeLocalizedEnumTypeBuilder- Returns:
- builder
-
of
create builder for AttributeLocalizedEnumType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-