Class AttributeEnumTypeBuilder
java.lang.Object
com.commercetools.api.models.product_type.AttributeEnumTypeBuilder
- All Implemented Interfaces:
Builder<AttributeEnumType>
AttributeEnumTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeEnumType attributeEnumType = AttributeEnumType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAvailable values that can be assigned to Products.build()
builds AttributeEnumType with checking for non-null required valuesbuilds AttributeEnumType without checking for non-null required valuesAvailable values that can be assigned to Products.static AttributeEnumTypeBuilder
of()
factory method for an instance of AttributeEnumTypeBuilderstatic AttributeEnumTypeBuilder
of
(AttributeEnumType template) create builder for AttributeEnumType instanceplusValues
(AttributePlainEnumValue... 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
(AttributePlainEnumValue... values) Available values that can be assigned to Products.values
(List<AttributePlainEnumValue> values) Available values that can be assigned to Products.Available values that can be assigned to Products.
-
Constructor Details
-
AttributeEnumTypeBuilder
public AttributeEnumTypeBuilder()
-
-
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 AttributeEnumTypeBuilder plusValues(Function<AttributePlainEnumValueBuilder, AttributePlainEnumValueBuilder> builder) Available values that can be assigned to Products.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
withValues
public AttributeEnumTypeBuilder withValues(Function<AttributePlainEnumValueBuilder, AttributePlainEnumValueBuilder> builder) Available values that can be assigned to Products.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
addValues
public AttributeEnumTypeBuilder addValues(Function<AttributePlainEnumValueBuilder, AttributePlainEnumValue> builder) Available values that can be assigned to Products.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
setValues
public AttributeEnumTypeBuilder setValues(Function<AttributePlainEnumValueBuilder, AttributePlainEnumValue> 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 AttributeEnumType with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeEnumType>
- Returns:
- AttributeEnumType
-
buildUnchecked
builds AttributeEnumType without checking for non-null required values- Returns:
- AttributeEnumType
-
of
factory method for an instance of AttributeEnumTypeBuilder- Returns:
- builder
-
of
create builder for AttributeEnumType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-