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
impl StructuralPartialEq for OrderSummaryBuilder
Auto Trait Implementations§
impl Freeze for OrderSummaryBuilder
impl RefUnwindSafe for OrderSummaryBuilder
impl Send for OrderSummaryBuilder
impl Sync for OrderSummaryBuilder
impl Unpin for OrderSummaryBuilder
impl UnwindSafe for OrderSummaryBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more