Interface Order.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Order.Builder,
,Order> SdkBuilder<Order.Builder,
,Order> SdkPojo
- Enclosing class:
Order
-
Method Summary
Modifier and TypeMethodDescriptionlineItems
(Collection<LineItem> lineItems) The line items for the orderlineItems
(Consumer<LineItem.Builder>... lineItems) The line items for the orderThe line items for the orderorderFulfilledDate
(Instant orderFulfilledDate) The fulfillment date of the order.The ID of the order.orderSubmissionDate
(Instant orderSubmissionDate) The submission date for the order.The type of order.The type of order.The ID of the Outpost in the order.paymentOption
(String paymentOption) The payment option for the order.paymentOption
(PaymentOption paymentOption) The payment option for the order.paymentTerm
(String paymentTerm) The payment term.paymentTerm
(PaymentTerm paymentTerm) The payment term.The status of the order.status
(OrderStatus status) The status of the order.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
, andFULFILLED
.- 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
, andFULFILLED
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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
, andFULFILLED
.- 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
, andFULFILLED
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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
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
The line items for the order
This is a convenience method that creates an instance of theLineItem.Builder
avoiding the need to create one manually viaLineItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolineItems(List<LineItem>)
.- Parameters:
lineItems
- a consumer that will call methods onLineItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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
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
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
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:
-