1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListVersions`](crate::operation::list_versions::builders::ListVersionsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_versions::builders::ListVersionsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`max_results(i32)`](crate::operation::list_versions::builders::ListVersionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_versions::builders::ListVersionsFluentBuilder::set_max_results):<br>required: **false**<br><p>An optional parameter that specifies the maximum number of results to return. You can use <code>nextToken</code> to get the next page of results.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_versions::builders::ListVersionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_versions::builders::ListVersionsFluentBuilder::set_next_token):<br>required: **false**<br><p>If your initial <code>ListVersions</code> operation returns a <code>nextToken</code>, you can include the returned <code>nextToken</code> in subsequent <code>ListVersions</code> operations, which returns results in the next page.</p><br>
    /// - On success, responds with [`ListVersionsOutput`](crate::operation::list_versions::ListVersionsOutput) with field(s):
    ///   - [`versions(Option<Vec::<String>>)`](crate::operation::list_versions::ListVersionsOutput::versions): <p>A list of all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_versions::ListVersionsOutput::next_token): <p>When <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.</p>
    /// - On failure, responds with [`SdkError<ListVersionsError>`](crate::operation::list_versions::ListVersionsError)
    pub fn list_versions(&self) -> crate::operation::list_versions::builders::ListVersionsFluentBuilder {
        crate::operation::list_versions::builders::ListVersionsFluentBuilder::new(self.handle.clone())
    }
}