@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Order extends Object implements Serializable, Cloneable, StructuredPojo
Information about an order.
Constructor and Description |
---|
Order() |
Modifier and Type | Method and Description |
---|---|
Order |
clone() |
boolean |
equals(Object obj) |
List<LineItem> |
getLineItems()
The line items for the order
|
Date |
getOrderFulfilledDate()
The fulfillment date of the order.
|
String |
getOrderId()
The ID of the order.
|
Date |
getOrderSubmissionDate()
The submission date for the order.
|
String |
getOutpostId()
The ID of the Outpost in the order.
|
String |
getPaymentOption()
The payment option for the order.
|
String |
getStatus()
The status of the order.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLineItems(Collection<LineItem> lineItems)
The line items for the order
|
void |
setOrderFulfilledDate(Date orderFulfilledDate)
The fulfillment date of the order.
|
void |
setOrderId(String orderId)
The ID of the order.
|
void |
setOrderSubmissionDate(Date orderSubmissionDate)
The submission date for the order.
|
void |
setOutpostId(String outpostId)
The ID of the Outpost in the order.
|
void |
setPaymentOption(String paymentOption)
The payment option for the order.
|
void |
setStatus(String status)
The status of the order.
|
String |
toString()
Returns a string representation of this object.
|
Order |
withLineItems(Collection<LineItem> lineItems)
The line items for the order
|
Order |
withLineItems(LineItem... lineItems)
The line items for the order
|
Order |
withOrderFulfilledDate(Date orderFulfilledDate)
The fulfillment date of the order.
|
Order |
withOrderId(String orderId)
The ID of the order.
|
Order |
withOrderSubmissionDate(Date orderSubmissionDate)
The submission date for the order.
|
Order |
withOutpostId(String outpostId)
The ID of the Outpost in the order.
|
Order |
withPaymentOption(PaymentOption paymentOption)
The payment option for the order.
|
Order |
withPaymentOption(String paymentOption)
The payment option for the order.
|
Order |
withStatus(OrderStatus status)
The status of the order.
|
Order |
withStatus(String status)
The status of the order.
|
public void setOutpostId(String outpostId)
The ID of the Outpost in the order.
outpostId
- The ID of the Outpost in the order.public String getOutpostId()
The ID of the Outpost in the order.
public Order withOutpostId(String outpostId)
The ID of the Outpost in the order.
outpostId
- The ID of the Outpost in the order.public void setOrderId(String orderId)
The ID of the order.
orderId
- The ID of the order.public String getOrderId()
The ID of the order.
public Order withOrderId(String orderId)
The ID of the order.
orderId
- The ID of the order.public void setStatus(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
.
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
.
OrderStatus
public String getStatus()
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
.
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
.
OrderStatus
public Order withStatus(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
.
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
.
OrderStatus
public Order withStatus(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
.
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
.
OrderStatus
public List<LineItem> getLineItems()
The line items for the order
public void setLineItems(Collection<LineItem> lineItems)
The line items for the order
lineItems
- The line items for the orderpublic Order withLineItems(LineItem... lineItems)
The line items for the order
NOTE: This method appends the values to the existing list (if any). Use
setLineItems(java.util.Collection)
or withLineItems(java.util.Collection)
if you want to
override the existing values.
lineItems
- The line items for the orderpublic Order withLineItems(Collection<LineItem> lineItems)
The line items for the order
lineItems
- The line items for the orderpublic void setPaymentOption(String paymentOption)
The payment option for the order.
paymentOption
- The payment option for the order.PaymentOption
public String getPaymentOption()
The payment option for the order.
PaymentOption
public Order withPaymentOption(String paymentOption)
The payment option for the order.
paymentOption
- The payment option for the order.PaymentOption
public Order withPaymentOption(PaymentOption paymentOption)
The payment option for the order.
paymentOption
- The payment option for the order.PaymentOption
public void setOrderSubmissionDate(Date orderSubmissionDate)
The submission date for the order.
orderSubmissionDate
- The submission date for the order.public Date getOrderSubmissionDate()
The submission date for the order.
public Order withOrderSubmissionDate(Date orderSubmissionDate)
The submission date for the order.
orderSubmissionDate
- The submission date for the order.public void setOrderFulfilledDate(Date orderFulfilledDate)
The fulfillment date of the order.
orderFulfilledDate
- The fulfillment date of the order.public Date getOrderFulfilledDate()
The fulfillment date of the order.
public Order withOrderFulfilledDate(Date orderFulfilledDate)
The fulfillment date of the order.
orderFulfilledDate
- The fulfillment date of the order.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.