aws_sdk_connectparticipant/operation/send_event/
_send_event_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SendEventOutput {
pub id: ::std::option::Option<::std::string::String>,
pub absolute_time: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl SendEventOutput {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn absolute_time(&self) -> ::std::option::Option<&str> {
self.absolute_time.as_deref()
}
}
impl ::aws_types::request_id::RequestId for SendEventOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl SendEventOutput {
pub fn builder() -> crate::operation::send_event::builders::SendEventOutputBuilder {
crate::operation::send_event::builders::SendEventOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SendEventOutputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) absolute_time: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl SendEventOutputBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn absolute_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.absolute_time = ::std::option::Option::Some(input.into());
self
}
pub fn set_absolute_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.absolute_time = input;
self
}
pub fn get_absolute_time(&self) -> &::std::option::Option<::std::string::String> {
&self.absolute_time
}
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::send_event::SendEventOutput {
crate::operation::send_event::SendEventOutput {
id: self.id,
absolute_time: self.absolute_time,
_request_id: self._request_id,
}
}
}