Class SearchKeywordsBuilder
java.lang.Object
com.commercetools.history.models.common.SearchKeywordsBuilder
- All Implemented Interfaces:
Builder<SearchKeywords>
SearchKeywordsBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchKeywords searchKeywords = SearchKeywords.builder()
.plus/^[a-z]{2}(-[A-Z]{2})?$/(/^[a-z]{2}(-[A-Z]{2})?$/Builder -> /^[a-z]{2}(-[A-Z]{2})?$/Builder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddValue
(String key, List<SearchKeyword> value) assign a pattern property to the builderbuild()
builds SearchKeywords with checking for non-null required valuesbuilds SearchKeywords without checking for non-null required valuesvalues of pattern propertiesstatic SearchKeywordsBuilder
of()
factory method for an instance of SearchKeywordsBuilderstatic SearchKeywordsBuilder
of
(SearchKeywords template) create builder for SearchKeywords instancevalues
(Map<String, List<SearchKeyword>> values) assign pattern properties to the builder
-
Constructor Details
-
SearchKeywordsBuilder
public SearchKeywordsBuilder()
-
-
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 SearchKeywords with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchKeywords>
- Returns:
- SearchKeywords
-
buildUnchecked
builds SearchKeywords without checking for non-null required values- Returns:
- SearchKeywords
-
of
factory method for an instance of SearchKeywordsBuilder- Returns:
- builder
-
of
create builder for SearchKeywords instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-