Class PaymentCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<PaymentCreatedMessagePayload>
public class PaymentCreatedMessagePayloadBuilder
extends Object
implements Builder<PaymentCreatedMessagePayload>
PaymentCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentCreatedMessagePayload paymentCreatedMessagePayload = PaymentCreatedMessagePayload.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentCreatedMessagePayload with checking for non-null required valuesbuilds PaymentCreatedMessagePayload without checking for non-null required valuesPayment that was created.of()
factory method for an instance of PaymentCreatedMessagePayloadBuilderof
(PaymentCreatedMessagePayload template) create builder for PaymentCreatedMessagePayload instancePayment that was created.payment
(Function<PaymentBuilder, PaymentBuilder> builder) Payment that was created.withPayment
(Function<PaymentBuilder, Payment> builder) Payment that was created.
-
Constructor Details
-
PaymentCreatedMessagePayloadBuilder
public PaymentCreatedMessagePayloadBuilder()
-
-
Method Details
-
payment
Payment that was created.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
withPayment
Payment that was created.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
payment
Payment that was created.
- Parameters:
payment
- value to be set- Returns:
- Builder
-
getPayment
Payment that was created.
- Returns:
- payment
-
build
builds PaymentCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentCreatedMessagePayload>
- Returns:
- PaymentCreatedMessagePayload
-
buildUnchecked
builds PaymentCreatedMessagePayload without checking for non-null required values- Returns:
- PaymentCreatedMessagePayload
-
of
factory method for an instance of PaymentCreatedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for PaymentCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-