Class BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitApprovalRuleModeChangedMessagePayload>
public class BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitApprovalRuleModeChangedMessagePayload>
BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitApprovalRuleModeChangedMessagePayload businessUnitApprovalRuleModeChangedMessagePayload = BusinessUnitApprovalRuleModeChangedMessagePayload.builder()
.approvalRuleMode(BusinessUnitApprovalRuleMode.EXPLICIT)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapprovalRuleMode
(BusinessUnitApprovalRuleMode approvalRuleMode) BusinessUnitApprovalRuleMode of the Business Unit after the Change Approval Rule Mode update action.build()
builds BusinessUnitApprovalRuleModeChangedMessagePayload with checking for non-null required valuesbuilds BusinessUnitApprovalRuleModeChangedMessagePayload without checking for non-null required valuesBusinessUnitApprovalRuleMode of the Business Unit after the Change Approval Rule Mode update action.BusinessUnitApprovalRuleMode of the Business Unit before the Change Approval Rule Mode update action.of()
factory method for an instance of BusinessUnitApprovalRuleModeChangedMessagePayloadBuildercreate builder for BusinessUnitApprovalRuleModeChangedMessagePayload instanceoldApprovalRuleMode
(BusinessUnitApprovalRuleMode oldApprovalRuleMode) BusinessUnitApprovalRuleMode of the Business Unit before the Change Approval Rule Mode update action.
-
Constructor Details
-
BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder
public BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder()
-
-
Method Details
-
approvalRuleMode
public BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder approvalRuleMode(BusinessUnitApprovalRuleMode approvalRuleMode) BusinessUnitApprovalRuleMode of the Business Unit after the Change Approval Rule Mode update action.
- Parameters:
approvalRuleMode
- value to be set- Returns:
- Builder
-
oldApprovalRuleMode
public BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder oldApprovalRuleMode(@Nullable BusinessUnitApprovalRuleMode oldApprovalRuleMode) BusinessUnitApprovalRuleMode of the Business Unit before the Change Approval Rule Mode update action.
- Parameters:
oldApprovalRuleMode
- value to be set- Returns:
- Builder
-
getApprovalRuleMode
BusinessUnitApprovalRuleMode of the Business Unit after the Change Approval Rule Mode update action.
- Returns:
- approvalRuleMode
-
getOldApprovalRuleMode
BusinessUnitApprovalRuleMode of the Business Unit before the Change Approval Rule Mode update action.
- Returns:
- oldApprovalRuleMode
-
build
builds BusinessUnitApprovalRuleModeChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitApprovalRuleModeChangedMessagePayload>
- Returns:
- BusinessUnitApprovalRuleModeChangedMessagePayload
-
buildUnchecked
builds BusinessUnitApprovalRuleModeChangedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitApprovalRuleModeChangedMessagePayload
-
of
factory method for an instance of BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder of(BusinessUnitApprovalRuleModeChangedMessagePayload template) create builder for BusinessUnitApprovalRuleModeChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-