// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DescribeCapacityReservationFleets`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`capacity_reservation_fleet_ids(impl Into<String>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::capacity_reservation_fleet_ids) / [`set_capacity_reservation_fleet_ids(Option<Vec::<String>>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::set_capacity_reservation_fleet_ids):<br>required: **false**<br><p>The IDs of the Capacity Reservation Fleets to describe.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to use to retrieve the next page of results.</p><br>
/// - [`max_results(i32)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned <code>nextToken</code> value. This value can be between 5 and 500. If <code>maxResults</code> is given a larger value than 500, you receive an error.</p><br>
/// - [`filters(Filter)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::set_filters):<br>required: **false**<br><p>One or more filters.</p> <ul> <li> <p><code>state</code> - The state of the Fleet (<code>submitted</code> | <code>modifying</code> | <code>active</code> | <code>partially_fulfilled</code> | <code>expiring</code> | <code>expired</code> | <code>cancelling</code> | <code>cancelled</code> | <code>failed</code>).</p></li> <li> <p><code>instance-match-criteria</code> - The instance matching criteria for the Fleet. Only <code>open</code> is supported.</p></li> <li> <p><code>tenancy</code> - The tenancy of the Fleet (<code>default</code> | <code>dedicated</code>).</p></li> <li> <p><code>allocation-strategy</code> - The allocation strategy used by the Fleet. Only <code>prioritized</code> is supported.</p></li> </ul><br>
/// - [`dry_run(bool)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
/// - On success, responds with [`DescribeCapacityReservationFleetsOutput`](crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsOutput) with field(s):
/// - [`capacity_reservation_fleets(Option<Vec::<CapacityReservationFleet>>)`](crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsOutput::capacity_reservation_fleets): <p>Information about the Capacity Reservation Fleets.</p>
/// - [`next_token(Option<String>)`](crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsOutput::next_token): <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
/// - On failure, responds with [`SdkError<DescribeCapacityReservationFleetsError>`](crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError)
pub fn describe_capacity_reservation_fleets(
&self,
) -> crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder {
crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::new(self.handle.clone())
}
}