Class ApprovalRuleSetPredicateActionBuilder
java.lang.Object
com.commercetools.api.models.approval_rule.ApprovalRuleSetPredicateActionBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleSetPredicateAction>
public class ApprovalRuleSetPredicateActionBuilder
extends Object
implements Builder<ApprovalRuleSetPredicateAction>
ApprovalRuleSetPredicateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleSetPredicateAction approvalRuleSetPredicateAction = ApprovalRuleSetPredicateAction.builder()
.predicate("{predicate}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalRuleSetPredicateAction with checking for non-null required valuesbuilds ApprovalRuleSetPredicateAction without checking for non-null required valuesA valid Order Predicate to set for the Approval Rule.of()
factory method for an instance of ApprovalRuleSetPredicateActionBuilderof
(ApprovalRuleSetPredicateAction template) create builder for ApprovalRuleSetPredicateAction instanceA valid Order Predicate to set for the Approval Rule.
-
Constructor Details
-
ApprovalRuleSetPredicateActionBuilder
public ApprovalRuleSetPredicateActionBuilder()
-
-
Method Details
-
predicate
A valid Order Predicate to set for the Approval Rule.
- Parameters:
predicate
- value to be set- Returns:
- Builder
-
getPredicate
A valid Order Predicate to set for the Approval Rule.
- Returns:
- predicate
-
build
builds ApprovalRuleSetPredicateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleSetPredicateAction>
- Returns:
- ApprovalRuleSetPredicateAction
-
buildUnchecked
builds ApprovalRuleSetPredicateAction without checking for non-null required values- Returns:
- ApprovalRuleSetPredicateAction
-
of
factory method for an instance of ApprovalRuleSetPredicateActionBuilder- Returns:
- builder
-
of
create builder for ApprovalRuleSetPredicateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-