Class PaymentInteractionAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentInteractionAddedMessagePayloadBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<PaymentInteractionAddedMessagePayload>
public class PaymentInteractionAddedMessagePayloadBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<PaymentInteractionAddedMessagePayload>
PaymentInteractionAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentInteractionAddedMessagePayload paymentInteractionAddedMessagePayload = PaymentInteractionAddedMessagePayload.builder()
.interaction(interactionBuilder -> interactionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentInteractionAddedMessagePayload with checking for non-null required valuesbuilds PaymentInteractionAddedMessagePayload without checking for non-null required valuesThe interface interaction that was added to the Payment.interaction
(CustomFields interaction) The interface interaction that was added to the Payment.The interface interaction that was added to the Payment.of()
factory method for an instance of PaymentInteractionAddedMessagePayloadBuilderof
(PaymentInteractionAddedMessagePayload template) create builder for PaymentInteractionAddedMessagePayload instanceThe interface interaction that was added to the Payment.
-
Constructor Details
-
PaymentInteractionAddedMessagePayloadBuilder
public PaymentInteractionAddedMessagePayloadBuilder()
-
-
Method Details
-
interaction
public PaymentInteractionAddedMessagePayloadBuilder interaction(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) The interface interaction that was added to the Payment.
- Parameters:
builder
- function to build the interaction value- Returns:
- Builder
-
withInteraction
public PaymentInteractionAddedMessagePayloadBuilder withInteraction(Function<CustomFieldsBuilder, CustomFields> builder) The interface interaction that was added to the Payment.
- Parameters:
builder
- function to build the interaction value- Returns:
- Builder
-
interaction
The interface interaction that was added to the Payment.
- Parameters:
interaction
- value to be set- Returns:
- Builder
-
getInteraction
The interface interaction that was added to the Payment.
- Returns:
- interaction
-
build
builds PaymentInteractionAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<PaymentInteractionAddedMessagePayload>
- Returns:
- PaymentInteractionAddedMessagePayload
-
buildUnchecked
builds PaymentInteractionAddedMessagePayload without checking for non-null required values- Returns:
- PaymentInteractionAddedMessagePayload
-
of
factory method for an instance of PaymentInteractionAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static PaymentInteractionAddedMessagePayloadBuilder of(PaymentInteractionAddedMessagePayload template) create builder for PaymentInteractionAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-