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