#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeregisterNotificationHubInput {
pub notification_hub_region: ::std::option::Option<::std::string::String>,
}
impl DeregisterNotificationHubInput {
pub fn notification_hub_region(&self) -> ::std::option::Option<&str> {
self.notification_hub_region.as_deref()
}
}
impl DeregisterNotificationHubInput {
pub fn builder() -> crate::operation::deregister_notification_hub::builders::DeregisterNotificationHubInputBuilder {
crate::operation::deregister_notification_hub::builders::DeregisterNotificationHubInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeregisterNotificationHubInputBuilder {
pub(crate) notification_hub_region: ::std::option::Option<::std::string::String>,
}
impl DeregisterNotificationHubInputBuilder {
pub fn notification_hub_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.notification_hub_region = ::std::option::Option::Some(input.into());
self
}
pub fn set_notification_hub_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.notification_hub_region = input;
self
}
pub fn get_notification_hub_region(&self) -> &::std::option::Option<::std::string::String> {
&self.notification_hub_region
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::deregister_notification_hub::DeregisterNotificationHubInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::deregister_notification_hub::DeregisterNotificationHubInput {
notification_hub_region: self.notification_hub_region,
})
}
}