1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetGroupsForCapacityReservation`](crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`capacity_reservation_id(impl Into<String>)`](crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::capacity_reservation_id) / [`set_capacity_reservation_id(Option<String>)`](crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::set_capacity_reservation_id):<br>required: **true**<br><p>The ID of the Capacity Reservation. If you specify a Capacity Reservation that is shared with you, the operation returns only Capacity Reservation groups that you own.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::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::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::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>
    ///   - [`dry_run(bool)`](crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::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 [`GetGroupsForCapacityReservationOutput`](crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationOutput::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>
    ///   - [`capacity_reservation_groups(Option<Vec::<CapacityReservationGroup>>)`](crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationOutput::capacity_reservation_groups): <p>Information about the resource groups to which the Capacity Reservation has been added.</p>
    /// - On failure, responds with [`SdkError<GetGroupsForCapacityReservationError>`](crate::operation::get_groups_for_capacity_reservation::GetGroupsForCapacityReservationError)
    pub fn get_groups_for_capacity_reservation(
        &self,
    ) -> crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder {
        crate::operation::get_groups_for_capacity_reservation::builders::GetGroupsForCapacityReservationFluentBuilder::new(self.handle.clone())
    }
}