Class ApprovalRuleDescriptionSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalRuleDescriptionSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleDescriptionSetMessagePayload>
public class ApprovalRuleDescriptionSetMessagePayloadBuilder
extends Object
implements Builder<ApprovalRuleDescriptionSetMessagePayload>
ApprovalRuleDescriptionSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleDescriptionSetMessagePayload approvalRuleDescriptionSetMessagePayload = ApprovalRuleDescriptionSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalRuleDescriptionSetMessagePayload with checking for non-null required valuesbuilds ApprovalRuleDescriptionSetMessagePayload without checking for non-null required valuesdescription
(String description) Description of the ApprovalRule after the Set Description update action.Description of the ApprovalRule after the Set Description update action.Description of the ApprovalRule before the Set Description update action.of()
factory method for an instance of ApprovalRuleDescriptionSetMessagePayloadBuilderof
(ApprovalRuleDescriptionSetMessagePayload template) create builder for ApprovalRuleDescriptionSetMessagePayload instanceoldDescription
(String oldDescription) Description of the ApprovalRule before the Set Description update action.
-
Constructor Details
-
ApprovalRuleDescriptionSetMessagePayloadBuilder
public ApprovalRuleDescriptionSetMessagePayloadBuilder()
-
-
Method Details
-
description
Description of the ApprovalRule after the Set Description update action.
- Parameters:
description
- value to be set- Returns:
- Builder
-
oldDescription
public ApprovalRuleDescriptionSetMessagePayloadBuilder oldDescription(@Nullable String oldDescription) Description of the ApprovalRule before the Set Description update action.
- Parameters:
oldDescription
- value to be set- Returns:
- Builder
-
getDescription
Description of the ApprovalRule after the Set Description update action.
- Returns:
- description
-
getOldDescription
Description of the ApprovalRule before the Set Description update action.
- Returns:
- oldDescription
-
build
builds ApprovalRuleDescriptionSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleDescriptionSetMessagePayload>
- Returns:
- ApprovalRuleDescriptionSetMessagePayload
-
buildUnchecked
builds ApprovalRuleDescriptionSetMessagePayload without checking for non-null required values- Returns:
- ApprovalRuleDescriptionSetMessagePayload
-
of
factory method for an instance of ApprovalRuleDescriptionSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ApprovalRuleDescriptionSetMessagePayloadBuilder of(ApprovalRuleDescriptionSetMessagePayload template) create builder for ApprovalRuleDescriptionSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-