Class ApprovalRuleStatusSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalRuleStatusSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleStatusSetMessagePayload>
public class ApprovalRuleStatusSetMessagePayloadBuilder
extends Object
implements Builder<ApprovalRuleStatusSetMessagePayload>
ApprovalRuleStatusSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleStatusSetMessagePayload approvalRuleStatusSetMessagePayload = ApprovalRuleStatusSetMessagePayload.builder()
.status(ApprovalRuleStatus.ACTIVE)
.oldStatus(ApprovalRuleStatus.ACTIVE)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalRuleStatusSetMessagePayload with checking for non-null required valuesbuilds ApprovalRuleStatusSetMessagePayload without checking for non-null required valuesStatus of the ApprovalRule before the Set Status update action.Status of the ApprovalRule after the Set Status update action.of()
factory method for an instance of ApprovalRuleStatusSetMessagePayloadBuilderof
(ApprovalRuleStatusSetMessagePayload template) create builder for ApprovalRuleStatusSetMessagePayload instanceoldStatus
(ApprovalRuleStatus oldStatus) Status of the ApprovalRule before the Set Status update action.status
(ApprovalRuleStatus status) Status of the ApprovalRule after the Set Status update action.
-
Constructor Details
-
ApprovalRuleStatusSetMessagePayloadBuilder
public ApprovalRuleStatusSetMessagePayloadBuilder()
-
-
Method Details
-
status
Status of the ApprovalRule after the Set Status update action.
- Parameters:
status
- value to be set- Returns:
- Builder
-
oldStatus
Status of the ApprovalRule before the Set Status update action.
- Parameters:
oldStatus
- value to be set- Returns:
- Builder
-
getStatus
Status of the ApprovalRule after the Set Status update action.
- Returns:
- status
-
getOldStatus
Status of the ApprovalRule before the Set Status update action.
- Returns:
- oldStatus
-
build
builds ApprovalRuleStatusSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleStatusSetMessagePayload>
- Returns:
- ApprovalRuleStatusSetMessagePayload
-
buildUnchecked
builds ApprovalRuleStatusSetMessagePayload without checking for non-null required values- Returns:
- ApprovalRuleStatusSetMessagePayload
-
of
factory method for an instance of ApprovalRuleStatusSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ApprovalRuleStatusSetMessagePayloadBuilder of(ApprovalRuleStatusSetMessagePayload template) create builder for ApprovalRuleStatusSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-