1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateOrder`](crate::operation::create_order::builders::CreateOrderFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`outpost_identifier(impl Into<String>)`](crate::operation::create_order::builders::CreateOrderFluentBuilder::outpost_identifier) / [`set_outpost_identifier(Option<String>)`](crate::operation::create_order::builders::CreateOrderFluentBuilder::set_outpost_identifier):<br>required: **true**<br><p> The ID or the Amazon Resource Name (ARN) of the Outpost. </p><br>
    ///   - [`line_items(LineItemRequest)`](crate::operation::create_order::builders::CreateOrderFluentBuilder::line_items) / [`set_line_items(Option<Vec::<LineItemRequest>>)`](crate::operation::create_order::builders::CreateOrderFluentBuilder::set_line_items):<br>required: **true**<br><p>The line items that make up the order.</p><br>
    ///   - [`payment_option(PaymentOption)`](crate::operation::create_order::builders::CreateOrderFluentBuilder::payment_option) / [`set_payment_option(Option<PaymentOption>)`](crate::operation::create_order::builders::CreateOrderFluentBuilder::set_payment_option):<br>required: **true**<br><p>The payment option.</p><br>
    ///   - [`payment_term(PaymentTerm)`](crate::operation::create_order::builders::CreateOrderFluentBuilder::payment_term) / [`set_payment_term(Option<PaymentTerm>)`](crate::operation::create_order::builders::CreateOrderFluentBuilder::set_payment_term):<br>required: **false**<br><p>The payment terms.</p><br>
    /// - On success, responds with [`CreateOrderOutput`](crate::operation::create_order::CreateOrderOutput) with field(s):
    ///   - [`order(Option<Order>)`](crate::operation::create_order::CreateOrderOutput::order): <p>Information about this order.</p>
    /// - On failure, responds with [`SdkError<CreateOrderError>`](crate::operation::create_order::CreateOrderError)
    pub fn create_order(&self) -> crate::operation::create_order::builders::CreateOrderFluentBuilder {
        crate::operation::create_order::builders::CreateOrderFluentBuilder::new(self.handle.clone())
    }
}