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
-
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 thefieldType
property on query expressions indicating the data type of thefield
.getBoost()
value of boost}getField()
value of field}Possible values for thefieldType
property on query 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
fieldType
property on query 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
fieldType
property on query expressions indicating the data type of thefield
.- Returns:
- fieldType
-
build
builds SearchQueryExpressionValue with checking for non-null required values- Specified by:
build
in 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
-