Class DiscountCodeChangeIsActiveActionBuilder
java.lang.Object
com.commercetools.api.models.discount_code.DiscountCodeChangeIsActiveActionBuilder
- All Implemented Interfaces:
Builder<DiscountCodeChangeIsActiveAction>
public class DiscountCodeChangeIsActiveActionBuilder
extends Object
implements Builder<DiscountCodeChangeIsActiveAction>
DiscountCodeChangeIsActiveActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeChangeIsActiveAction discountCodeChangeIsActiveAction = DiscountCodeChangeIsActiveAction.builder()
.isActive(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountCodeChangeIsActiveAction with checking for non-null required valuesbuilds DiscountCodeChangeIsActiveAction without checking for non-null required valuesNew value to set.New value to set.of()
factory method for an instance of DiscountCodeChangeIsActiveActionBuilderof
(DiscountCodeChangeIsActiveAction template) create builder for DiscountCodeChangeIsActiveAction instance
-
Constructor Details
-
DiscountCodeChangeIsActiveActionBuilder
public DiscountCodeChangeIsActiveActionBuilder()
-
-
Method Details
-
isActive
New value to set. Set to
true
to activate the DiscountCode for all matching Discounts.- Parameters:
isActive
- value to be set- Returns:
- Builder
-
getIsActive
New value to set. Set to
true
to activate the DiscountCode for all matching Discounts.- Returns:
- isActive
-
build
builds DiscountCodeChangeIsActiveAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<DiscountCodeChangeIsActiveAction>
- Returns:
- DiscountCodeChangeIsActiveAction
-
buildUnchecked
builds DiscountCodeChangeIsActiveAction without checking for non-null required values- Returns:
- DiscountCodeChangeIsActiveAction
-
of
factory method for an instance of DiscountCodeChangeIsActiveActionBuilder- Returns:
- builder
-
of
create builder for DiscountCodeChangeIsActiveAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-