Class OrderKeyReferenceBuilder

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

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

     OrderKeyReference orderKeyReference = OrderKeyReference.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • OrderKeyReferenceBuilder

      public OrderKeyReferenceBuilder()
  • Method Details

    • key

      public OrderKeyReferenceBuilder key(String 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 OrderKeyReference build()
      builds OrderKeyReference with checking for non-null required values
      Specified by:
      build in interface Builder<OrderKeyReference>
      Returns:
      OrderKeyReference
    • buildUnchecked

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

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

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