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