Interface ApprovalRuleSetDescriptionAction
- All Superinterfaces:
ApprovalRuleUpdateAction
Setting the description for an Approval Rule generates an ApprovalRuleDescriptionSet Message.
Example to create an instance using the builder pattern
ApprovalRuleSetDescriptionAction approvalRuleSetDescriptionAction = ApprovalRuleSetDescriptionAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ApprovalRuleSetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ApprovalRuleSetDescriptionActionbuilder(ApprovalRuleSetDescriptionAction template) create builder for ApprovalRuleSetDescriptionAction instancecopyDeep()deepCopy(ApprovalRuleSetDescriptionAction template) factory method to create a deep copy of ApprovalRuleSetDescriptionActionNew description to set for the Approval Rule.of()factory methodof(ApprovalRuleSetDescriptionAction template) factory method to create a shallow copy ApprovalRuleSetDescriptionActionvoidsetDescription(String description) New description to set for the Approval Rule.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleSetDescriptionAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.approval_rule.ApprovalRuleUpdateAction
getAction, withApprovalRuleUpdateAction
-
Field Details
-
SET_DESCRIPTION
discriminator value for ApprovalRuleSetDescriptionAction- See Also:
-
-
Method Details
-
getDescription
String getDescription()New description to set for the Approval Rule.
- Returns:
- description
-
setDescription
New description to set for the Approval Rule.
- Parameters:
description- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleSetDescriptionAction
-
of
factory method to create a shallow copy ApprovalRuleSetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ApprovalRuleSetDescriptionAction copyDeep()- Specified by:
copyDeepin interfaceApprovalRuleUpdateAction
-
deepCopy
@Nullable static ApprovalRuleSetDescriptionAction deepCopy(@Nullable ApprovalRuleSetDescriptionAction template) factory method to create a deep copy of ApprovalRuleSetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleSetDescriptionAction- Returns:
- builder
-
builder
create builder for ApprovalRuleSetDescriptionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleSetDescriptionAction
default <T> T withApprovalRuleSetDescriptionAction(Function<ApprovalRuleSetDescriptionAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleSetDescriptionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-