Class OrderResourceIdentifierBuilder

java.lang.Object
com.commercetools.api.models.order.OrderResourceIdentifierBuilder
All Implemented Interfaces:
Builder<OrderResourceIdentifier>

@Deprecated public class OrderResourceIdentifierBuilder extends Object implements Builder<OrderResourceIdentifier>
Deprecated.
OrderResourceIdentifierBuilder
Example to create an instance using the builder pattern

     OrderResourceIdentifier orderResourceIdentifier = OrderResourceIdentifier.builder()
             .build()
 
  • Constructor Details

    • OrderResourceIdentifierBuilder

      public OrderResourceIdentifierBuilder()
      Deprecated.
  • Method Details

    • id

      Deprecated.

      Unique identifier of the referenced resource. Required if key is absent.

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

      Deprecated.

      User-defined unique identifier of the referenced resource. Required if id is absent.

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

      @Nullable public String getId()
      Deprecated.

      Unique identifier of the referenced resource. Required if key is absent.

      Returns:
      id
    • getKey

      @Nullable public String getKey()
      Deprecated.

      User-defined unique identifier of the referenced resource. Required if id is absent.

      Returns:
      key
    • build

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

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

      public static OrderResourceIdentifierBuilder of()
      Deprecated.
      factory method for an instance of OrderResourceIdentifierBuilder
      Returns:
      builder
    • of

      Deprecated.
      create builder for OrderResourceIdentifier instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder