#[non_exhaustive]pub struct CreateOrderInputBuilder { /* private fields */ }
Expand description
A builder for CreateOrderInput
.
Implementations§
source§impl CreateOrderInputBuilder
impl CreateOrderInputBuilder
sourcepub fn outpost_identifier(self, input: impl Into<String>) -> Self
pub fn outpost_identifier(self, input: impl Into<String>) -> Self
The ID or the Amazon Resource Name (ARN) of the Outpost.
This field is required.sourcepub fn set_outpost_identifier(self, input: Option<String>) -> Self
pub fn set_outpost_identifier(self, input: Option<String>) -> Self
The ID or the Amazon Resource Name (ARN) of the Outpost.
sourcepub fn get_outpost_identifier(&self) -> &Option<String>
pub fn get_outpost_identifier(&self) -> &Option<String>
The ID or the Amazon Resource Name (ARN) of the Outpost.
sourcepub fn line_items(self, input: LineItemRequest) -> Self
pub fn line_items(self, input: LineItemRequest) -> Self
Appends an item to line_items
.
To override the contents of this collection use set_line_items
.
The line items that make up the order.
sourcepub fn set_line_items(self, input: Option<Vec<LineItemRequest>>) -> Self
pub fn set_line_items(self, input: Option<Vec<LineItemRequest>>) -> Self
The line items that make up the order.
sourcepub fn get_line_items(&self) -> &Option<Vec<LineItemRequest>>
pub fn get_line_items(&self) -> &Option<Vec<LineItemRequest>>
The line items that make up the order.
sourcepub fn payment_option(self, input: PaymentOption) -> Self
pub fn payment_option(self, input: PaymentOption) -> Self
The payment option.
This field is required.sourcepub fn set_payment_option(self, input: Option<PaymentOption>) -> Self
pub fn set_payment_option(self, input: Option<PaymentOption>) -> Self
The payment option.
sourcepub fn get_payment_option(&self) -> &Option<PaymentOption>
pub fn get_payment_option(&self) -> &Option<PaymentOption>
The payment option.
sourcepub fn payment_term(self, input: PaymentTerm) -> Self
pub fn payment_term(self, input: PaymentTerm) -> Self
The payment terms.
sourcepub fn set_payment_term(self, input: Option<PaymentTerm>) -> Self
pub fn set_payment_term(self, input: Option<PaymentTerm>) -> Self
The payment terms.
sourcepub fn get_payment_term(&self) -> &Option<PaymentTerm>
pub fn get_payment_term(&self) -> &Option<PaymentTerm>
The payment terms.
sourcepub fn build(self) -> Result<CreateOrderInput, BuildError>
pub fn build(self) -> Result<CreateOrderInput, BuildError>
Consumes the builder and constructs a CreateOrderInput
.
source§impl CreateOrderInputBuilder
impl CreateOrderInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateOrderOutput, SdkError<CreateOrderError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateOrderOutput, SdkError<CreateOrderError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateOrderInputBuilder
impl Clone for CreateOrderInputBuilder
source§fn clone(&self) -> CreateOrderInputBuilder
fn clone(&self) -> CreateOrderInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreateOrderInputBuilder
impl Debug for CreateOrderInputBuilder
source§impl Default for CreateOrderInputBuilder
impl Default for CreateOrderInputBuilder
source§fn default() -> CreateOrderInputBuilder
fn default() -> CreateOrderInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CreateOrderInputBuilder
impl PartialEq for CreateOrderInputBuilder
impl StructuralPartialEq for CreateOrderInputBuilder
Auto Trait Implementations§
impl Freeze for CreateOrderInputBuilder
impl RefUnwindSafe for CreateOrderInputBuilder
impl Send for CreateOrderInputBuilder
impl Sync for CreateOrderInputBuilder
impl Unpin for CreateOrderInputBuilder
impl UnwindSafe for CreateOrderInputBuilder
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.