#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetEventOutput {
pub event: ::std::option::Option<crate::types::Event>,
_request_id: Option<String>,
}
impl GetEventOutput {
pub fn event(&self) -> ::std::option::Option<&crate::types::Event> {
self.event.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetEventOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetEventOutput {
pub fn builder() -> crate::operation::get_event::builders::GetEventOutputBuilder {
crate::operation::get_event::builders::GetEventOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetEventOutputBuilder {
pub(crate) event: ::std::option::Option<crate::types::Event>,
_request_id: Option<String>,
}
impl GetEventOutputBuilder {
pub fn event(mut self, input: crate::types::Event) -> Self {
self.event = ::std::option::Option::Some(input);
self
}
pub fn set_event(mut self, input: ::std::option::Option<crate::types::Event>) -> Self {
self.event = input;
self
}
pub fn get_event(&self) -> &::std::option::Option<crate::types::Event> {
&self.event
}
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_event::GetEventOutput {
crate::operation::get_event::GetEventOutput {
event: self.event,
_request_id: self._request_id,
}
}
}