Class ApprovalRuleNameSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalRuleNameSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleNameSetMessagePayload>
public class ApprovalRuleNameSetMessagePayloadBuilder
extends Object
implements Builder<ApprovalRuleNameSetMessagePayload>
ApprovalRuleNameSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleNameSetMessagePayload approvalRuleNameSetMessagePayload = ApprovalRuleNameSetMessagePayload.builder()
.name("{name}")
.oldName("{oldName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalRuleNameSetMessagePayload with checking for non-null required valuesbuilds ApprovalRuleNameSetMessagePayload without checking for non-null required valuesgetName()
Name of the ApprovalRule after the Set Name update action.Name of the ApprovalRule before the Set Name update action.Name of the ApprovalRule after the Set Name update action.of()
factory method for an instance of ApprovalRuleNameSetMessagePayloadBuilderof
(ApprovalRuleNameSetMessagePayload template) create builder for ApprovalRuleNameSetMessagePayload instanceName of the ApprovalRule before the Set Name update action.
-
Constructor Details
-
ApprovalRuleNameSetMessagePayloadBuilder
public ApprovalRuleNameSetMessagePayloadBuilder()
-
-
Method Details
-
name
Name of the ApprovalRule after the Set Name update action.
- Parameters:
name
- value to be set- Returns:
- Builder
-
oldName
Name of the ApprovalRule before the Set Name update action.
- Parameters:
oldName
- value to be set- Returns:
- Builder
-
getName
Name of the ApprovalRule after the Set Name update action.
- Returns:
- name
-
getOldName
Name of the ApprovalRule before the Set Name update action.
- Returns:
- oldName
-
build
builds ApprovalRuleNameSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleNameSetMessagePayload>
- Returns:
- ApprovalRuleNameSetMessagePayload
-
buildUnchecked
builds ApprovalRuleNameSetMessagePayload without checking for non-null required values- Returns:
- ApprovalRuleNameSetMessagePayload
-
of
factory method for an instance of ApprovalRuleNameSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ApprovalRuleNameSetMessagePayloadBuilder of(ApprovalRuleNameSetMessagePayload template) create builder for ApprovalRuleNameSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-