// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListSessions`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results, or null if there are no more result.</p><br>
/// - [`max_results(i32)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results.</p><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_tags):<br>required: **false**<br><p>Tags belonging to the session.</p><br>
/// - [`request_origin(impl Into<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::request_origin) / [`set_request_origin(Option<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_request_origin):<br>required: **false**<br><p>The origin of the request.</p><br>
/// - On success, responds with [`ListSessionsOutput`](crate::operation::list_sessions::ListSessionsOutput) with field(s):
/// - [`ids(Option<Vec::<String>>)`](crate::operation::list_sessions::ListSessionsOutput::ids): <p>Returns the ID of the session.</p>
/// - [`sessions(Option<Vec::<Session>>)`](crate::operation::list_sessions::ListSessionsOutput::sessions): <p>Returns the session object.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_sessions::ListSessionsOutput::next_token): <p>The token for the next set of results, or null if there are no more result.</p>
/// - On failure, responds with [`SdkError<ListSessionsError>`](crate::operation::list_sessions::ListSessionsError)
pub fn list_sessions(&self) -> crate::operation::list_sessions::builders::ListSessionsFluentBuilder {
crate::operation::list_sessions::builders::ListSessionsFluentBuilder::new(self.handle.clone())
}
}