#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TestEventPatternOutput {
pub result: bool,
_request_id: Option<String>,
}
impl TestEventPatternOutput {
pub fn result(&self) -> bool {
self.result
}
}
impl ::aws_types::request_id::RequestId for TestEventPatternOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl TestEventPatternOutput {
pub fn builder() -> crate::operation::test_event_pattern::builders::TestEventPatternOutputBuilder {
crate::operation::test_event_pattern::builders::TestEventPatternOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct TestEventPatternOutputBuilder {
pub(crate) result: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl TestEventPatternOutputBuilder {
pub fn result(mut self, input: bool) -> Self {
self.result = ::std::option::Option::Some(input);
self
}
pub fn set_result(mut self, input: ::std::option::Option<bool>) -> Self {
self.result = input;
self
}
pub fn get_result(&self) -> &::std::option::Option<bool> {
&self.result
}
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::test_event_pattern::TestEventPatternOutput {
crate::operation::test_event_pattern::TestEventPatternOutput {
result: self.result.unwrap_or_default(),
_request_id: self._request_id,
}
}
}