Class ProductSearchDateTimeRangeExpressionBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchDateTimeRangeExpressionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductSearchDateTimeRangeExpression>
public class ProductSearchDateTimeRangeExpressionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<ProductSearchDateTimeRangeExpression>
ProductSearchDateTimeRangeExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchDateTimeRangeExpression productSearchDateTimeRangeExpression = ProductSearchDateTimeRangeExpression.builder()
.range(rangeBuilder -> rangeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchDateTimeRangeExpression with checking for non-null required valuesbuilds ProductSearchDateTimeRangeExpression without checking for non-null required valuesgetRange()
value of range}of()
factory method for an instance of ProductSearchDateTimeRangeExpressionBuilderof
(ProductSearchDateTimeRangeExpression template) create builder for ProductSearchDateTimeRangeExpression instanceset the value to the rangerange
(Function<ProductSearchDateTimeRangeValueBuilder, ProductSearchDateTimeRangeValueBuilder> builder) set the value to the range using the builder functionset the value to the range using the builder function
-
Constructor Details
-
ProductSearchDateTimeRangeExpressionBuilder
public ProductSearchDateTimeRangeExpressionBuilder()
-
-
Method Details
-
range
public ProductSearchDateTimeRangeExpressionBuilder range(Function<ProductSearchDateTimeRangeValueBuilder, ProductSearchDateTimeRangeValueBuilder> builder) set the value to the range using the builder function- Parameters:
builder
- function to build the range value- Returns:
- Builder
-
withRange
public ProductSearchDateTimeRangeExpressionBuilder withRange(Function<ProductSearchDateTimeRangeValueBuilder, ProductSearchDateTimeRangeValue> builder) set the value to the range using the builder function- Parameters:
builder
- function to build the range value- Returns:
- Builder
-
range
set the value to the range- Parameters:
range
- value to be set- Returns:
- Builder
-
getRange
value of range}- Returns:
- range
-
build
builds ProductSearchDateTimeRangeExpression with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<ProductSearchDateTimeRangeExpression>
- Returns:
- ProductSearchDateTimeRangeExpression
-
buildUnchecked
builds ProductSearchDateTimeRangeExpression without checking for non-null required values- Returns:
- ProductSearchDateTimeRangeExpression
-
of
factory method for an instance of ProductSearchDateTimeRangeExpressionBuilder- Returns:
- builder
-
of
public static ProductSearchDateTimeRangeExpressionBuilder of(ProductSearchDateTimeRangeExpression template) create builder for ProductSearchDateTimeRangeExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-