Class ProductSearchOrExpressionBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchOrExpressionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductSearchOrExpression>
public class ProductSearchOrExpressionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<ProductSearchOrExpression>
ProductSearchOrExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchOrExpression productSearchOrExpression = ProductSearchOrExpression.builder()
.plusOr(orBuilder -> orBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd the value to the or using the builder functionbuild()
builds ProductSearchOrExpression with checking for non-null required valuesbuilds ProductSearchOrExpression without checking for non-null required valuesgetOr()
value of or}of()
factory method for an instance of ProductSearchOrExpressionBuilderof
(ProductSearchOrExpression template) create builder for ProductSearchOrExpression instanceor
(ProductSearchQuery... or) set values to the oror
(List<ProductSearchQuery> or) set value to the orplusOr
(ProductSearchQuery... or) add values to the oradd the value to the or using the builder functionset the value to the or using the builder functionset the value to the or using the builder function
-
Constructor Details
-
ProductSearchOrExpressionBuilder
public ProductSearchOrExpressionBuilder()
-
-
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 ProductSearchOrExpressionBuilder plusOr(Function<ProductSearchQueryBuilder, ProductSearchQueryBuilder> builder) add the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
withOr
public ProductSearchOrExpressionBuilder withOr(Function<ProductSearchQueryBuilder, ProductSearchQueryBuilder> builder) set the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
addOr
public ProductSearchOrExpressionBuilder addOr(Function<ProductSearchQueryBuilder, ProductSearchQuery> builder) add the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
setOr
public ProductSearchOrExpressionBuilder setOr(Function<ProductSearchQueryBuilder, ProductSearchQuery> 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 ProductSearchOrExpression with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<ProductSearchOrExpression>
- Returns:
- ProductSearchOrExpression
-
buildUnchecked
builds ProductSearchOrExpression without checking for non-null required values- Returns:
- ProductSearchOrExpression
-
of
factory method for an instance of ProductSearchOrExpressionBuilder- Returns:
- builder
-
of
create builder for ProductSearchOrExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-