#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetStreamSessionOutput {
pub stream_session: ::std::option::Option<crate::types::StreamSession>,
_request_id: Option<String>,
}
impl GetStreamSessionOutput {
pub fn stream_session(&self) -> ::std::option::Option<&crate::types::StreamSession> {
self.stream_session.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetStreamSessionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetStreamSessionOutput {
pub fn builder() -> crate::operation::get_stream_session::builders::GetStreamSessionOutputBuilder {
crate::operation::get_stream_session::builders::GetStreamSessionOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetStreamSessionOutputBuilder {
pub(crate) stream_session: ::std::option::Option<crate::types::StreamSession>,
_request_id: Option<String>,
}
impl GetStreamSessionOutputBuilder {
pub fn stream_session(mut self, input: crate::types::StreamSession) -> Self {
self.stream_session = ::std::option::Option::Some(input);
self
}
pub fn set_stream_session(mut self, input: ::std::option::Option<crate::types::StreamSession>) -> Self {
self.stream_session = input;
self
}
pub fn get_stream_session(&self) -> &::std::option::Option<crate::types::StreamSession> {
&self.stream_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_stream_session::GetStreamSessionOutput {
crate::operation::get_stream_session::GetStreamSessionOutput {
stream_session: self.stream_session,
_request_id: self._request_id,
}
}
}