Class EnumValueBuilder
java.lang.Object
com.commercetools.importapi.models.common.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()
value of key}getLabel()
value of label}set the value to the keyset the value to the labelstatic EnumValueBuilder
of()
factory method for an instance of EnumValueBuilderstatic EnumValueBuilder
create builder for EnumValue instance
-
Constructor Details
-
EnumValueBuilder
public EnumValueBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
label
set the value to the label- Parameters:
label
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
getLabel
value of label}- 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
-