Class SuggestionBuilder
java.lang.Object
com.commercetools.api.models.product.SuggestionBuilder
- All Implemented Interfaces:
Builder<Suggestion>
Deprecated.
SuggestionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
Suggestion suggestion = Suggestion.builder()
.text("{text}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.builds Suggestion with checking for non-null required valuesDeprecated.builds Suggestion without checking for non-null required valuesgetText()Deprecated.The suggested text.static SuggestionBuilderof()Deprecated.factory method for an instance of SuggestionBuilderstatic SuggestionBuilderof(Suggestion template) Deprecated.create builder for Suggestion instanceDeprecated.The suggested text.
-
Constructor Details
-
SuggestionBuilder
public SuggestionBuilder()Deprecated.
-
-
Method Details
-
text
Deprecated.The suggested text.
- Parameters:
text- value to be set- Returns:
- Builder
-
getText
Deprecated.The suggested text.
- Returns:
- text
-
build
Deprecated.builds Suggestion with checking for non-null required values- Specified by:
buildin interfaceBuilder<Suggestion>- Returns:
- Suggestion
-
buildUnchecked
Deprecated.builds Suggestion without checking for non-null required values- Returns:
- Suggestion
-
of
Deprecated.factory method for an instance of SuggestionBuilder- Returns:
- builder
-
of
Deprecated.create builder for Suggestion instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-