Class CustomFieldEnumTypeBuilder
java.lang.Object
com.commercetools.api.models.type.CustomFieldEnumTypeBuilder
- All Implemented Interfaces:
Builder<CustomFieldEnumType>
CustomFieldEnumTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomFieldEnumType customFieldEnumType = CustomFieldEnumType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAllowed values.build()
builds CustomFieldEnumType with checking for non-null required valuesbuilds CustomFieldEnumType without checking for non-null required valuesAllowed values.static CustomFieldEnumTypeBuilder
of()
factory method for an instance of CustomFieldEnumTypeBuilderstatic CustomFieldEnumTypeBuilder
of
(CustomFieldEnumType template) create builder for CustomFieldEnumType instanceplusValues
(CustomFieldEnumValue... values) Allowed values.Allowed values.Allowed values.values
(CustomFieldEnumValue... values) Allowed values.values
(List<CustomFieldEnumValue> values) Allowed values.Allowed values.
-
Constructor Details
-
CustomFieldEnumTypeBuilder
public CustomFieldEnumTypeBuilder()
-
-
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 CustomFieldEnumTypeBuilder plusValues(Function<CustomFieldEnumValueBuilder, CustomFieldEnumValueBuilder> builder) Allowed values.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
withValues
public CustomFieldEnumTypeBuilder withValues(Function<CustomFieldEnumValueBuilder, CustomFieldEnumValueBuilder> builder) Allowed values.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
addValues
public CustomFieldEnumTypeBuilder addValues(Function<CustomFieldEnumValueBuilder, CustomFieldEnumValue> builder) Allowed values.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
setValues
public CustomFieldEnumTypeBuilder setValues(Function<CustomFieldEnumValueBuilder, CustomFieldEnumValue> builder) Allowed values.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
getValues
Allowed values.
- Returns:
- values
-
build
builds CustomFieldEnumType with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomFieldEnumType>
- Returns:
- CustomFieldEnumType
-
buildUnchecked
builds CustomFieldEnumType without checking for non-null required values- Returns:
- CustomFieldEnumType
-
of
factory method for an instance of CustomFieldEnumTypeBuilder- Returns:
- builder
-
of
create builder for CustomFieldEnumType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-