Class PaymentMethodSetMethodActionBuilder
java.lang.Object
com.commercetools.api.models.payment_method.PaymentMethodSetMethodActionBuilder
- All Implemented Interfaces:
Builder<PaymentMethodSetMethodAction>
public class PaymentMethodSetMethodActionBuilder
extends Object
implements Builder<PaymentMethodSetMethodAction>
PaymentMethodSetMethodActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodSetMethodAction paymentMethodSetMethodAction = PaymentMethodSetMethodAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentMethodSetMethodAction with checking for non-null required valuesbuilds PaymentMethodSetMethodAction without checking for non-null required valuesNew payment method—for example, a credit card or direct debit.New payment method—for example, a credit card or direct debit.of()
factory method for an instance of PaymentMethodSetMethodActionBuilderof
(PaymentMethodSetMethodAction template) create builder for PaymentMethodSetMethodAction instance
-
Constructor Details
-
PaymentMethodSetMethodActionBuilder
public PaymentMethodSetMethodActionBuilder()
-
-
Method Details
-
method
New payment method—for example, a credit card or direct debit. If empty, any existing value will be removed.
- Parameters:
method
- value to be set- Returns:
- Builder
-
getMethod
New payment method—for example, a credit card or direct debit. If empty, any existing value will be removed.
- Returns:
- method
-
build
builds PaymentMethodSetMethodAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentMethodSetMethodAction>
- Returns:
- PaymentMethodSetMethodAction
-
buildUnchecked
builds PaymentMethodSetMethodAction without checking for non-null required values- Returns:
- PaymentMethodSetMethodAction
-
of
factory method for an instance of PaymentMethodSetMethodActionBuilder- Returns:
- builder
-
of
create builder for PaymentMethodSetMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-