Class SearchKeywordBuilder
java.lang.Object
com.commercetools.importapi.models.products.SearchKeywordBuilder
- All Implemented Interfaces:
Builder<SearchKeyword>
SearchKeywordBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchKeyword searchKeyword = SearchKeyword.builder()
.text("{text}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchKeyword with checking for non-null required valuesbuilds SearchKeyword without checking for non-null required valuesThe tokenizer defines the tokens that are used to match against the Suggest Query input.getText()
value of text}static SearchKeywordBuilder
of()
factory method for an instance of SearchKeywordBuilderstatic SearchKeywordBuilder
of
(SearchKeyword template) create builder for SearchKeyword instancesuggestTokenizer
(SuggestTokenizer suggestTokenizer) The tokenizer defines the tokens that are used to match against the Suggest Query input.suggestTokenizer
(Function<SuggestTokenizerBuilder, Builder<? extends SuggestTokenizer>> builder) The tokenizer defines the tokens that are used to match against the Suggest Query input.set the value to the text
-
Constructor Details
-
SearchKeywordBuilder
public SearchKeywordBuilder()
-
-
Method Details
-
text
set the value to the text- Parameters:
text
- value to be set- Returns:
- Builder
-
suggestTokenizer
The tokenizer defines the tokens that are used to match against the Suggest Query input.
- Parameters:
suggestTokenizer
- value to be set- Returns:
- Builder
-
suggestTokenizer
public SearchKeywordBuilder suggestTokenizer(Function<SuggestTokenizerBuilder, Builder<? extends SuggestTokenizer>> builder) The tokenizer defines the tokens that are used to match against the Suggest Query input.
- Parameters:
builder
- function to build the suggestTokenizer value- Returns:
- Builder
-
getText
value of text}- Returns:
- text
-
getSuggestTokenizer
The tokenizer defines the tokens that are used to match against the Suggest Query input.
- Returns:
- suggestTokenizer
-
build
builds SearchKeyword with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchKeyword>
- Returns:
- SearchKeyword
-
buildUnchecked
builds SearchKeyword without checking for non-null required values- Returns:
- SearchKeyword
-
of
factory method for an instance of SearchKeywordBuilder- Returns:
- builder
-
of
create builder for SearchKeyword instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-