Class SearchExactExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchExactExpressionBuilder
- All Implemented Interfaces:
Builder<SearchExactExpression>
SearchExactExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchExactExpression searchExactExpression = SearchExactExpression.builder()
.exact(exactBuilder -> exactBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchExactExpression with checking for non-null required valuesbuilds SearchExactExpression without checking for non-null required valuesexact
(SearchAnyValue exact) set the value to the exactset the value to the exact using the builder functiongetExact()
value of exact}static SearchExactExpressionBuilder
of()
factory method for an instance of SearchExactExpressionBuilderstatic SearchExactExpressionBuilder
of
(SearchExactExpression template) create builder for SearchExactExpression instancewithExact
(Function<SearchAnyValueBuilder, SearchAnyValue> builder) set the value to the exact using the builder function
-
Constructor Details
-
SearchExactExpressionBuilder
public SearchExactExpressionBuilder()
-
-
Method Details
-
exact
public SearchExactExpressionBuilder exact(Function<SearchAnyValueBuilder, SearchAnyValueBuilder> builder) set the value to the exact using the builder function- Parameters:
builder
- function to build the exact value- Returns:
- Builder
-
withExact
public SearchExactExpressionBuilder withExact(Function<SearchAnyValueBuilder, SearchAnyValue> builder) set the value to the exact using the builder function- Parameters:
builder
- function to build the exact value- Returns:
- Builder
-
exact
set the value to the exact- Parameters:
exact
- value to be set- Returns:
- Builder
-
getExact
value of exact}- Returns:
- exact
-
build
builds SearchExactExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchExactExpression>
- Returns:
- SearchExactExpression
-
buildUnchecked
builds SearchExactExpression without checking for non-null required values- Returns:
- SearchExactExpression
-
of
factory method for an instance of SearchExactExpressionBuilder- Returns:
- builder
-
of
create builder for SearchExactExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-