Class CartSetRecurringPaymentStrategyActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetRecurringPaymentStrategyActionBuilder
- All Implemented Interfaces:
Builder<CartSetRecurringPaymentStrategyAction>
public class CartSetRecurringPaymentStrategyActionBuilder
extends Object
implements Builder<CartSetRecurringPaymentStrategyAction>
CartSetRecurringPaymentStrategyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetRecurringPaymentStrategyAction cartSetRecurringPaymentStrategyAction = CartSetRecurringPaymentStrategyAction.builder()
.paymentStrategy(PaymentStrategy.CHECKOUT)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetRecurringPaymentStrategyAction with checking for non-null required valuesbuilds CartSetRecurringPaymentStrategyAction without checking for non-null required valuesNew value to set.of()factory method for an instance of CartSetRecurringPaymentStrategyActionBuilderof(CartSetRecurringPaymentStrategyAction template) create builder for CartSetRecurringPaymentStrategyAction instancepaymentStrategy(PaymentStrategy paymentStrategy) New value to set.
-
Constructor Details
-
CartSetRecurringPaymentStrategyActionBuilder
public CartSetRecurringPaymentStrategyActionBuilder()
-
-
Method Details
-
paymentStrategy
public CartSetRecurringPaymentStrategyActionBuilder paymentStrategy(PaymentStrategy paymentStrategy) New value to set.
- Parameters:
paymentStrategy- value to be set- Returns:
- Builder
-
getPaymentStrategy
New value to set.
- Returns:
- paymentStrategy
-
build
builds CartSetRecurringPaymentStrategyAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetRecurringPaymentStrategyAction>- Returns:
- CartSetRecurringPaymentStrategyAction
-
buildUnchecked
builds CartSetRecurringPaymentStrategyAction without checking for non-null required values- Returns:
- CartSetRecurringPaymentStrategyAction
-
of
factory method for an instance of CartSetRecurringPaymentStrategyActionBuilder- Returns:
- builder
-
of
public static CartSetRecurringPaymentStrategyActionBuilder of(CartSetRecurringPaymentStrategyAction template) create builder for CartSetRecurringPaymentStrategyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-