Class SearchTimeRangeValueBuilder
java.lang.Object
com.commercetools.api.models.search.SearchTimeRangeValueBuilder
- All Implemented Interfaces:
Builder<SearchTimeRangeValue>
SearchTimeRangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchTimeRangeValue searchTimeRangeValue = SearchTimeRangeValue.builder()
.field("{field}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionset the value to the boostbuild()
builds SearchTimeRangeValue with checking for non-null required valuesbuilds SearchTimeRangeValue 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 SearchTimeRangeValueBuilder
of()
factory method for an instance of SearchTimeRangeValueBuilderstatic SearchTimeRangeValueBuilder
of
(SearchTimeRangeValue template) create builder for SearchTimeRangeValue instance
-
Constructor Details
-
SearchTimeRangeValueBuilder
public SearchTimeRangeValueBuilder()
-
-
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 SearchTimeRangeValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchTimeRangeValue>
- Returns:
- SearchTimeRangeValue
-
buildUnchecked
builds SearchTimeRangeValue without checking for non-null required values- Returns:
- SearchTimeRangeValue
-
of
factory method for an instance of SearchTimeRangeValueBuilder- Returns:
- builder
-
of
create builder for SearchTimeRangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-