Class SearchQueryExpressionValueBuilder
java.lang.Object
com.commercetools.api.models.search.SearchQueryExpressionValueBuilder
- All Implemented Interfaces:
Builder<SearchQueryExpressionValue>
public class SearchQueryExpressionValueBuilder
extends Object
implements Builder<SearchQueryExpressionValue>
SearchQueryExpressionValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchQueryExpressionValue searchQueryExpressionValue = SearchQueryExpressionValue.builder()
.field("{field}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionset the value to the boostbuild()builds SearchQueryExpressionValue with checking for non-null required valuesbuilds SearchQueryExpressionValue without checking for non-null required valuesset the value to the fieldfieldType(SearchFieldType fieldType) Possible values for thefieldTypeproperty on simple expressions indicating the data type of thefield.getBoost()value of boost}getField()value of field}Possible values for thefieldTypeproperty on simple expressions indicating the data type of thefield.of()factory method for an instance of SearchQueryExpressionValueBuilderof(SearchQueryExpressionValue template) create builder for SearchQueryExpressionValue instance
-
Constructor Details
-
SearchQueryExpressionValueBuilder
public SearchQueryExpressionValueBuilder()
-
-
Method Details
-
field
set the value to the field- Parameters:
field- value to be set- Returns:
- Builder
-
boost
set the value to the boost- Parameters:
boost- value to be set- Returns:
- Builder
-
fieldType
Possible values for the
fieldTypeproperty on simple expressions indicating the data type of thefield.- Parameters:
fieldType- value to be set- Returns:
- Builder
-
getField
value of field}- Returns:
- field
-
getBoost
value of boost}- Returns:
- boost
-
getFieldType
Possible values for the
fieldTypeproperty on simple expressions indicating the data type of thefield.- Returns:
- fieldType
-
build
builds SearchQueryExpressionValue with checking for non-null required values- Specified by:
buildin interfaceBuilder<SearchQueryExpressionValue>- Returns:
- SearchQueryExpressionValue
-
buildUnchecked
builds SearchQueryExpressionValue without checking for non-null required values- Returns:
- SearchQueryExpressionValue
-
of
factory method for an instance of SearchQueryExpressionValueBuilder- Returns:
- builder
-
of
create builder for SearchQueryExpressionValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-