aws_sdk_qconnect/client/
get_session.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetSession`](crate::operation::get_session::builders::GetSessionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`assistant_id(impl Into<String>)`](crate::operation::get_session::builders::GetSessionFluentBuilder::assistant_id) / [`set_assistant_id(Option<String>)`](crate::operation::get_session::builders::GetSessionFluentBuilder::set_assistant_id):<br>required: **true**<br><p>The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
7    ///   - [`session_id(impl Into<String>)`](crate::operation::get_session::builders::GetSessionFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::get_session::builders::GetSessionFluentBuilder::set_session_id):<br>required: **true**<br><p>The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
8    /// - On success, responds with [`GetSessionOutput`](crate::operation::get_session::GetSessionOutput) with field(s):
9    ///   - [`session(Option<SessionData>)`](crate::operation::get_session::GetSessionOutput::session): <p>The session.</p>
10    /// - On failure, responds with [`SdkError<GetSessionError>`](crate::operation::get_session::GetSessionError)
11    pub fn get_session(&self) -> crate::operation::get_session::builders::GetSessionFluentBuilder {
12        crate::operation::get_session::builders::GetSessionFluentBuilder::new(self.handle.clone())
13    }
14}