Class ProductDiscountSetValidFromAndUntilActionBuilder
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountSetValidFromAndUntilActionBuilder
- All Implemented Interfaces:
Builder<ProductDiscountSetValidFromAndUntilAction>
public class ProductDiscountSetValidFromAndUntilActionBuilder
extends Object
implements Builder<ProductDiscountSetValidFromAndUntilAction>
ProductDiscountSetValidFromAndUntilActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountSetValidFromAndUntilAction productDiscountSetValidFromAndUntilAction = ProductDiscountSetValidFromAndUntilAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountSetValidFromAndUntilAction with checking for non-null required valuesbuilds ProductDiscountSetValidFromAndUntilAction without checking for non-null required valuesValue to set.Value to set.of()
factory method for an instance of ProductDiscountSetValidFromAndUntilActionBuilderof
(ProductDiscountSetValidFromAndUntilAction template) create builder for ProductDiscountSetValidFromAndUntilAction instancevalidFrom
(ZonedDateTime validFrom) Value to set.validUntil
(ZonedDateTime validUntil) Value to set.
-
Constructor Details
-
ProductDiscountSetValidFromAndUntilActionBuilder
public ProductDiscountSetValidFromAndUntilActionBuilder()
-
-
Method Details
-
validFrom
public ProductDiscountSetValidFromAndUntilActionBuilder validFrom(@Nullable ZonedDateTime validFrom) Value to set. Take Eventual Consistency into account for calculated undiscounted values.
- Parameters:
validFrom
- value to be set- Returns:
- Builder
-
validUntil
public ProductDiscountSetValidFromAndUntilActionBuilder validUntil(@Nullable ZonedDateTime validUntil) Value to set. Take Eventual Consistency into account for calculated undiscounted values.
- Parameters:
validUntil
- value to be set- Returns:
- Builder
-
getValidFrom
Value to set. Take Eventual Consistency into account for calculated undiscounted values.
- Returns:
- validFrom
-
getValidUntil
Value to set. Take Eventual Consistency into account for calculated undiscounted values.
- Returns:
- validUntil
-
build
builds ProductDiscountSetValidFromAndUntilAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDiscountSetValidFromAndUntilAction>
- Returns:
- ProductDiscountSetValidFromAndUntilAction
-
buildUnchecked
builds ProductDiscountSetValidFromAndUntilAction without checking for non-null required values- Returns:
- ProductDiscountSetValidFromAndUntilAction
-
of
factory method for an instance of ProductDiscountSetValidFromAndUntilActionBuilder- Returns:
- builder
-
of
public static ProductDiscountSetValidFromAndUntilActionBuilder of(ProductDiscountSetValidFromAndUntilAction template) create builder for ProductDiscountSetValidFromAndUntilAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-