Class SearchExistsExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchExistsExpressionBuilder
- All Implemented Interfaces:
Builder<SearchExistsExpression>
public class SearchExistsExpressionBuilder
extends Object
implements Builder<SearchExistsExpression>
SearchExistsExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchExistsExpression searchExistsExpression = SearchExistsExpression.builder()
.exists(existsBuilder -> existsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchExistsExpression with checking for non-null required valuesbuilds SearchExistsExpression without checking for non-null required valuesexists
(SearchExistsValue exists) set the value to the existsset the value to the exists using the builder functionvalue of exists}of()
factory method for an instance of SearchExistsExpressionBuilderof
(SearchExistsExpression template) create builder for SearchExistsExpression instanceset the value to the exists using the builder function
-
Constructor Details
-
SearchExistsExpressionBuilder
public SearchExistsExpressionBuilder()
-
-
Method Details
-
exists
public SearchExistsExpressionBuilder exists(Function<SearchExistsValueBuilder, SearchExistsValueBuilder> builder) set the value to the exists using the builder function- Parameters:
builder
- function to build the exists value- Returns:
- Builder
-
withExists
public SearchExistsExpressionBuilder withExists(Function<SearchExistsValueBuilder, SearchExistsValue> builder) set the value to the exists using the builder function- Parameters:
builder
- function to build the exists value- Returns:
- Builder
-
exists
set the value to the exists- Parameters:
exists
- value to be set- Returns:
- Builder
-
getExists
value of exists}- Returns:
- exists
-
build
builds SearchExistsExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchExistsExpression>
- Returns:
- SearchExistsExpression
-
buildUnchecked
builds SearchExistsExpression without checking for non-null required values- Returns:
- SearchExistsExpression
-
of
factory method for an instance of SearchExistsExpressionBuilder- Returns:
- builder
-
of
create builder for SearchExistsExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-