Class AttributePlainEnumValueBuilder
java.lang.Object
com.commercetools.history.models.common.AttributePlainEnumValueBuilder
- All Implemented Interfaces:
Builder<AttributePlainEnumValue>
public class AttributePlainEnumValueBuilder
extends Object
implements Builder<AttributePlainEnumValue>
AttributePlainEnumValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributePlainEnumValue attributePlainEnumValue = AttributePlainEnumValue.builder()
.key("{key}")
.label("{label}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AttributePlainEnumValue with checking for non-null required valuesbuilds AttributePlainEnumValue without checking for non-null required valuesgetKey()
Key of the value used as a programmatic identifier, for example in facets & filters.getLabel()
Descriptive label of the value.Key of the value used as a programmatic identifier, for example in facets & filters.Descriptive label of the value.of()
factory method for an instance of AttributePlainEnumValueBuilderof
(AttributePlainEnumValue template) create builder for AttributePlainEnumValue instance
-
Constructor Details
-
AttributePlainEnumValueBuilder
public AttributePlainEnumValueBuilder()
-
-
Method Details
-
key
Key of the value used as a programmatic identifier, for example in facets & filters.
- 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, for example in facets & filters.
- Returns:
- key
-
getLabel
Descriptive label of the value.
- Returns:
- label
-
build
builds AttributePlainEnumValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributePlainEnumValue>
- Returns:
- AttributePlainEnumValue
-
buildUnchecked
builds AttributePlainEnumValue without checking for non-null required values- Returns:
- AttributePlainEnumValue
-
of
factory method for an instance of AttributePlainEnumValueBuilder- Returns:
- builder
-
of
create builder for AttributePlainEnumValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-