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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalRuleKeySetMessagePayload with checking for non-null required valuesbuilds ApprovalRuleKeySetMessagePayload without checking for non-null required valuesgetKey()
Description of the ApprovalRule after the Set Key update action.Description of the ApprovalRule before the Set Key update action.Description of the ApprovalRule after the Set Key update action.of()
factory method for an instance of ApprovalRuleKeySetMessagePayloadBuilderof
(ApprovalRuleKeySetMessagePayload template) create builder for ApprovalRuleKeySetMessagePayload instanceDescription of the ApprovalRule before the Set Key update action.
-
Constructor Details
-
ApprovalRuleKeySetMessagePayloadBuilder
public ApprovalRuleKeySetMessagePayloadBuilder()
-
-
Method Details
-
key
Description of the ApprovalRule after the Set Key update action.
- Parameters:
key
- value to be set- Returns:
- Builder
-
oldKey
Description of the ApprovalRule before the Set Key update action.
- Parameters:
oldKey
- value to be set- Returns:
- Builder
-
getKey
Description of the ApprovalRule after the Set Key update action.
- Returns:
- key
-
getOldKey
Description 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
-