// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListPermissionAssociations`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`permission_arn(impl Into<String>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::permission_arn) / [`set_permission_arn(Option<String>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::set_permission_arn):<br>required: **false**<br><p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the managed permission.</p><br>
/// - [`permission_version(i32)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::permission_version) / [`set_permission_version(Option<i32>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::set_permission_version):<br>required: **false**<br><p>Specifies that you want to list only those associations with resource shares that use this version of the managed permission. If you don't provide a value for this parameter, then the operation returns information about associations with resource shares that use any version of the managed permission.</p><br>
/// - [`association_status(ResourceShareAssociationStatus)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::association_status) / [`set_association_status(Option<ResourceShareAssociationStatus>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::set_association_status):<br>required: **false**<br><p>Specifies that you want to list only those associations with resource shares that match this status.</p><br>
/// - [`resource_type(impl Into<String>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::resource_type) / [`set_resource_type(Option<String>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::set_resource_type):<br>required: **false**<br><p>Specifies that you want to list only those associations with resource shares that include at least one resource of this resource type.</p><br>
/// - [`feature_set(PermissionFeatureSet)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::feature_set) / [`set_feature_set(Option<PermissionFeatureSet>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::set_feature_set):<br>required: **false**<br><p>Specifies that you want to list only those associations with resource shares that have a <code>featureSet</code> with this value.</p><br>
/// - [`default_version(bool)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::default_version) / [`set_default_version(Option<bool>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::set_default_version):<br>required: **false**<br><p>When <code>true</code>, specifies that you want to list only those associations with resource shares that use the default version of the specified managed permission.</p> <p>When <code>false</code> (the default value), lists associations with resource shares that use any version of the specified managed permission.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::set_next_token):<br>required: **false**<br><p>Specifies that you want to receive the next page of results. Valid only if you received a <code>NextToken</code> response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's <code>NextToken</code> response to request the next page of results.</p><br>
/// - [`max_results(i32)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::set_max_results):<br>required: **false**<br><p>Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the <code>NextToken</code> response element is returned with a value (not null). Include the specified value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p><br>
/// - On success, responds with [`ListPermissionAssociationsOutput`](crate::operation::list_permission_associations::ListPermissionAssociationsOutput) with field(s):
/// - [`permissions(Option<Vec::<AssociatedPermission>>)`](crate::operation::list_permission_associations::ListPermissionAssociationsOutput::permissions): <p>A structure with information about this customer managed permission.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_permission_associations::ListPermissionAssociationsOutput::next_token): <p>If present, this value indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the <code>NextToken</code> response element comes back as <code>null</code>. This indicates that this is the last page of results.</p>
/// - On failure, responds with [`SdkError<ListPermissionAssociationsError>`](crate::operation::list_permission_associations::ListPermissionAssociationsError)
pub fn list_permission_associations(&self) -> crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder {
crate::operation::list_permission_associations::builders::ListPermissionAssociationsFluentBuilder::new(self.handle.clone())
}
}