Class SearchExactValueBuilder
java.lang.Object
com.commercetools.api.models.search.SearchExactValueBuilder
- All Implemented Interfaces:
Builder<SearchExactValue>
SearchExactValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchExactValue searchExactValue = SearchExactValue.builder()
.field("{field}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionset the value to the boostbuild()
builds SearchExactValue with checking for non-null required valuesbuilds SearchExactValue without checking for non-null required valuescaseInsensitive
(Boolean caseInsensitive) set the value to the caseInsensitiveset 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}value of caseInsensitive}getField()
value of field}Possible values for thefieldType
property on query expressions indicating the data type of thefield
.String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47.getValue()
value of value}value of values}String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47.static SearchExactValueBuilder
of()
factory method for an instance of SearchExactValueBuilderstatic SearchExactValueBuilder
of
(SearchExactValue template) create builder for SearchExactValue instanceplusValues
(Object... values) add values to the valuesset the value to the valueset values to the valuesset value to the values
-
Constructor Details
-
SearchExactValueBuilder
public SearchExactValueBuilder()
-
-
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
-
value
set the value to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
values
set values to the values- Parameters:
values
- value to be set- Returns:
- Builder
-
values
set value to the values- Parameters:
values
- value to be set- Returns:
- Builder
-
plusValues
add values to the values- Parameters:
values
- value to be set- Returns:
- Builder
-
language
String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example:
en
,en-US
,zh-Hans-SG
.- Parameters:
language
- value to be set- Returns:
- Builder
-
caseInsensitive
set the value to the caseInsensitive- Parameters:
caseInsensitive
- 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
-
getValue
value of value}- Returns:
- value
-
getValues
value of values}- Returns:
- values
-
getLanguage
String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example:
en
,en-US
,zh-Hans-SG
.- Returns:
- language
-
getCaseInsensitive
value of caseInsensitive}- Returns:
- caseInsensitive
-
build
builds SearchExactValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchExactValue>
- Returns:
- SearchExactValue
-
buildUnchecked
builds SearchExactValue without checking for non-null required values- Returns:
- SearchExactValue
-
of
factory method for an instance of SearchExactValueBuilder- Returns:
- builder
-
of
create builder for SearchExactValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-