// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListMigrations`](crate::operation::list_migrations::builders::ListMigrationsFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`application_id(impl Into<String>)`](crate::operation::list_migrations::builders::ListMigrationsFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::list_migrations::builders::ListMigrationsFluentBuilder::set_application_id):<br>required: **true**<br><p>The unique identifier of the OpenSearch application to list migrations for.</p><br>
/// - [`status(impl Into<String>)`](crate::operation::list_migrations::builders::ListMigrationsFluentBuilder::status) / [`set_status(Option<String>)`](crate::operation::list_migrations::builders::ListMigrationsFluentBuilder::set_status):<br>required: **false**<br><p>Filters the results by migration status. Valid values are <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCEEDED</code>, and <code>FAILED</code>.</p><br>
/// - [`max_results(i32)`](crate::operation::list_migrations::builders::ListMigrationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_migrations::builders::ListMigrationsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in a single call.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_migrations::builders::ListMigrationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_migrations::builders::ListMigrationsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token from a previous call to retrieve the next set of results.</p><br>
/// - On success, responds with [`ListMigrationsOutput`](crate::operation::list_migrations::ListMigrationsOutput) with field(s):
/// - [`migrations(Option<Vec::<MigrationSummary>>)`](crate::operation::list_migrations::ListMigrationsOutput::migrations): <p>A list of migration job summaries for the specified application.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_migrations::ListMigrationsOutput::next_token): <p>The pagination token to use in a subsequent call to retrieve the next set of results.</p>
/// - On failure, responds with [`SdkError<ListMigrationsError>`](crate::operation::list_migrations::ListMigrationsError)
pub fn list_migrations(&self) -> crate::operation::list_migrations::builders::ListMigrationsFluentBuilder {
crate::operation::list_migrations::builders::ListMigrationsFluentBuilder::new(self.handle.clone())
}
}