Struct aws_sdk_outposts::types::builders::OrderSummaryBuilder
source · #[non_exhaustive]pub struct OrderSummaryBuilder { /* private fields */ }
Expand description
A builder for OrderSummary
.
Implementations§
source§impl OrderSummaryBuilder
impl OrderSummaryBuilder
sourcepub fn outpost_id(self, input: impl Into<String>) -> Self
pub fn outpost_id(self, input: impl Into<String>) -> Self
The ID of the Outpost.
sourcepub fn set_outpost_id(self, input: Option<String>) -> Self
pub fn set_outpost_id(self, input: Option<String>) -> Self
The ID of the Outpost.
sourcepub fn get_outpost_id(&self) -> &Option<String>
pub fn get_outpost_id(&self) -> &Option<String>
The ID of the Outpost.
sourcepub fn set_order_id(self, input: Option<String>) -> Self
pub fn set_order_id(self, input: Option<String>) -> Self
The ID of the order.
sourcepub fn get_order_id(&self) -> &Option<String>
pub fn get_order_id(&self) -> &Option<String>
The ID of the order.
sourcepub fn order_type(self, input: OrderType) -> Self
pub fn order_type(self, input: OrderType) -> Self
The type of order.
sourcepub fn set_order_type(self, input: Option<OrderType>) -> Self
pub fn set_order_type(self, input: Option<OrderType>) -> Self
The type of order.
sourcepub fn get_order_type(&self) -> &Option<OrderType>
pub fn get_order_type(&self) -> &Option<OrderType>
The type of order.
sourcepub fn status(self, input: OrderStatus) -> Self
pub fn status(self, input: OrderStatus) -> Self
The status of the order.
-
PREPARING
- Order is received and is being prepared. -
IN_PROGRESS
- Order is either being built, shipped, or installed. For more information, see theLineItem
status. -
COMPLETED
- Order is complete. -
CANCELLED
- Order is cancelled. -
ERROR
- Customer should contact support.
The following statuses are deprecated: RECEIVED
, PENDING
, PROCESSING
, INSTALLING
, and FULFILLED
.
sourcepub fn set_status(self, input: Option<OrderStatus>) -> Self
pub fn set_status(self, input: Option<OrderStatus>) -> Self
The status of the order.
-
PREPARING
- Order is received and is being prepared. -
IN_PROGRESS
- Order is either being built, shipped, or installed. For more information, see theLineItem
status. -
COMPLETED
- Order is complete. -
CANCELLED
- Order is cancelled. -
ERROR
- Customer should contact support.
The following statuses are deprecated: RECEIVED
, PENDING
, PROCESSING
, INSTALLING
, and FULFILLED
.
sourcepub fn get_status(&self) -> &Option<OrderStatus>
pub fn get_status(&self) -> &Option<OrderStatus>
The status of the order.
-
PREPARING
- Order is received and is being prepared. -
IN_PROGRESS
- Order is either being built, shipped, or installed. For more information, see theLineItem
status. -
COMPLETED
- Order is complete. -
CANCELLED
- Order is cancelled. -
ERROR
- Customer should contact support.
The following statuses are deprecated: RECEIVED
, PENDING
, PROCESSING
, INSTALLING
, and FULFILLED
.
sourcepub fn line_item_counts_by_status(self, k: LineItemStatus, v: i32) -> Self
pub fn line_item_counts_by_status(self, k: LineItemStatus, v: i32) -> Self
Adds a key-value pair to line_item_counts_by_status
.
To override the contents of this collection use set_line_item_counts_by_status
.
The status of all line items in the order.
sourcepub fn set_line_item_counts_by_status(
self,
input: Option<HashMap<LineItemStatus, i32>>
) -> Self
pub fn set_line_item_counts_by_status( self, input: Option<HashMap<LineItemStatus, i32>> ) -> Self
The status of all line items in the order.
sourcepub fn get_line_item_counts_by_status(
&self
) -> &Option<HashMap<LineItemStatus, i32>>
pub fn get_line_item_counts_by_status( &self ) -> &Option<HashMap<LineItemStatus, i32>>
The status of all line items in the order.
sourcepub fn order_submission_date(self, input: DateTime) -> Self
pub fn order_submission_date(self, input: DateTime) -> Self
The submission date for the order.
sourcepub fn set_order_submission_date(self, input: Option<DateTime>) -> Self
pub fn set_order_submission_date(self, input: Option<DateTime>) -> Self
The submission date for the order.
sourcepub fn get_order_submission_date(&self) -> &Option<DateTime>
pub fn get_order_submission_date(&self) -> &Option<DateTime>
The submission date for the order.
sourcepub fn order_fulfilled_date(self, input: DateTime) -> Self
pub fn order_fulfilled_date(self, input: DateTime) -> Self
The fulfilment date for the order.
sourcepub fn set_order_fulfilled_date(self, input: Option<DateTime>) -> Self
pub fn set_order_fulfilled_date(self, input: Option<DateTime>) -> Self
The fulfilment date for the order.
sourcepub fn get_order_fulfilled_date(&self) -> &Option<DateTime>
pub fn get_order_fulfilled_date(&self) -> &Option<DateTime>
The fulfilment date for the order.
sourcepub fn build(self) -> OrderSummary
pub fn build(self) -> OrderSummary
Consumes the builder and constructs a OrderSummary
.
Trait Implementations§
source§impl Clone for OrderSummaryBuilder
impl Clone for OrderSummaryBuilder
source§fn clone(&self) -> OrderSummaryBuilder
fn clone(&self) -> OrderSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OrderSummaryBuilder
impl Debug for OrderSummaryBuilder
source§impl Default for OrderSummaryBuilder
impl Default for OrderSummaryBuilder
source§fn default() -> OrderSummaryBuilder
fn default() -> OrderSummaryBuilder
source§impl PartialEq for OrderSummaryBuilder
impl PartialEq for OrderSummaryBuilder
source§fn eq(&self, other: &OrderSummaryBuilder) -> bool
fn eq(&self, other: &OrderSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.