Interface ApprovalRuleDescriptionSetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set Description update action.
Example to create an instance using the builder pattern
ApprovalRuleDescriptionSetMessagePayload approvalRuleDescriptionSetMessagePayload = ApprovalRuleDescriptionSetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ApprovalRuleDescriptionSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ApprovalRuleDescriptionSetMessagePayloadcreate builder for ApprovalRuleDescriptionSetMessagePayload instancecopyDeep()factory method to create a deep copy of ApprovalRuleDescriptionSetMessagePayloadDescription of the ApprovalRule after the Set Description update action.Description of the ApprovalRule before the Set Description update action.of()factory methodof(ApprovalRuleDescriptionSetMessagePayload template) factory method to create a shallow copy ApprovalRuleDescriptionSetMessagePayloadvoidsetDescription(String description) Description of the ApprovalRule after the Set Description update action.voidsetOldDescription(String oldDescription) Description of the ApprovalRule before the Set Description update action.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleDescriptionSetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithApprovalRuleDescriptionSetMessagePayload(Function<ApprovalRuleDescriptionSetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
APPROVAL_RULE_DESCRIPTION_SET
discriminator value for ApprovalRuleDescriptionSetMessagePayload- See Also:
-
-
Method Details
-
getDescription
String getDescription()Description of the ApprovalRule after the Set Description update action.
- Returns:
- description
-
getOldDescription
String getOldDescription()Description of the ApprovalRule before the Set Description update action.
- Returns:
- oldDescription
-
setDescription
Description of the ApprovalRule after the Set Description update action.
- Parameters:
description- value to be set
-
setOldDescription
Description of the ApprovalRule before the Set Description update action.
- Parameters:
oldDescription- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleDescriptionSetMessagePayload
-
of
static ApprovalRuleDescriptionSetMessagePayload of(ApprovalRuleDescriptionSetMessagePayload template) factory method to create a shallow copy ApprovalRuleDescriptionSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ApprovalRuleDescriptionSetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static ApprovalRuleDescriptionSetMessagePayload deepCopy(@Nullable ApprovalRuleDescriptionSetMessagePayload template) factory method to create a deep copy of ApprovalRuleDescriptionSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleDescriptionSetMessagePayload- Returns:
- builder
-
builder
static ApprovalRuleDescriptionSetMessagePayloadBuilder builder(ApprovalRuleDescriptionSetMessagePayload template) create builder for ApprovalRuleDescriptionSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleDescriptionSetMessagePayload
default <T> T withApprovalRuleDescriptionSetMessagePayload(Function<ApprovalRuleDescriptionSetMessagePayload, 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<ApprovalRuleDescriptionSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-