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