Interface ApprovalRuleSetKeyAction
- All Superinterfaces:
ApprovalRuleUpdateAction
Setting the key for an Approval Rule generates an ApprovalRuleKeySet Message.
Example to create an instance using the builder pattern
ApprovalRuleSetKeyAction approvalRuleSetKeyAction = ApprovalRuleSetKeyAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ApprovalRuleSetKeyActionbuilder(ApprovalRuleSetKeyAction template) create builder for ApprovalRuleSetKeyAction instancecopyDeep()static ApprovalRuleSetKeyActiondeepCopy(ApprovalRuleSetKeyAction template) factory method to create a deep copy of ApprovalRuleSetKeyActiongetKey()Value to set.static ApprovalRuleSetKeyActionof()factory methodstatic ApprovalRuleSetKeyActionof(ApprovalRuleSetKeyAction template) factory method to create a shallow copy ApprovalRuleSetKeyActionvoidValue to set.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleSetKeyAction>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_KEY
discriminator value for ApprovalRuleSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()Value to set. Must be unique within a Business Unit. If empty, any existing value will be removed.
- Returns:
- key
-
setKey
Value to set. Must be unique within a Business Unit. If empty, any existing value will be removed.
- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleSetKeyAction
-
of
factory method to create a shallow copy ApprovalRuleSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ApprovalRuleSetKeyAction copyDeep()- Specified by:
copyDeepin interfaceApprovalRuleUpdateAction
-
deepCopy
factory method to create a deep copy of ApprovalRuleSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleSetKeyAction- Returns:
- builder
-
builder
create builder for ApprovalRuleSetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleSetKeyAction
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
-