aws_sdk_datazone/client/list_project_memberships.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListProjectMemberships`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`domain_identifier(impl Into<String>)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The identifier of the Amazon DataZone domain in which you want to list project memberships.</p><br>
/// - [`project_identifier(impl Into<String>)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::project_identifier) / [`set_project_identifier(Option<String>)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::set_project_identifier):<br>required: **true**<br><p>The identifier of the project whose memberships you want to list.</p><br>
/// - [`sort_by(SortFieldProject)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::sort_by) / [`set_sort_by(Option<SortFieldProject>)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::set_sort_by):<br>required: **false**<br><p>The method by which you want to sort the project memberships.</p><br>
/// - [`sort_order(SortOrder)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::sort_order) / [`set_sort_order(Option<SortOrder>)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::set_sort_order):<br>required: **false**<br><p>The sort order of the project memberships.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::set_next_token):<br>required: **false**<br><p>When the number of memberships is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of memberships, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListProjectMemberships</code> to list the next set of memberships.</p><br>
/// - [`max_results(i32)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of memberships to return in a single call to <code>ListProjectMemberships</code>. When the number of memberships to be listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value that you can use in a subsequent call to <code>ListProjectMemberships</code> to list the next set of memberships.</p><br>
/// - On success, responds with [`ListProjectMembershipsOutput`](crate::operation::list_project_memberships::ListProjectMembershipsOutput) with field(s):
/// - [`members(Vec::<ProjectMember>)`](crate::operation::list_project_memberships::ListProjectMembershipsOutput::members): <p>The members of the project.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_project_memberships::ListProjectMembershipsOutput::next_token): <p>When the number of memberships is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of memberships, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListProjectMemberships</code> to list the next set of memberships.</p>
/// - On failure, responds with [`SdkError<ListProjectMembershipsError>`](crate::operation::list_project_memberships::ListProjectMembershipsError)
pub fn list_project_memberships(&self) -> crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder {
crate::operation::list_project_memberships::builders::ListProjectMembershipsFluentBuilder::new(self.handle.clone())
}
}