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)

      User-defined unique identifier of the referenced resource. If the referenced resource does not exist, the state of the ImportOperation will be set to unresolved until the referenced resource is created.

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

      public String getKey()

      User-defined unique identifier of the referenced resource. If the referenced resource does not exist, the state of the ImportOperation will be set to unresolved until the referenced resource is created.

      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