Class ApprovalRuleKeySetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalRuleKeySetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleKeySetMessagePayload>
public class ApprovalRuleKeySetMessagePayloadBuilder
extends Object
implements Builder<ApprovalRuleKeySetMessagePayload>
ApprovalRuleKeySetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleKeySetMessagePayload approvalRuleKeySetMessagePayload = ApprovalRuleKeySetMessagePayload.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalRuleKeySetMessagePayload with checking for non-null required valuesbuilds ApprovalRuleKeySetMessagePayload without checking for non-null required valuesgetKey()
of()
factory method for an instance of ApprovalRuleKeySetMessagePayloadBuilderof
(ApprovalRuleKeySetMessagePayload template) create builder for ApprovalRuleKeySetMessagePayload instance
-
Constructor Details
-
ApprovalRuleKeySetMessagePayloadBuilder
public ApprovalRuleKeySetMessagePayloadBuilder()
-
-
Method Details
-
key
key
value of the ApprovalRule after the Set Key update action.- Parameters:
key
- value to be set- Returns:
- Builder
-
oldKey
key
value of the ApprovalRule before the Set Key update action.- Parameters:
oldKey
- value to be set- Returns:
- Builder
-
getKey
key
value of the ApprovalRule after the Set Key update action.- Returns:
- key
-
getOldKey
key
value of the ApprovalRule before the Set Key update action.- Returns:
- oldKey
-
build
builds ApprovalRuleKeySetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleKeySetMessagePayload>
- Returns:
- ApprovalRuleKeySetMessagePayload
-
buildUnchecked
builds ApprovalRuleKeySetMessagePayload without checking for non-null required values- Returns:
- ApprovalRuleKeySetMessagePayload
-
of
factory method for an instance of ApprovalRuleKeySetMessagePayloadBuilder- Returns:
- builder
-
of
create builder for ApprovalRuleKeySetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-