aws_sdk_workspacesweb/client/get_session.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetSession`](crate::operation::get_session::builders::GetSessionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`portal_id(impl Into<String>)`](crate::operation::get_session::builders::GetSessionFluentBuilder::portal_id) / [`set_portal_id(Option<String>)`](crate::operation::get_session::builders::GetSessionFluentBuilder::set_portal_id):<br>required: **true**<br><p>The ID of the web portal for the session.</p><br>
/// - [`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 ID of the session.</p><br>
/// - On success, responds with [`GetSessionOutput`](crate::operation::get_session::GetSessionOutput) with field(s):
/// - [`session(Option<Session>)`](crate::operation::get_session::GetSessionOutput::session): <p>The sessions in a list.</p>
/// - On failure, responds with [`SdkError<GetSessionError>`](crate::operation::get_session::GetSessionError)
pub fn get_session(&self) -> crate::operation::get_session::builders::GetSessionFluentBuilder {
crate::operation::get_session::builders::GetSessionFluentBuilder::new(self.handle.clone())
}
}