aws_sdk_wisdom/operation/get_session/
_get_session_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSessionOutput {
pub session: ::std::option::Option<crate::types::SessionData>,
_request_id: Option<String>,
}
impl GetSessionOutput {
pub fn session(&self) -> ::std::option::Option<&crate::types::SessionData> {
self.session.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetSessionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetSessionOutput {
pub fn builder() -> crate::operation::get_session::builders::GetSessionOutputBuilder {
crate::operation::get_session::builders::GetSessionOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSessionOutputBuilder {
pub(crate) session: ::std::option::Option<crate::types::SessionData>,
_request_id: Option<String>,
}
impl GetSessionOutputBuilder {
pub fn session(mut self, input: crate::types::SessionData) -> Self {
self.session = ::std::option::Option::Some(input);
self
}
pub fn set_session(mut self, input: ::std::option::Option<crate::types::SessionData>) -> Self {
self.session = input;
self
}
pub fn get_session(&self) -> &::std::option::Option<crate::types::SessionData> {
&self.session
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_session::GetSessionOutput {
crate::operation::get_session::GetSessionOutput {
session: self.session,
_request_id: self._request_id,
}
}
}