Class CustomFieldEnumValueBuilder
java.lang.Object
com.commercetools.api.models.type.CustomFieldEnumValueBuilder
- All Implemented Interfaces:
Builder<CustomFieldEnumValue>
CustomFieldEnumValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomFieldEnumValue customFieldEnumValue = CustomFieldEnumValue.builder()
.key("{key}")
.label("{label}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomFieldEnumValue with checking for non-null required valuesbuilds CustomFieldEnumValue without checking for non-null required valuesgetKey()
Key of the value used as a programmatic identifier.getLabel()
Descriptive label of the value.Key of the value used as a programmatic identifier.Descriptive label of the value.static CustomFieldEnumValueBuilder
of()
factory method for an instance of CustomFieldEnumValueBuilderstatic CustomFieldEnumValueBuilder
of
(CustomFieldEnumValue template) create builder for CustomFieldEnumValue instance
-
Constructor Details
-
CustomFieldEnumValueBuilder
public CustomFieldEnumValueBuilder()
-
-
Method Details
-
key
Key of the value used as a programmatic identifier.
- Parameters:
key
- value to be set- Returns:
- Builder
-
label
Descriptive label of the value.
- Parameters:
label
- value to be set- Returns:
- Builder
-
getKey
Key of the value used as a programmatic identifier.
- Returns:
- key
-
getLabel
Descriptive label of the value.
- Returns:
- label
-
build
builds CustomFieldEnumValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomFieldEnumValue>
- Returns:
- CustomFieldEnumValue
-
buildUnchecked
builds CustomFieldEnumValue without checking for non-null required values- Returns:
- CustomFieldEnumValue
-
of
factory method for an instance of CustomFieldEnumValueBuilder- Returns:
- builder
-
of
create builder for CustomFieldEnumValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-