Class SearchDateRangeValueBuilder
java.lang.Object
com.commercetools.api.models.search.SearchDateRangeValueBuilder
- All Implemented Interfaces:
Builder<SearchDateRangeValue>
SearchDateRangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchDateRangeValue searchDateRangeValue = SearchDateRangeValue.builder()
.field("{field}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionset the value to the boostbuild()
builds SearchDateRangeValue with checking for non-null required valuesbuilds SearchDateRangeValue 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
.getGt()
value of gt}getGte()
value of gte}getLt()
value of lt}getLte()
value of lte}set the value to the gtset the value to the gteset the value to the ltset the value to the ltestatic SearchDateRangeValueBuilder
of()
factory method for an instance of SearchDateRangeValueBuilderstatic SearchDateRangeValueBuilder
of
(SearchDateRangeValue template) create builder for SearchDateRangeValue instance
-
Constructor Details
-
SearchDateRangeValueBuilder
public SearchDateRangeValueBuilder()
-
-
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
-
gte
set the value to the gte- Parameters:
gte
- value to be set- Returns:
- Builder
-
gt
set the value to the gt- Parameters:
gt
- value to be set- Returns:
- Builder
-
lte
set the value to the lte- Parameters:
lte
- value to be set- Returns:
- Builder
-
lt
set the value to the lt- Parameters:
lt
- 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
-
getGte
value of gte}- Returns:
- gte
-
getGt
value of gt}- Returns:
- gt
-
getLte
value of lte}- Returns:
- lte
-
getLt
value of lt}- Returns:
- lt
-
build
builds SearchDateRangeValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchDateRangeValue>
- Returns:
- SearchDateRangeValue
-
buildUnchecked
builds SearchDateRangeValue without checking for non-null required values- Returns:
- SearchDateRangeValue
-
of
factory method for an instance of SearchDateRangeValueBuilder- Returns:
- builder
-
of
create builder for SearchDateRangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-