Class PaymentChangeTransactionStateActionBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentChangeTransactionStateActionBuilder
- All Implemented Interfaces:
Builder<PaymentChangeTransactionStateAction>
public class PaymentChangeTransactionStateActionBuilder
extends Object
implements Builder<PaymentChangeTransactionStateAction>
PaymentChangeTransactionStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentChangeTransactionStateAction paymentChangeTransactionStateAction = PaymentChangeTransactionStateAction.builder()
.transactionId("{transactionId}")
.state(TransactionState.INITIAL)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentChangeTransactionStateAction with checking for non-null required valuesbuilds PaymentChangeTransactionStateAction without checking for non-null required valuesgetState()
New TransactionState.Unique identifier of the Transaction.of()
factory method for an instance of PaymentChangeTransactionStateActionBuilderof
(PaymentChangeTransactionStateAction template) create builder for PaymentChangeTransactionStateAction instancestate
(TransactionState state) New TransactionState.transactionId
(String transactionId) Unique identifier of the Transaction.
-
Constructor Details
-
PaymentChangeTransactionStateActionBuilder
public PaymentChangeTransactionStateActionBuilder()
-
-
Method Details
-
transactionId
Unique identifier of the Transaction.
- Parameters:
transactionId
- value to be set- Returns:
- Builder
-
state
New TransactionState.
- Parameters:
state
- value to be set- Returns:
- Builder
-
getTransactionId
Unique identifier of the Transaction.
- Returns:
- transactionId
-
getState
New TransactionState.
- Returns:
- state
-
build
builds PaymentChangeTransactionStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentChangeTransactionStateAction>
- Returns:
- PaymentChangeTransactionStateAction
-
buildUnchecked
builds PaymentChangeTransactionStateAction without checking for non-null required values- Returns:
- PaymentChangeTransactionStateAction
-
of
factory method for an instance of PaymentChangeTransactionStateActionBuilder- Returns:
- builder
-
of
public static PaymentChangeTransactionStateActionBuilder of(PaymentChangeTransactionStateAction template) create builder for PaymentChangeTransactionStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-