Class OrderSearchPrefixExpressionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSearchPrefixExpressionBuilder
- All Implemented Interfaces:
Builder<OrderSearchPrefixExpression>
public class OrderSearchPrefixExpressionBuilder
extends Object
implements Builder<OrderSearchPrefixExpression>
OrderSearchPrefixExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSearchPrefixExpression orderSearchPrefixExpression = OrderSearchPrefixExpression.builder()
.prefix(prefixBuilder -> prefixBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSearchPrefixExpression with checking for non-null required valuesbuilds OrderSearchPrefixExpression without checking for non-null required valuesvalue of prefix}of()
factory method for an instance of OrderSearchPrefixExpressionBuilderof
(OrderSearchPrefixExpression template) create builder for OrderSearchPrefixExpression instanceprefix
(OrderSearchStringValue prefix) set the value to the prefixset the value to the prefix using the builder functionset the value to the prefix using the builder function
-
Constructor Details
-
OrderSearchPrefixExpressionBuilder
public OrderSearchPrefixExpressionBuilder()
-
-
Method Details
-
prefix
public OrderSearchPrefixExpressionBuilder prefix(Function<OrderSearchStringValueBuilder, OrderSearchStringValueBuilder> builder) set the value to the prefix using the builder function- Parameters:
builder
- function to build the prefix value- Returns:
- Builder
-
withPrefix
public OrderSearchPrefixExpressionBuilder withPrefix(Function<OrderSearchStringValueBuilder, OrderSearchStringValue> builder) set the value to the prefix using the builder function- Parameters:
builder
- function to build the prefix value- Returns:
- Builder
-
prefix
set the value to the prefix- Parameters:
prefix
- value to be set- Returns:
- Builder
-
getPrefix
value of prefix}- Returns:
- prefix
-
build
builds OrderSearchPrefixExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSearchPrefixExpression>
- Returns:
- OrderSearchPrefixExpression
-
buildUnchecked
builds OrderSearchPrefixExpression without checking for non-null required values- Returns:
- OrderSearchPrefixExpression
-
of
factory method for an instance of OrderSearchPrefixExpressionBuilder- Returns:
- builder
-
of
create builder for OrderSearchPrefixExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-