1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PurchaseOffering`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`offering_arn(impl Into<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::offering_arn) / [`set_offering_arn(Option<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::set_offering_arn):<br>required: **true**<br>The Amazon Resource Name (ARN) of the offering.<br>
    ///   - [`reservation_name(impl Into<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::reservation_name) / [`set_reservation_name(Option<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::set_reservation_name):<br>required: **true**<br>The name that you want to use for the reservation.<br>
    ///   - [`start(impl Into<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::start) / [`set_start(Option<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::set_start):<br>required: **true**<br>The date and time that you want the reservation to begin, in Coordinated Universal Time (UTC). You can specify any date and time between 12:00am on the first day of the current month to the current time on today's date, inclusive. Specify the start in a 24-hour notation. Use the following format: YYYY-MM-DDTHH:mm:SSZ, where T and Z are literal characters. For example, to specify 11:30pm on March 5, 2020, enter 2020-03-05T23:30:00Z.<br>
    /// - On success, responds with [`PurchaseOfferingOutput`](crate::operation::purchase_offering::PurchaseOfferingOutput) with field(s):
    ///   - [`reservation(Option<Reservation>)`](crate::operation::purchase_offering::PurchaseOfferingOutput::reservation): A pricing agreement for a discounted rate for a specific outbound bandwidth that your MediaConnect account will use each month over a specific time period. The discounted rate in the reservation applies to outbound bandwidth for all flows from your account until your account reaches the amount of bandwidth in your reservation. If you use more outbound bandwidth than the agreed upon amount in a single month, the overage is charged at the on-demand rate.
    /// - On failure, responds with [`SdkError<PurchaseOfferingError>`](crate::operation::purchase_offering::PurchaseOfferingError)
    pub fn purchase_offering(&self) -> crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder {
        crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::new(self.handle.clone())
    }
}