Class EnumValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.EnumValueBuilder
EnumValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
EnumValue enumValue = EnumValue.builder()
.key("{key}")
.label("{label}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds EnumValue with checking for non-null required valuesbuilds EnumValue 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 EnumValueBuilder
of()
factory method for an instance of EnumValueBuilderstatic EnumValueBuilder
create builder for EnumValue instance
-
Constructor Details
-
EnumValueBuilder
public EnumValueBuilder()
-
-
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 EnumValue with checking for non-null required values -
buildUnchecked
builds EnumValue without checking for non-null required values- Returns:
- EnumValue
-
of
factory method for an instance of EnumValueBuilder- Returns:
- builder
-
of
create builder for EnumValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-