Class OrderSearchWildCardExpressionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSearchWildCardExpressionBuilder
- All Implemented Interfaces:
Builder<OrderSearchWildCardExpression>
public class OrderSearchWildCardExpressionBuilder
extends Object
implements Builder<OrderSearchWildCardExpression>
OrderSearchWildCardExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSearchWildCardExpression orderSearchWildCardExpression = OrderSearchWildCardExpression.builder()
.wildcard(wildcardBuilder -> wildcardBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSearchWildCardExpression with checking for non-null required valuesbuilds OrderSearchWildCardExpression without checking for non-null required valuesvalue of wildcard}of()
factory method for an instance of OrderSearchWildCardExpressionBuilderof
(OrderSearchWildCardExpression template) create builder for OrderSearchWildCardExpression instancewildcard
(OrderSearchStringValue wildcard) set the value to the wildcardset the value to the wildcard using the builder functionset the value to the wildcard using the builder function
-
Constructor Details
-
OrderSearchWildCardExpressionBuilder
public OrderSearchWildCardExpressionBuilder()
-
-
Method Details
-
wildcard
public OrderSearchWildCardExpressionBuilder wildcard(Function<OrderSearchStringValueBuilder, OrderSearchStringValueBuilder> builder) set the value to the wildcard using the builder function- Parameters:
builder
- function to build the wildcard value- Returns:
- Builder
-
withWildcard
public OrderSearchWildCardExpressionBuilder withWildcard(Function<OrderSearchStringValueBuilder, OrderSearchStringValue> builder) set the value to the wildcard using the builder function- Parameters:
builder
- function to build the wildcard value- Returns:
- Builder
-
wildcard
set the value to the wildcard- Parameters:
wildcard
- value to be set- Returns:
- Builder
-
getWildcard
value of wildcard}- Returns:
- wildcard
-
build
builds OrderSearchWildCardExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSearchWildCardExpression>
- Returns:
- OrderSearchWildCardExpression
-
buildUnchecked
builds OrderSearchWildCardExpression without checking for non-null required values- Returns:
- OrderSearchWildCardExpression
-
of
factory method for an instance of OrderSearchWildCardExpressionBuilder- Returns:
- builder
-
of
create builder for OrderSearchWildCardExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-