Class StringLabelBuilder
java.lang.Object
com.commercetools.history.models.label.StringLabelBuilder
- All Implemented Interfaces:
Builder<StringLabel>
StringLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StringLabel stringLabel = StringLabel.builder()
.value("{value}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StringLabel with checking for non-null required valuesbuilds StringLabel without checking for non-null required valuesgetValue()
Changed value.static StringLabelBuilder
of()
factory method for an instance of StringLabelBuilderstatic StringLabelBuilder
of
(StringLabel template) create builder for StringLabel instanceChanged value.
-
Constructor Details
-
StringLabelBuilder
public StringLabelBuilder()
-
-
Method Details
-
value
Changed value.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
Changed value.
- Returns:
- value
-
build
builds StringLabel with checking for non-null required values- Specified by:
build
in interfaceBuilder<StringLabel>
- Returns:
- StringLabel
-
buildUnchecked
builds StringLabel without checking for non-null required values- Returns:
- StringLabel
-
of
factory method for an instance of StringLabelBuilder- Returns:
- builder
-
of
create builder for StringLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-