Class Order

java.lang.Object
org.apache.juneau.petstore.dto.Order

public class Order extends Object
Order domain bean.

Represents an order placed against a Pet.

See Also:
  • Constructor Details

  • Method Details

    • getId

      public long getId()
      Returns the order ID.
      Returns:
      The order ID.
    • setId

      public Order setId(long value)
      Sets the order ID.
      Parameters:
      value - The new value.
      Returns:
      This object.
    • getPetId

      public long getPetId()
      Returns the ID of the pet being ordered.
      Returns:
      The ID of the pet being ordered.
    • setPetId

      public Order setPetId(long value)
      Sets the ID of the pet being ordered.
      Parameters:
      value - The new value.
      Returns:
      This object.
    • getShipDate

      public String getShipDate()
      Returns the shipping date as an ISO 8601 string.
      Returns:
      The shipping date as an ISO 8601 string. Can be null if the order has not yet shipped.
    • setShipDate

      public Order setShipDate(String value)
      Sets the shipping date.
      Parameters:
      value - The new value. Can be null to indicate the order has not shipped.
      Returns:
      This object.
    • getStatus

      Returns the lifecycle status of the order.
      Returns:
      The lifecycle status of the order.
    • setStatus

      public Order setStatus(OrderStatus value)
      Sets the lifecycle status of the order.
      Parameters:
      value - The new value.
      Returns:
      This object.