Class OrderSearchQueryExpressionValueBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSearchQueryExpressionValueBuilder
- All Implemented Interfaces:
Builder<OrderSearchQueryExpressionValue>
public class OrderSearchQueryExpressionValueBuilder
extends Object
implements Builder<OrderSearchQueryExpressionValue>
OrderSearchQueryExpressionValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSearchQueryExpressionValue orderSearchQueryExpressionValue = OrderSearchQueryExpressionValue.builder()
.field("{field}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionset the value to the boostbuild()builds OrderSearchQueryExpressionValue with checking for non-null required valuesbuilds OrderSearchQueryExpressionValue without checking for non-null required valuescustomType(OrderSearchCustomType customType) Possible values for thecustomTypeproperty on simple expressions indicating the data type of thefield.set the value to the fieldgetBoost()value of boost}Possible values for thecustomTypeproperty on simple expressions indicating the data type of thefield.getField()value of field}of()factory method for an instance of OrderSearchQueryExpressionValueBuilderof(OrderSearchQueryExpressionValue template) create builder for OrderSearchQueryExpressionValue instance
-
Constructor Details
-
OrderSearchQueryExpressionValueBuilder
public OrderSearchQueryExpressionValueBuilder()
-
-
Method Details
-
field
set the value to the field- Parameters:
field- value to be set- Returns:
- Builder
-
boost
set the value to the boost- Parameters:
boost- value to be set- Returns:
- Builder
-
customType
public OrderSearchQueryExpressionValueBuilder customType(@Nullable OrderSearchCustomType customType) Possible values for the
customTypeproperty on simple expressions indicating the data type of thefield.- Parameters:
customType- value to be set- Returns:
- Builder
-
getField
value of field}- Returns:
- field
-
getBoost
value of boost}- Returns:
- boost
-
getCustomType
Possible values for the
customTypeproperty on simple expressions indicating the data type of thefield.- Returns:
- customType
-
build
builds OrderSearchQueryExpressionValue with checking for non-null required values- Specified by:
buildin interfaceBuilder<OrderSearchQueryExpressionValue>- Returns:
- OrderSearchQueryExpressionValue
-
buildUnchecked
builds OrderSearchQueryExpressionValue without checking for non-null required values- Returns:
- OrderSearchQueryExpressionValue
-
of
factory method for an instance of OrderSearchQueryExpressionValueBuilder- Returns:
- builder
-
of
create builder for OrderSearchQueryExpressionValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-