Class PaymentSetKeyActionBuilder

java.lang.Object
com.commercetools.api.models.payment.PaymentSetKeyActionBuilder
All Implemented Interfaces:
Builder<PaymentSetKeyAction>

public class PaymentSetKeyActionBuilder extends Object implements Builder<PaymentSetKeyAction>
PaymentSetKeyActionBuilder
Example to create an instance using the builder pattern

     PaymentSetKeyAction paymentSetKeyAction = PaymentSetKeyAction.builder()
             .build()
 
  • Constructor Details

    • PaymentSetKeyActionBuilder

      public PaymentSetKeyActionBuilder()
  • Method Details

    • key

      Value to set. If key is absent or null, the existing key, if any, will be removed.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • getKey

      @Nullable public String getKey()

      Value to set. If key is absent or null, the existing key, if any, will be removed.

      Returns:
      key
    • build

      public PaymentSetKeyAction build()
      builds PaymentSetKeyAction with checking for non-null required values
      Specified by:
      build in interface Builder<PaymentSetKeyAction>
      Returns:
      PaymentSetKeyAction
    • buildUnchecked

      public PaymentSetKeyAction buildUnchecked()
      builds PaymentSetKeyAction without checking for non-null required values
      Returns:
      PaymentSetKeyAction
    • of

      public static PaymentSetKeyActionBuilder of()
      factory method for an instance of PaymentSetKeyActionBuilder
      Returns:
      builder
    • of

      public static PaymentSetKeyActionBuilder of(PaymentSetKeyAction template)
      create builder for PaymentSetKeyAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder