Class ApprovalRuleSetStatusActionBuilder
java.lang.Object
com.commercetools.api.models.approval_rule.ApprovalRuleSetStatusActionBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleSetStatusAction>
public class ApprovalRuleSetStatusActionBuilder
extends Object
implements Builder<ApprovalRuleSetStatusAction>
ApprovalRuleSetStatusActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleSetStatusAction approvalRuleSetStatusAction = ApprovalRuleSetStatusAction.builder()
.status(ApprovalRuleStatus.ACTIVE)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalRuleSetStatusAction with checking for non-null required valuesbuilds ApprovalRuleSetStatusAction without checking for non-null required valuesNew status to set for the Approval Rule.of()
factory method for an instance of ApprovalRuleSetStatusActionBuilderof
(ApprovalRuleSetStatusAction template) create builder for ApprovalRuleSetStatusAction instancestatus
(ApprovalRuleStatus status) New status to set for the Approval Rule.
-
Constructor Details
-
ApprovalRuleSetStatusActionBuilder
public ApprovalRuleSetStatusActionBuilder()
-
-
Method Details
-
status
New status to set for the Approval Rule.
- Parameters:
status
- value to be set- Returns:
- Builder
-
getStatus
New status to set for the Approval Rule.
- Returns:
- status
-
build
builds ApprovalRuleSetStatusAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleSetStatusAction>
- Returns:
- ApprovalRuleSetStatusAction
-
buildUnchecked
builds ApprovalRuleSetStatusAction without checking for non-null required values- Returns:
- ApprovalRuleSetStatusAction
-
of
factory method for an instance of ApprovalRuleSetStatusActionBuilder- Returns:
- builder
-
of
create builder for ApprovalRuleSetStatusAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-