Class BusinessUnitChangeApprovalRuleModeActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitChangeApprovalRuleModeActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitChangeApprovalRuleModeAction>
public class BusinessUnitChangeApprovalRuleModeActionBuilder
extends Object
implements Builder<BusinessUnitChangeApprovalRuleModeAction>
BusinessUnitChangeApprovalRuleModeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitChangeApprovalRuleModeAction businessUnitChangeApprovalRuleModeAction = BusinessUnitChangeApprovalRuleModeAction.builder()
.approvalRuleMode(BusinessUnitApprovalRuleMode.EXPLICIT)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapprovalRuleMode
(BusinessUnitApprovalRuleMode approvalRuleMode) The new value forapprovalRuleMode
.build()
builds BusinessUnitChangeApprovalRuleModeAction with checking for non-null required valuesbuilds BusinessUnitChangeApprovalRuleModeAction without checking for non-null required valuesThe new value forapprovalRuleMode
.of()
factory method for an instance of BusinessUnitChangeApprovalRuleModeActionBuilderof
(BusinessUnitChangeApprovalRuleModeAction template) create builder for BusinessUnitChangeApprovalRuleModeAction instance
-
Constructor Details
-
BusinessUnitChangeApprovalRuleModeActionBuilder
public BusinessUnitChangeApprovalRuleModeActionBuilder()
-
-
Method Details
-
approvalRuleMode
public BusinessUnitChangeApprovalRuleModeActionBuilder approvalRuleMode(BusinessUnitApprovalRuleMode approvalRuleMode) The new value for
approvalRuleMode
.- Parameters:
approvalRuleMode
- value to be set- Returns:
- Builder
-
getApprovalRuleMode
The new value for
approvalRuleMode
.- Returns:
- approvalRuleMode
-
build
builds BusinessUnitChangeApprovalRuleModeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitChangeApprovalRuleModeAction>
- Returns:
- BusinessUnitChangeApprovalRuleModeAction
-
buildUnchecked
builds BusinessUnitChangeApprovalRuleModeAction without checking for non-null required values- Returns:
- BusinessUnitChangeApprovalRuleModeAction
-
of
factory method for an instance of BusinessUnitChangeApprovalRuleModeActionBuilder- Returns:
- builder
-
of
public static BusinessUnitChangeApprovalRuleModeActionBuilder of(BusinessUnitChangeApprovalRuleModeAction template) create builder for BusinessUnitChangeApprovalRuleModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-