Class OrderPaymentStateChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderPaymentStateChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderPaymentStateChangedMessagePayload>
public class OrderPaymentStateChangedMessagePayloadBuilder
extends Object
implements Builder<OrderPaymentStateChangedMessagePayload>
OrderPaymentStateChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderPaymentStateChangedMessagePayload orderPaymentStateChangedMessagePayload = OrderPaymentStateChangedMessagePayload.builder()
.paymentState(PaymentState.BALANCE_DUE)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderPaymentStateChangedMessagePayload with checking for non-null required valuesbuilds OrderPaymentStateChangedMessagePayload without checking for non-null required valuesPaymentState before the Change Payment State update action.PaymentState after the Change Payment State update action.of()
factory method for an instance of OrderPaymentStateChangedMessagePayloadBuilderof
(OrderPaymentStateChangedMessagePayload template) create builder for OrderPaymentStateChangedMessagePayload instanceoldPaymentState
(PaymentState oldPaymentState) PaymentState before the Change Payment State update action.paymentState
(PaymentState paymentState) PaymentState after the Change Payment State update action.
-
Constructor Details
-
OrderPaymentStateChangedMessagePayloadBuilder
public OrderPaymentStateChangedMessagePayloadBuilder()
-
-
Method Details
-
paymentState
PaymentState after the Change Payment State update action.
- Parameters:
paymentState
- value to be set- Returns:
- Builder
-
oldPaymentState
public OrderPaymentStateChangedMessagePayloadBuilder oldPaymentState(@Nullable PaymentState oldPaymentState) PaymentState before the Change Payment State update action.
- Parameters:
oldPaymentState
- value to be set- Returns:
- Builder
-
getPaymentState
PaymentState after the Change Payment State update action.
- Returns:
- paymentState
-
getOldPaymentState
PaymentState before the Change Payment State update action.
- Returns:
- oldPaymentState
-
build
builds OrderPaymentStateChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderPaymentStateChangedMessagePayload>
- Returns:
- OrderPaymentStateChangedMessagePayload
-
buildUnchecked
builds OrderPaymentStateChangedMessagePayload without checking for non-null required values- Returns:
- OrderPaymentStateChangedMessagePayload
-
of
factory method for an instance of OrderPaymentStateChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderPaymentStateChangedMessagePayloadBuilder of(OrderPaymentStateChangedMessagePayload template) create builder for OrderPaymentStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-