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

     PaymentMethodSetMethodAction paymentMethodSetMethodAction = PaymentMethodSetMethodAction.builder()
             .build()
 
  • Constructor Details

    • PaymentMethodSetMethodActionBuilder

      public PaymentMethodSetMethodActionBuilder()
  • Method Details

    • method

      public PaymentMethodSetMethodActionBuilder method(@Nullable String 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

      @Nullable public String 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 interface Builder<PaymentMethodSetMethodAction>
      Returns:
      PaymentMethodSetMethodAction
    • buildUnchecked

      public 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