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 [`ListNotebookSessions`](crate::operation::list_notebook_sessions::builders::ListNotebookSessionsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`notebook_id(impl Into<String>)`](crate::operation::list_notebook_sessions::builders::ListNotebookSessionsFluentBuilder::notebook_id) / [`set_notebook_id(Option<String>)`](crate::operation::list_notebook_sessions::builders::ListNotebookSessionsFluentBuilder::set_notebook_id):<br>required: **true**<br><p>The ID of the notebook to list sessions for.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_notebook_sessions::builders::ListNotebookSessionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_notebook_sessions::builders::ListNotebookSessionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of notebook sessions to return.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_notebook_sessions::builders::ListNotebookSessionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_notebook_sessions::builders::ListNotebookSessionsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p><br>
    /// - On success, responds with [`ListNotebookSessionsOutput`](crate::operation::list_notebook_sessions::ListNotebookSessionsOutput) with field(s):
    ///   - [`notebook_sessions_list(Vec::<NotebookSessionSummary>)`](crate::operation::list_notebook_sessions::ListNotebookSessionsOutput::notebook_sessions_list): <p>A list of the sessions belonging to the notebook.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_notebook_sessions::ListNotebookSessionsOutput::next_token): <p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p>
    /// - On failure, responds with [`SdkError<ListNotebookSessionsError>`](crate::operation::list_notebook_sessions::ListNotebookSessionsError)
    pub fn list_notebook_sessions(&self) -> crate::operation::list_notebook_sessions::builders::ListNotebookSessionsFluentBuilder {
        crate::operation::list_notebook_sessions::builders::ListNotebookSessionsFluentBuilder::new(self.handle.clone())
    }
}