Class DiscountCodeSetCartPredicateActionBuilder
java.lang.Object
com.commercetools.api.models.discount_code.DiscountCodeSetCartPredicateActionBuilder
- All Implemented Interfaces:
Builder<DiscountCodeSetCartPredicateAction>
public class DiscountCodeSetCartPredicateActionBuilder
extends Object
implements Builder<DiscountCodeSetCartPredicateAction>
DiscountCodeSetCartPredicateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetCartPredicateAction discountCodeSetCartPredicateAction = DiscountCodeSetCartPredicateAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountCodeSetCartPredicateAction with checking for non-null required valuesbuilds DiscountCodeSetCartPredicateAction without checking for non-null required valuescartPredicate
(String cartPredicate) Value to set.Value to set.of()
factory method for an instance of DiscountCodeSetCartPredicateActionBuilderof
(DiscountCodeSetCartPredicateAction template) create builder for DiscountCodeSetCartPredicateAction instance
-
Constructor Details
-
DiscountCodeSetCartPredicateActionBuilder
public DiscountCodeSetCartPredicateActionBuilder()
-
-
Method Details
-
cartPredicate
Value to set. If empty, any existing value will be removed.
- Parameters:
cartPredicate
- value to be set- Returns:
- Builder
-
getCartPredicate
Value to set. If empty, any existing value will be removed.
- Returns:
- cartPredicate
-
build
builds DiscountCodeSetCartPredicateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<DiscountCodeSetCartPredicateAction>
- Returns:
- DiscountCodeSetCartPredicateAction
-
buildUnchecked
builds DiscountCodeSetCartPredicateAction without checking for non-null required values- Returns:
- DiscountCodeSetCartPredicateAction
-
of
factory method for an instance of DiscountCodeSetCartPredicateActionBuilder- Returns:
- builder
-
of
public static DiscountCodeSetCartPredicateActionBuilder of(DiscountCodeSetCartPredicateAction template) create builder for DiscountCodeSetCartPredicateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-