Class ApprovalRulePredicateSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalRulePredicateSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalRulePredicateSetMessagePayload>
public class ApprovalRulePredicateSetMessagePayloadBuilder
extends Object
implements Builder<ApprovalRulePredicateSetMessagePayload>
ApprovalRulePredicateSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRulePredicateSetMessagePayload approvalRulePredicateSetMessagePayload = ApprovalRulePredicateSetMessagePayload.builder()
.predicate("{predicate}")
.oldPredicate("{oldPredicate}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalRulePredicateSetMessagePayload with checking for non-null required valuesbuilds ApprovalRulePredicateSetMessagePayload without checking for non-null required valuesName of the ApprovalRule before the Set Predicate update action.Name of the ApprovalRule after the Set Predicate update action.of()
factory method for an instance of ApprovalRulePredicateSetMessagePayloadBuilderof
(ApprovalRulePredicateSetMessagePayload template) create builder for ApprovalRulePredicateSetMessagePayload instanceoldPredicate
(String oldPredicate) Name of the ApprovalRule before the Set Predicate update action.Name of the ApprovalRule after the Set Predicate update action.
-
Constructor Details
-
ApprovalRulePredicateSetMessagePayloadBuilder
public ApprovalRulePredicateSetMessagePayloadBuilder()
-
-
Method Details
-
predicate
Name of the ApprovalRule after the Set Predicate update action.
- Parameters:
predicate
- value to be set- Returns:
- Builder
-
oldPredicate
Name of the ApprovalRule before the Set Predicate update action.
- Parameters:
oldPredicate
- value to be set- Returns:
- Builder
-
getPredicate
Name of the ApprovalRule after the Set Predicate update action.
- Returns:
- predicate
-
getOldPredicate
Name of the ApprovalRule before the Set Predicate update action.
- Returns:
- oldPredicate
-
build
builds ApprovalRulePredicateSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRulePredicateSetMessagePayload>
- Returns:
- ApprovalRulePredicateSetMessagePayload
-
buildUnchecked
builds ApprovalRulePredicateSetMessagePayload without checking for non-null required values- Returns:
- ApprovalRulePredicateSetMessagePayload
-
of
factory method for an instance of ApprovalRulePredicateSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ApprovalRulePredicateSetMessagePayloadBuilder of(ApprovalRulePredicateSetMessagePayload template) create builder for ApprovalRulePredicateSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-