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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Order.BuilderlineItems(Collection<LineItem> lineItems)The line items for the orderOrder.BuilderlineItems(Consumer<LineItem.Builder>... lineItems)The line items for the orderOrder.BuilderlineItems(LineItem... lineItems)The line items for the orderOrder.BuilderorderFulfilledDate(Instant orderFulfilledDate)The fulfillment date of the order.Order.BuilderorderId(String orderId)The ID of the order.Order.BuilderorderSubmissionDate(Instant orderSubmissionDate)The submission date for the order.Order.BuilderorderType(String orderType)The type of order.Order.BuilderorderType(OrderType orderType)The type of order.Order.BuilderoutpostId(String outpostId)The ID of the Outpost in the order.Order.BuilderpaymentOption(String paymentOption)The payment option for the order.Order.BuilderpaymentOption(PaymentOption paymentOption)The payment option for the order.Order.BuilderpaymentTerm(String paymentTerm)The payment term.Order.BuilderpaymentTerm(PaymentTerm paymentTerm)The payment term.Order.Builderstatus(String status)The status of the order.Order.Builderstatus(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 Detail
-
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, 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:
OrderStatus,OrderStatus
-
-
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, 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:
OrderStatus,OrderStatus
-
-
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 theLineItem.Builderavoiding the need to create one manually viaLineItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#lineItems(List.) - 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:
#lineItems(java.util.Collection)
-
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,PaymentOption
-
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:
PaymentOption,PaymentOption
-
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,PaymentTerm
-
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:
PaymentTerm,PaymentTerm
-
orderType
Order.Builder orderType(String orderType)
The type of order.
-
orderType
Order.Builder orderType(OrderType orderType)
The type of order.
-
-