Class SuggestionResultBuilder
java.lang.Object
com.commercetools.api.models.product.SuggestionResultBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<SuggestionResult>
public class SuggestionResultBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<SuggestionResult>
SuggestionResultBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SuggestionResult suggestionResult = SuggestionResult.builder()
.plus/searchKeywords.[a-z]{2}(-[A-Z]{2})?/(/searchKeywords.[a-z]{2}(-[A-Z]{2})?/Builder -> /searchKeywords.[a-z]{2}(-[A-Z]{2})?/Builder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddValue
(String key, List<Suggestion> value) assign a pattern property to the builderbuild()
builds SuggestionResult with checking for non-null required valuesbuilds SuggestionResult without checking for non-null required valuesvalues of pattern propertiesstatic SuggestionResultBuilder
of()
factory method for an instance of SuggestionResultBuilderstatic SuggestionResultBuilder
of
(SuggestionResult template) create builder for SuggestionResult instancevalues
(Map<String, List<Suggestion>> values) assign pattern properties to the builder
-
Constructor Details
-
SuggestionResultBuilder
public SuggestionResultBuilder()
-
-
Method Details
-
values
assign pattern properties to the builder- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
assign a pattern property to the builder- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getValues
values of pattern properties- Returns:
- pattern properties
-
build
builds SuggestionResult with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<SuggestionResult>
- Returns:
- SuggestionResult
-
buildUnchecked
builds SuggestionResult without checking for non-null required values- Returns:
- SuggestionResult
-
of
factory method for an instance of SuggestionResultBuilder- Returns:
- builder
-
of
create builder for SuggestionResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-