aws_sdk_dataexchange/client/list_data_grants.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListDataGrants`](crate::operation::list_data_grants::builders::ListDataGrantsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_data_grants::builders::ListDataGrantsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`max_results(i32)`](crate::operation::list_data_grants::builders::ListDataGrantsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_data_grants::builders::ListDataGrantsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to be included in the next page.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_data_grants::builders::ListDataGrantsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_data_grants::builders::ListDataGrantsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token used to retrieve the next page of results for this operation.</p><br>
/// - On success, responds with [`ListDataGrantsOutput`](crate::operation::list_data_grants::ListDataGrantsOutput) with field(s):
/// - [`data_grant_summaries(Option<Vec::<DataGrantSummaryEntry>>)`](crate::operation::list_data_grants::ListDataGrantsOutput::data_grant_summaries): <p>An object that contains a list of data grant information.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_data_grants::ListDataGrantsOutput::next_token): <p>The pagination token used to retrieve the next page of results for this operation.</p>
/// - On failure, responds with [`SdkError<ListDataGrantsError>`](crate::operation::list_data_grants::ListDataGrantsError)
pub fn list_data_grants(&self) -> crate::operation::list_data_grants::builders::ListDataGrantsFluentBuilder {
crate::operation::list_data_grants::builders::ListDataGrantsFluentBuilder::new(self.handle.clone())
}
}