Class OrderSearchOrExpressionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSearchOrExpressionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderSearchOrExpression>
public class OrderSearchOrExpressionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<OrderSearchOrExpression>
OrderSearchOrExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSearchOrExpression orderSearchOrExpression = OrderSearchOrExpression.builder()
.plusOr(orBuilder -> orBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOr
(Function<OrderSearchQueryBuilder, OrderSearchQuery> builder) add the value to the or using the builder functionbuild()
builds OrderSearchOrExpression with checking for non-null required valuesbuilds OrderSearchOrExpression without checking for non-null required valuesgetOr()
value of or}of()
factory method for an instance of OrderSearchOrExpressionBuilderof
(OrderSearchOrExpression template) create builder for OrderSearchOrExpression instanceor
(OrderSearchQuery... or) set values to the oror
(List<OrderSearchQuery> or) set value to the orplusOr
(OrderSearchQuery... or) add values to the oradd the value to the or using the builder functionsetOr
(Function<OrderSearchQueryBuilder, OrderSearchQuery> builder) set the value to the or using the builder functionset the value to the or using the builder function
-
Constructor Details
-
OrderSearchOrExpressionBuilder
public OrderSearchOrExpressionBuilder()
-
-
Method Details
-
or
set values to the or- Parameters:
or
- value to be set- Returns:
- Builder
-
or
set value to the or- Parameters:
or
- value to be set- Returns:
- Builder
-
plusOr
add values to the or- Parameters:
or
- value to be set- Returns:
- Builder
-
plusOr
public OrderSearchOrExpressionBuilder plusOr(Function<OrderSearchQueryBuilder, OrderSearchQueryBuilder> builder) add the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
withOr
public OrderSearchOrExpressionBuilder withOr(Function<OrderSearchQueryBuilder, OrderSearchQueryBuilder> builder) set the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
addOr
public OrderSearchOrExpressionBuilder addOr(Function<OrderSearchQueryBuilder, OrderSearchQuery> builder) add the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
setOr
public OrderSearchOrExpressionBuilder setOr(Function<OrderSearchQueryBuilder, OrderSearchQuery> builder) set the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
getOr
value of or}- Returns:
- or
-
build
builds OrderSearchOrExpression with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<OrderSearchOrExpression>
- Returns:
- OrderSearchOrExpression
-
buildUnchecked
builds OrderSearchOrExpression without checking for non-null required values- Returns:
- OrderSearchOrExpression
-
of
factory method for an instance of OrderSearchOrExpressionBuilder- Returns:
- builder
-
of
create builder for OrderSearchOrExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-