Class ProductDiscountChangeIsActiveActionBuilder
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountChangeIsActiveActionBuilder
- All Implemented Interfaces:
Builder<ProductDiscountChangeIsActiveAction>
public class ProductDiscountChangeIsActiveActionBuilder
extends Object
implements Builder<ProductDiscountChangeIsActiveAction>
ProductDiscountChangeIsActiveActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangeIsActiveAction productDiscountChangeIsActiveAction = ProductDiscountChangeIsActiveAction.builder()
.isActive(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountChangeIsActiveAction with checking for non-null required valuesbuilds ProductDiscountChangeIsActiveAction without checking for non-null required valuesNew value to set.New value to set.of()
factory method for an instance of ProductDiscountChangeIsActiveActionBuilderof
(ProductDiscountChangeIsActiveAction template) create builder for ProductDiscountChangeIsActiveAction instance
-
Constructor Details
-
ProductDiscountChangeIsActiveActionBuilder
public ProductDiscountChangeIsActiveActionBuilder()
-
-
Method Details
-
isActive
New value to set. If set to
true
, the Discount will be applied to Product Prices.- Parameters:
isActive
- value to be set- Returns:
- Builder
-
getIsActive
New value to set. If set to
true
, the Discount will be applied to Product Prices.- Returns:
- isActive
-
build
builds ProductDiscountChangeIsActiveAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDiscountChangeIsActiveAction>
- Returns:
- ProductDiscountChangeIsActiveAction
-
buildUnchecked
builds ProductDiscountChangeIsActiveAction without checking for non-null required values- Returns:
- ProductDiscountChangeIsActiveAction
-
of
factory method for an instance of ProductDiscountChangeIsActiveActionBuilder- Returns:
- builder
-
of
public static ProductDiscountChangeIsActiveActionBuilder of(ProductDiscountChangeIsActiveAction template) create builder for ProductDiscountChangeIsActiveAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-