1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetCapacityReservation`](crate::operation::get_capacity_reservation::builders::GetCapacityReservationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::get_capacity_reservation::builders::GetCapacityReservationFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_capacity_reservation::builders::GetCapacityReservationFluentBuilder::set_name):<br>required: **true**<br><p>The name of the capacity reservation.</p><br>
    /// - On success, responds with [`GetCapacityReservationOutput`](crate::operation::get_capacity_reservation::GetCapacityReservationOutput) with field(s):
    ///   - [`capacity_reservation(Option<CapacityReservation>)`](crate::operation::get_capacity_reservation::GetCapacityReservationOutput::capacity_reservation): <p>The requested capacity reservation structure.</p>
    /// - On failure, responds with [`SdkError<GetCapacityReservationError>`](crate::operation::get_capacity_reservation::GetCapacityReservationError)
    pub fn get_capacity_reservation(&self) -> crate::operation::get_capacity_reservation::builders::GetCapacityReservationFluentBuilder {
        crate::operation::get_capacity_reservation::builders::GetCapacityReservationFluentBuilder::new(self.handle.clone())
    }
}