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