Class SearchPrefixExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchPrefixExpressionBuilder
- All Implemented Interfaces:
Builder<SearchPrefixExpression>
public class SearchPrefixExpressionBuilder
extends Object
implements Builder<SearchPrefixExpression>
SearchPrefixExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchPrefixExpression searchPrefixExpression = SearchPrefixExpression.builder()
.prefix(prefixBuilder -> prefixBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchPrefixExpression with checking for non-null required valuesbuilds SearchPrefixExpression without checking for non-null required valuesvalue of prefix}of()
factory method for an instance of SearchPrefixExpressionBuilderof
(SearchPrefixExpression template) create builder for SearchPrefixExpression instanceprefix
(SearchAnyValue prefix) set the value to the prefixset the value to the prefix using the builder functionset the value to the prefix using the builder function
-
Constructor Details
-
SearchPrefixExpressionBuilder
public SearchPrefixExpressionBuilder()
-
-
Method Details
-
prefix
public SearchPrefixExpressionBuilder prefix(Function<SearchAnyValueBuilder, SearchAnyValueBuilder> builder) set the value to the prefix using the builder function- Parameters:
builder
- function to build the prefix value- Returns:
- Builder
-
withPrefix
public SearchPrefixExpressionBuilder withPrefix(Function<SearchAnyValueBuilder, SearchAnyValue> builder) set the value to the prefix using the builder function- Parameters:
builder
- function to build the prefix value- Returns:
- Builder
-
prefix
set the value to the prefix- Parameters:
prefix
- value to be set- Returns:
- Builder
-
getPrefix
value of prefix}- Returns:
- prefix
-
build
builds SearchPrefixExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchPrefixExpression>
- Returns:
- SearchPrefixExpression
-
buildUnchecked
builds SearchPrefixExpression without checking for non-null required values- Returns:
- SearchPrefixExpression
-
of
factory method for an instance of SearchPrefixExpressionBuilder- Returns:
- builder
-
of
create builder for SearchPrefixExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-