Package org.apache.juneau.petstore.dto
Class Order
java.lang.Object
org.apache.juneau.petstore.dto.Order
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()Returns the order ID.longgetPetId()Returns the ID of the pet being ordered.Returns the shipping date as an ISO 8601 string.Returns the lifecycle status of the order.setId(long value) Sets the order ID.setPetId(long value) Sets the ID of the pet being ordered.setShipDate(String value) Sets the shipping date.setStatus(OrderStatus value) Sets the lifecycle status of the order.
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
getId
Returns the order ID.- Returns:
- The order ID.
-
setId
Sets the order ID.- Parameters:
value- The new value.- Returns:
- This object.
-
getPetId
Returns the ID of the pet being ordered.- Returns:
- The ID of the pet being ordered.
-
setPetId
Sets the ID of the pet being ordered.- Parameters:
value- The new value.- Returns:
- This object.
-
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
Sets the shipping date.- Parameters:
value- The new value. Can benull 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
Sets the lifecycle status of the order.- Parameters:
value- The new value.- Returns:
- This object.
-