pub struct CreateOrderFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateOrder
.
Creates an order for an Outpost.
Implementations§
source§impl CreateOrderFluentBuilder
impl CreateOrderFluentBuilder
sourcepub fn as_input(&self) -> &CreateOrderInputBuilder
pub fn as_input(&self) -> &CreateOrderInputBuilder
Access the CreateOrder as a reference.
sourcepub async fn send(
self,
) -> Result<CreateOrderOutput, SdkError<CreateOrderError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateOrderOutput, SdkError<CreateOrderError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<CreateOrderOutput, CreateOrderError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateOrderOutput, CreateOrderError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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 LineItems
.
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.
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.
Trait Implementations§
source§impl Clone for CreateOrderFluentBuilder
impl Clone for CreateOrderFluentBuilder
source§fn clone(&self) -> CreateOrderFluentBuilder
fn clone(&self) -> CreateOrderFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateOrderFluentBuilder
impl !RefUnwindSafe for CreateOrderFluentBuilder
impl Send for CreateOrderFluentBuilder
impl Sync for CreateOrderFluentBuilder
impl Unpin for CreateOrderFluentBuilder
impl !UnwindSafe for CreateOrderFluentBuilder
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