Class CustomFieldLocalizedEnumTypeBuilder
java.lang.Object
com.commercetools.api.models.type.CustomFieldLocalizedEnumTypeBuilder
- All Implemented Interfaces:
Builder<CustomFieldLocalizedEnumType>
public class CustomFieldLocalizedEnumTypeBuilder
extends Object
implements Builder<CustomFieldLocalizedEnumType>
CustomFieldLocalizedEnumTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomFieldLocalizedEnumType customFieldLocalizedEnumType = CustomFieldLocalizedEnumType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAllowed values.build()
builds CustomFieldLocalizedEnumType with checking for non-null required valuesbuilds CustomFieldLocalizedEnumType without checking for non-null required valuesAllowed values.of()
factory method for an instance of CustomFieldLocalizedEnumTypeBuilderof
(CustomFieldLocalizedEnumType template) create builder for CustomFieldLocalizedEnumType instanceplusValues
(CustomFieldLocalizedEnumValue... values) Allowed values.plusValues
(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) Allowed values.Allowed values.values
(CustomFieldLocalizedEnumValue... values) Allowed values.values
(List<CustomFieldLocalizedEnumValue> values) Allowed values.withValues
(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) Allowed values.
-
Constructor Details
-
CustomFieldLocalizedEnumTypeBuilder
public CustomFieldLocalizedEnumTypeBuilder()
-
-
Method Details
-
values
Allowed values.
- Parameters:
values
- value to be set- Returns:
- Builder
-
values
Allowed values.
- Parameters:
values
- value to be set- Returns:
- Builder
-
plusValues
Allowed values.
- Parameters:
values
- value to be set- Returns:
- Builder
-
plusValues
public CustomFieldLocalizedEnumTypeBuilder plusValues(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) Allowed values.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
withValues
public CustomFieldLocalizedEnumTypeBuilder withValues(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) Allowed values.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
addValues
public CustomFieldLocalizedEnumTypeBuilder addValues(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValue> builder) Allowed values.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
setValues
public CustomFieldLocalizedEnumTypeBuilder setValues(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValue> builder) Allowed values.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
getValues
Allowed values.
- Returns:
- values
-
build
builds CustomFieldLocalizedEnumType with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomFieldLocalizedEnumType>
- Returns:
- CustomFieldLocalizedEnumType
-
buildUnchecked
builds CustomFieldLocalizedEnumType without checking for non-null required values- Returns:
- CustomFieldLocalizedEnumType
-
of
factory method for an instance of CustomFieldLocalizedEnumTypeBuilder- Returns:
- builder
-
of
create builder for CustomFieldLocalizedEnumType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-