Class ProductDiscountSetValidUntilActionBuilder
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountSetValidUntilActionBuilder
- All Implemented Interfaces:
Builder<ProductDiscountSetValidUntilAction>
public class ProductDiscountSetValidUntilActionBuilder
extends Object
implements Builder<ProductDiscountSetValidUntilAction>
ProductDiscountSetValidUntilActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountSetValidUntilAction productDiscountSetValidUntilAction = ProductDiscountSetValidUntilAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountSetValidUntilAction with checking for non-null required valuesbuilds ProductDiscountSetValidUntilAction without checking for non-null required valuesValue to set.of()
factory method for an instance of ProductDiscountSetValidUntilActionBuilderof
(ProductDiscountSetValidUntilAction template) create builder for ProductDiscountSetValidUntilAction instancevalidUntil
(ZonedDateTime validUntil) Value to set.
-
Constructor Details
-
ProductDiscountSetValidUntilActionBuilder
public ProductDiscountSetValidUntilActionBuilder()
-
-
Method Details
-
validUntil
Value to set. If empty, any existing value will be removed. Take Eventual Consistency into account for calculated undiscounted values.
- Parameters:
validUntil
- value to be set- Returns:
- Builder
-
getValidUntil
Value to set. If empty, any existing value will be removed. Take Eventual Consistency into account for calculated undiscounted values.
- Returns:
- validUntil
-
build
builds ProductDiscountSetValidUntilAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDiscountSetValidUntilAction>
- Returns:
- ProductDiscountSetValidUntilAction
-
buildUnchecked
builds ProductDiscountSetValidUntilAction without checking for non-null required values- Returns:
- ProductDiscountSetValidUntilAction
-
of
factory method for an instance of ProductDiscountSetValidUntilActionBuilder- Returns:
- builder
-
of
public static ProductDiscountSetValidUntilActionBuilder of(ProductDiscountSetValidUntilAction template) create builder for ProductDiscountSetValidUntilAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-