Class PaymentMethodCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentMethodCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<PaymentMethodCreatedMessagePayload>
public class PaymentMethodCreatedMessagePayloadBuilder
extends Object
implements Builder<PaymentMethodCreatedMessagePayload>
PaymentMethodCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodCreatedMessagePayload paymentMethodCreatedMessagePayload = PaymentMethodCreatedMessagePayload.builder()
.paymentMethod(paymentMethodBuilder -> paymentMethodBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentMethodCreatedMessagePayload with checking for non-null required valuesbuilds PaymentMethodCreatedMessagePayload without checking for non-null required valuesPaymentMethod that was created.of()
factory method for an instance of PaymentMethodCreatedMessagePayloadBuilderof
(PaymentMethodCreatedMessagePayload template) create builder for PaymentMethodCreatedMessagePayload instancepaymentMethod
(PaymentMethod paymentMethod) PaymentMethod that was created.PaymentMethod that was created.PaymentMethod that was created.
-
Constructor Details
-
PaymentMethodCreatedMessagePayloadBuilder
public PaymentMethodCreatedMessagePayloadBuilder()
-
-
Method Details
-
paymentMethod
public PaymentMethodCreatedMessagePayloadBuilder paymentMethod(Function<PaymentMethodBuilder, PaymentMethodBuilder> builder) PaymentMethod that was created.
- Parameters:
builder
- function to build the paymentMethod value- Returns:
- Builder
-
withPaymentMethod
public PaymentMethodCreatedMessagePayloadBuilder withPaymentMethod(Function<PaymentMethodBuilder, PaymentMethod> builder) PaymentMethod that was created.
- Parameters:
builder
- function to build the paymentMethod value- Returns:
- Builder
-
paymentMethod
PaymentMethod that was created.
- Parameters:
paymentMethod
- value to be set- Returns:
- Builder
-
getPaymentMethod
PaymentMethod that was created.
- Returns:
- paymentMethod
-
build
builds PaymentMethodCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentMethodCreatedMessagePayload>
- Returns:
- PaymentMethodCreatedMessagePayload
-
buildUnchecked
builds PaymentMethodCreatedMessagePayload without checking for non-null required values- Returns:
- PaymentMethodCreatedMessagePayload
-
of
factory method for an instance of PaymentMethodCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static PaymentMethodCreatedMessagePayloadBuilder of(PaymentMethodCreatedMessagePayload template) create builder for PaymentMethodCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-