#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreatePlayerSessionOutput {
#[doc(hidden)]
pub player_session: std::option::Option<crate::types::PlayerSession>,
_request_id: Option<String>,
}
impl CreatePlayerSessionOutput {
pub fn player_session(&self) -> std::option::Option<&crate::types::PlayerSession> {
self.player_session.as_ref()
}
}
impl aws_http::request_id::RequestId for CreatePlayerSessionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreatePlayerSessionOutput {
pub fn builder(
) -> crate::operation::create_player_session::builders::CreatePlayerSessionOutputBuilder {
crate::operation::create_player_session::builders::CreatePlayerSessionOutputBuilder::default(
)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CreatePlayerSessionOutputBuilder {
pub(crate) player_session: std::option::Option<crate::types::PlayerSession>,
_request_id: Option<String>,
}
impl CreatePlayerSessionOutputBuilder {
pub fn player_session(mut self, input: crate::types::PlayerSession) -> Self {
self.player_session = Some(input);
self
}
pub fn set_player_session(
mut self,
input: std::option::Option<crate::types::PlayerSession>,
) -> Self {
self.player_session = input;
self
}
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::create_player_session::CreatePlayerSessionOutput {
crate::operation::create_player_session::CreatePlayerSessionOutput {
player_session: self.player_session,
_request_id: self._request_id,
}
}
}