Interface ApprovalRuleSetStatusAction
- All Superinterfaces:
ApprovalRuleUpdateAction
Setting the status for an Approval Rule generates an ApprovalRuleStatusSet Message.
Example to create an instance using the builder pattern
ApprovalRuleSetStatusAction approvalRuleSetStatusAction = ApprovalRuleSetStatusAction.builder()
.status(ApprovalRuleStatus.ACTIVE)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalRuleSetStatusAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalRuleSetStatusActionbuilder
(ApprovalRuleSetStatusAction template) create builder for ApprovalRuleSetStatusAction instancestatic ApprovalRuleSetStatusAction
deepCopy
(ApprovalRuleSetStatusAction template) factory method to create a deep copy of ApprovalRuleSetStatusAction@NotNull ApprovalRuleStatus
New status to set for the Approval Rule.static ApprovalRuleSetStatusAction
of()
factory methodstatic ApprovalRuleSetStatusAction
of
(ApprovalRuleSetStatusAction template) factory method to create a shallow copy ApprovalRuleSetStatusActionvoid
setStatus
(ApprovalRuleStatus status) New status to set for the Approval Rule.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleSetStatusAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.approval_rule.ApprovalRuleUpdateAction
getAction, withApprovalRuleUpdateAction
-
Field Details
-
SET_STATUS
discriminator value for ApprovalRuleSetStatusAction- See Also:
-
-
Method Details
-
getStatus
New status to set for the Approval Rule.
- Returns:
- status
-
setStatus
New status to set for the Approval Rule.
- Parameters:
status
- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleSetStatusAction
-
of
factory method to create a shallow copy ApprovalRuleSetStatusAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalRuleSetStatusAction deepCopy(@Nullable ApprovalRuleSetStatusAction template) factory method to create a deep copy of ApprovalRuleSetStatusAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleSetStatusAction- Returns:
- builder
-
builder
create builder for ApprovalRuleSetStatusAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleSetStatusAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-