Class SearchDateTimeRangeValueBuilder
java.lang.Object
com.commercetools.api.models.search.SearchDateTimeRangeValueBuilder
- All Implemented Interfaces:
Builder<SearchDateTimeRangeValue>
public class SearchDateTimeRangeValueBuilder
extends Object
implements Builder<SearchDateTimeRangeValue>
SearchDateTimeRangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchDateTimeRangeValue searchDateTimeRangeValue = SearchDateTimeRangeValue.builder()
.field("{field}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionset the value to the boostbuild()
builds SearchDateTimeRangeValue with checking for non-null required valuesbuilds SearchDateTimeRangeValue 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}gt
(ZonedDateTime gt) set the value to the gtgte
(ZonedDateTime gte) set the value to the gtelt
(ZonedDateTime lt) set the value to the ltlte
(ZonedDateTime lte) set the value to the lteof()
factory method for an instance of SearchDateTimeRangeValueBuilderof
(SearchDateTimeRangeValue template) create builder for SearchDateTimeRangeValue instance
-
Constructor Details
-
SearchDateTimeRangeValueBuilder
public SearchDateTimeRangeValueBuilder()
-
-
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 SearchDateTimeRangeValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchDateTimeRangeValue>
- Returns:
- SearchDateTimeRangeValue
-
buildUnchecked
builds SearchDateTimeRangeValue without checking for non-null required values- Returns:
- SearchDateTimeRangeValue
-
of
factory method for an instance of SearchDateTimeRangeValueBuilder- Returns:
- builder
-
of
create builder for SearchDateTimeRangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-