Class SearchFuzzyExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchFuzzyExpressionBuilder
- All Implemented Interfaces:
Builder<SearchFuzzyExpression>
SearchFuzzyExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchFuzzyExpression searchFuzzyExpression = SearchFuzzyExpression.builder()
.fuzzy(fuzzyBuilder -> fuzzyBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds SearchFuzzyExpression with checking for non-null required valuesbuilds SearchFuzzyExpression without checking for non-null required valuesfuzzy(SearchFuzzyValue fuzzy) set the value to the fuzzyset the value to the fuzzy using the builder functiongetFuzzy()value of fuzzy}static SearchFuzzyExpressionBuilderof()factory method for an instance of SearchFuzzyExpressionBuilderstatic SearchFuzzyExpressionBuilderof(SearchFuzzyExpression template) create builder for SearchFuzzyExpression instanceset the value to the fuzzy using the builder function
-
Constructor Details
-
SearchFuzzyExpressionBuilder
public SearchFuzzyExpressionBuilder()
-
-
Method Details
-
fuzzy
public SearchFuzzyExpressionBuilder fuzzy(Function<SearchFuzzyValueBuilder, SearchFuzzyValueBuilder> builder) set the value to the fuzzy using the builder function- Parameters:
builder- function to build the fuzzy value- Returns:
- Builder
-
withFuzzy
public SearchFuzzyExpressionBuilder withFuzzy(Function<SearchFuzzyValueBuilder, SearchFuzzyValue> builder) set the value to the fuzzy using the builder function- Parameters:
builder- function to build the fuzzy value- Returns:
- Builder
-
fuzzy
set the value to the fuzzy- Parameters:
fuzzy- value to be set- Returns:
- Builder
-
getFuzzy
value of fuzzy}- Returns:
- fuzzy
-
build
builds SearchFuzzyExpression with checking for non-null required values- Specified by:
buildin interfaceBuilder<SearchFuzzyExpression>- Returns:
- SearchFuzzyExpression
-
buildUnchecked
builds SearchFuzzyExpression without checking for non-null required values- Returns:
- SearchFuzzyExpression
-
of
factory method for an instance of SearchFuzzyExpressionBuilder- Returns:
- builder
-
of
create builder for SearchFuzzyExpression instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-