// 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>Optional. Number of valid Job engine versions, up to twenty, that will be returned at one time.<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>Optional. Use this string, provided with the response to a previous request, to request the next batch of Job engine versions.<br>
/// - On success, responds with [`ListVersionsOutput`](crate::operation::list_versions::ListVersionsOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::operation::list_versions::ListVersionsOutput::next_token): Optional. Use this string, provided with the response to a previous request, to request the next batch of Job engine versions.
/// - [`versions(Option<Vec::<JobEngineVersion>>)`](crate::operation::list_versions::ListVersionsOutput::versions): Retrieve a JSON array of all available Job engine versions and the date they expire.
/// - 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())
}
}