aws_sdk_devicefarm/client/purchase_offering.rs
// 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_id(impl Into<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::offering_id) / [`set_offering_id(Option<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::set_offering_id):<br>required: **true**<br><p>The ID of the offering.</p><br>
/// - [`quantity(i32)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::quantity) / [`set_quantity(Option<i32>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::set_quantity):<br>required: **true**<br><p>The number of device slots to purchase in an offering request.</p><br>
/// - [`offering_promotion_id(impl Into<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::offering_promotion_id) / [`set_offering_promotion_id(Option<String>)`](crate::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder::set_offering_promotion_id):<br>required: **false**<br><p>The ID of the offering promotion to be applied to the purchase.</p><br>
/// - On success, responds with [`PurchaseOfferingOutput`](crate::operation::purchase_offering::PurchaseOfferingOutput) with field(s):
/// - [`offering_transaction(Option<OfferingTransaction>)`](crate::operation::purchase_offering::PurchaseOfferingOutput::offering_transaction): <p>Represents the offering transaction for the purchase result.</p>
/// - 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())
}
}