Class PaymentKeyReferenceBuilder

java.lang.Object
com.commercetools.importapi.models.common.PaymentKeyReferenceBuilder
All Implemented Interfaces:
Builder<PaymentKeyReference>

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

     PaymentKeyReference paymentKeyReference = PaymentKeyReference.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • PaymentKeyReferenceBuilder

      public PaymentKeyReferenceBuilder()
  • Method Details

    • key

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

      public String getKey()
      value of key}
      Returns:
      key
    • build

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

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

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

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