Class SearchTimeRangeExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchTimeRangeExpressionBuilder
- All Implemented Interfaces:
Builder<SearchTimeRangeExpression>
public class SearchTimeRangeExpressionBuilder
extends Object
implements Builder<SearchTimeRangeExpression>
SearchTimeRangeExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchTimeRangeExpression searchTimeRangeExpression = SearchTimeRangeExpression.builder()
.range(rangeBuilder -> rangeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchTimeRangeExpression with checking for non-null required valuesbuilds SearchTimeRangeExpression without checking for non-null required valuesgetRange()
value of range}of()
factory method for an instance of SearchTimeRangeExpressionBuilderof
(SearchTimeRangeExpression template) create builder for SearchTimeRangeExpression instancerange
(SearchTimeRangeValue 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
-
SearchTimeRangeExpressionBuilder
public SearchTimeRangeExpressionBuilder()
-
-
Method Details
-
range
public SearchTimeRangeExpressionBuilder range(Function<SearchTimeRangeValueBuilder, SearchTimeRangeValueBuilder> builder) set the value to the range using the builder function- Parameters:
builder
- function to build the range value- Returns:
- Builder
-
withRange
public SearchTimeRangeExpressionBuilder withRange(Function<SearchTimeRangeValueBuilder, SearchTimeRangeValue> 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 SearchTimeRangeExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchTimeRangeExpression>
- Returns:
- SearchTimeRangeExpression
-
buildUnchecked
builds SearchTimeRangeExpression without checking for non-null required values- Returns:
- SearchTimeRangeExpression
-
of
factory method for an instance of SearchTimeRangeExpressionBuilder- Returns:
- builder
-
of
create builder for SearchTimeRangeExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-