Interface Order.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Order.Builder,Order>, SdkBuilder<Order.Builder,Order>, SdkPojo
Enclosing class:
Order

public static interface Order.Builder extends SdkPojo, CopyableBuilder<Order.Builder,Order>
  • Method Details

    • outpostId

      Order.Builder outpostId(String outpostId)

      The ID of the Outpost in the order.

      Parameters:
      outpostId - The ID of the Outpost in the order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • orderId

      Order.Builder orderId(String orderId)

      The ID of the order.

      Parameters:
      orderId - The ID of the order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      Order.Builder status(String status)

      The status of the order.

      • PREPARING - Order is received and being prepared.

      • IN_PROGRESS - Order is either being built, shipped, or installed. To get more details, see the line item status.

      • COMPLETED - Order is complete.

      • CANCELLED - Order is cancelled.

      • ERROR - Customer should contact support.

      The following status are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, and FULFILLED.

      Parameters:
      status - The status of the order.

      • PREPARING - Order is received and being prepared.

      • IN_PROGRESS - Order is either being built, shipped, or installed. To get more details, see the line item status.

      • COMPLETED - Order is complete.

      • CANCELLED - Order is cancelled.

      • ERROR - Customer should contact support.

      The following status are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, and FULFILLED.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Order.Builder status(OrderStatus status)

      The status of the order.

      • PREPARING - Order is received and being prepared.

      • IN_PROGRESS - Order is either being built, shipped, or installed. To get more details, see the line item status.

      • COMPLETED - Order is complete.

      • CANCELLED - Order is cancelled.

      • ERROR - Customer should contact support.

      The following status are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, and FULFILLED.

      Parameters:
      status - The status of the order.

      • PREPARING - Order is received and being prepared.

      • IN_PROGRESS - Order is either being built, shipped, or installed. To get more details, see the line item status.

      • COMPLETED - Order is complete.

      • CANCELLED - Order is cancelled.

      • ERROR - Customer should contact support.

      The following status are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, and FULFILLED.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lineItems

      Order.Builder lineItems(Collection<LineItem> lineItems)

      The line items for the order

      Parameters:
      lineItems - The line items for the order
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lineItems

      Order.Builder lineItems(LineItem... lineItems)

      The line items for the order

      Parameters:
      lineItems - The line items for the order
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lineItems

      Order.Builder lineItems(Consumer<LineItem.Builder>... lineItems)

      The line items for the order

      This is a convenience method that creates an instance of the LineItem.Builder avoiding the need to create one manually via LineItem.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lineItems(List<LineItem>).

      Parameters:
      lineItems - a consumer that will call methods on LineItem.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentOption

      Order.Builder paymentOption(String paymentOption)

      The payment option for the order.

      Parameters:
      paymentOption - The payment option for the order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentOption

      Order.Builder paymentOption(PaymentOption paymentOption)

      The payment option for the order.

      Parameters:
      paymentOption - The payment option for the order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • orderSubmissionDate

      Order.Builder orderSubmissionDate(Instant orderSubmissionDate)

      The submission date for the order.

      Parameters:
      orderSubmissionDate - The submission date for the order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • orderFulfilledDate

      Order.Builder orderFulfilledDate(Instant orderFulfilledDate)

      The fulfillment date of the order.

      Parameters:
      orderFulfilledDate - The fulfillment date of the order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentTerm

      Order.Builder paymentTerm(String paymentTerm)

      The payment term.

      Parameters:
      paymentTerm - The payment term.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentTerm

      Order.Builder paymentTerm(PaymentTerm paymentTerm)

      The payment term.

      Parameters:
      paymentTerm - The payment term.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • orderType

      Order.Builder orderType(String orderType)

      The type of order.

      Parameters:
      orderType - The type of order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • orderType

      Order.Builder orderType(OrderType orderType)

      The type of order.

      Parameters:
      orderType - The type of order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: