Class SearchKeywordsBuilder
java.lang.Object
com.commercetools.api.models.product.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValue
(String key, List<SearchKeyword> value) Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.build()
builds SearchKeywords with checking for non-null required valuesbuilds SearchKeywords without checking for non-null required valuesKey-value pair where the keys are of type Locale and the values are an array of SearchKeyword.static SearchKeywordsBuilder
of()
factory method for an instance of SearchKeywordsBuilderstatic SearchKeywordsBuilder
of
(SearchKeywords template) create builder for SearchKeywords instancevalues
(Map<String, List<SearchKeyword>> values) Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.
-
Constructor Details
-
SearchKeywordsBuilder
public SearchKeywordsBuilder()
-
-
Method Details
-
values
Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getValues
Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.
- 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
-