#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetStageSessionOutput {
pub stage_session: ::std::option::Option<crate::types::StageSession>,
_request_id: Option<String>,
}
impl GetStageSessionOutput {
pub fn stage_session(&self) -> ::std::option::Option<&crate::types::StageSession> {
self.stage_session.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetStageSessionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetStageSessionOutput {
pub fn builder() -> crate::operation::get_stage_session::builders::GetStageSessionOutputBuilder {
crate::operation::get_stage_session::builders::GetStageSessionOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetStageSessionOutputBuilder {
pub(crate) stage_session: ::std::option::Option<crate::types::StageSession>,
_request_id: Option<String>,
}
impl GetStageSessionOutputBuilder {
pub fn stage_session(mut self, input: crate::types::StageSession) -> Self {
self.stage_session = ::std::option::Option::Some(input);
self
}
pub fn set_stage_session(mut self, input: ::std::option::Option<crate::types::StageSession>) -> Self {
self.stage_session = input;
self
}
pub fn get_stage_session(&self) -> &::std::option::Option<crate::types::StageSession> {
&self.stage_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_stage_session::GetStageSessionOutput {
crate::operation::get_stage_session::GetStageSessionOutput {
stage_session: self.stage_session,
_request_id: self._request_id,
}
}
}