Class OrderEditReferenceBuilder

java.lang.Object
com.commercetools.api.models.order_edit.OrderEditReferenceBuilder
All Implemented Interfaces:
Builder<OrderEditReference>

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

     OrderEditReference orderEditReference = OrderEditReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • OrderEditReferenceBuilder

      public OrderEditReferenceBuilder()
  • Method Details

    • id

      Unique identifier of the referenced OrderEdit.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • obj

      Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • withObj

      Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • obj

      Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.

      Parameters:
      obj - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      Unique identifier of the referenced OrderEdit.

      Returns:
      id
    • getObj

      @Nullable public OrderEdit getObj()

      Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.

      Returns:
      obj
    • build

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

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

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

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