Class SearchDateTimeRangeExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchDateTimeRangeExpressionBuilder
- All Implemented Interfaces:
Builder<SearchDateTimeRangeExpression>
public class SearchDateTimeRangeExpressionBuilder
extends Object
implements Builder<SearchDateTimeRangeExpression>
SearchDateTimeRangeExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchDateTimeRangeExpression searchDateTimeRangeExpression = SearchDateTimeRangeExpression.builder()
.range(rangeBuilder -> rangeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchDateTimeRangeExpression with checking for non-null required valuesbuilds SearchDateTimeRangeExpression without checking for non-null required valuesgetRange()
value of range}of()
factory method for an instance of SearchDateTimeRangeExpressionBuilderof
(SearchDateTimeRangeExpression template) create builder for SearchDateTimeRangeExpression instancerange
(SearchDateTimeRangeValue range) set the value to the rangeset the value to the range using the builder functionset the value to the range using the builder function
-
Constructor Details
-
SearchDateTimeRangeExpressionBuilder
public SearchDateTimeRangeExpressionBuilder()
-
-
Method Details
-
range
public SearchDateTimeRangeExpressionBuilder range(Function<SearchDateTimeRangeValueBuilder, SearchDateTimeRangeValueBuilder> builder) set the value to the range using the builder function- Parameters:
builder
- function to build the range value- Returns:
- Builder
-
withRange
public SearchDateTimeRangeExpressionBuilder withRange(Function<SearchDateTimeRangeValueBuilder, SearchDateTimeRangeValue> builder) set the value to the range using the builder function- Parameters:
builder
- function to build the range value- Returns:
- Builder
-
range
set the value to the range- Parameters:
range
- value to be set- Returns:
- Builder
-
getRange
value of range}- Returns:
- range
-
build
builds SearchDateTimeRangeExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchDateTimeRangeExpression>
- Returns:
- SearchDateTimeRangeExpression
-
buildUnchecked
builds SearchDateTimeRangeExpression without checking for non-null required values- Returns:
- SearchDateTimeRangeExpression
-
of
factory method for an instance of SearchDateTimeRangeExpressionBuilder- Returns:
- builder
-
of
create builder for SearchDateTimeRangeExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-