Class OrderSearchSortingBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSearchSortingBuilder
- All Implemented Interfaces:
Builder<OrderSearchSorting>
OrderSearchSortingBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSearchSorting orderSearchSorting = OrderSearchSorting.builder()
.field("{field}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSearchSorting with checking for non-null required valuesbuilds OrderSearchSorting without checking for non-null required valuesset the value to the fieldfilter
(OrderSearchQueryExpression filter) set the value to the filterset the value to the filter using the builder functiongetField()
value of field}value of filter}value of language}getMode()
value of mode}getOrder()
value of order}set the value to the languagemode
(OrderSearchSortMode mode) set the value to the modestatic OrderSearchSortingBuilder
of()
factory method for an instance of OrderSearchSortingBuilderstatic OrderSearchSortingBuilder
of
(OrderSearchSorting template) create builder for OrderSearchSorting instanceorder
(OrderSearchSortOrder order) set the value to the orderset the value to the filter using the builder function
-
Constructor Details
-
OrderSearchSortingBuilder
public OrderSearchSortingBuilder()
-
-
Method Details
-
field
set the value to the field- Parameters:
field
- value to be set- Returns:
- Builder
-
language
set the value to the language- Parameters:
language
- value to be set- Returns:
- Builder
-
order
set the value to the order- Parameters:
order
- value to be set- Returns:
- Builder
-
mode
set the value to the mode- Parameters:
mode
- value to be set- Returns:
- Builder
-
filter
public OrderSearchSortingBuilder filter(Function<OrderSearchQueryExpressionBuilder, OrderSearchQueryExpressionBuilder> builder) set the value to the filter using the builder function- Parameters:
builder
- function to build the filter value- Returns:
- Builder
-
withFilter
public OrderSearchSortingBuilder withFilter(Function<OrderSearchQueryExpressionBuilder, OrderSearchQueryExpression> builder) set the value to the filter using the builder function- Parameters:
builder
- function to build the filter value- Returns:
- Builder
-
filter
set the value to the filter- Parameters:
filter
- value to be set- Returns:
- Builder
-
getField
value of field}- Returns:
- field
-
getLanguage
value of language}- Returns:
- language
-
getOrder
value of order}- Returns:
- order
-
getMode
value of mode}- Returns:
- mode
-
getFilter
value of filter}- Returns:
- filter
-
build
builds OrderSearchSorting with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSearchSorting>
- Returns:
- OrderSearchSorting
-
buildUnchecked
builds OrderSearchSorting without checking for non-null required values- Returns:
- OrderSearchSorting
-
of
factory method for an instance of OrderSearchSortingBuilder- Returns:
- builder
-
of
create builder for OrderSearchSorting instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-