#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteEventDestinationOutput {
pub configuration_set_arn: ::std::option::Option<::std::string::String>,
pub configuration_set_name: ::std::option::Option<::std::string::String>,
pub event_destination: ::std::option::Option<crate::types::EventDestination>,
_request_id: Option<String>,
}
impl DeleteEventDestinationOutput {
pub fn configuration_set_arn(&self) -> ::std::option::Option<&str> {
self.configuration_set_arn.as_deref()
}
pub fn configuration_set_name(&self) -> ::std::option::Option<&str> {
self.configuration_set_name.as_deref()
}
pub fn event_destination(&self) -> ::std::option::Option<&crate::types::EventDestination> {
self.event_destination.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DeleteEventDestinationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteEventDestinationOutput {
pub fn builder() -> crate::operation::delete_event_destination::builders::DeleteEventDestinationOutputBuilder {
crate::operation::delete_event_destination::builders::DeleteEventDestinationOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteEventDestinationOutputBuilder {
pub(crate) configuration_set_arn: ::std::option::Option<::std::string::String>,
pub(crate) configuration_set_name: ::std::option::Option<::std::string::String>,
pub(crate) event_destination: ::std::option::Option<crate::types::EventDestination>,
_request_id: Option<String>,
}
impl DeleteEventDestinationOutputBuilder {
pub fn configuration_set_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.configuration_set_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_configuration_set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.configuration_set_arn = input;
self
}
pub fn get_configuration_set_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.configuration_set_arn
}
pub fn configuration_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.configuration_set_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_configuration_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.configuration_set_name = input;
self
}
pub fn get_configuration_set_name(&self) -> &::std::option::Option<::std::string::String> {
&self.configuration_set_name
}
pub fn event_destination(mut self, input: crate::types::EventDestination) -> Self {
self.event_destination = ::std::option::Option::Some(input);
self
}
pub fn set_event_destination(mut self, input: ::std::option::Option<crate::types::EventDestination>) -> Self {
self.event_destination = input;
self
}
pub fn get_event_destination(&self) -> &::std::option::Option<crate::types::EventDestination> {
&self.event_destination
}
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::delete_event_destination::DeleteEventDestinationOutput {
crate::operation::delete_event_destination::DeleteEventDestinationOutput {
configuration_set_arn: self.configuration_set_arn,
configuration_set_name: self.configuration_set_name,
event_destination: self.event_destination,
_request_id: self._request_id,
}
}
}