#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Topic {
pub topic_arn: ::std::option::Option<::std::string::String>,
}
impl Topic {
pub fn topic_arn(&self) -> ::std::option::Option<&str> {
self.topic_arn.as_deref()
}
}
impl Topic {
pub fn builder() -> crate::types::builders::TopicBuilder {
crate::types::builders::TopicBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct TopicBuilder {
pub(crate) topic_arn: ::std::option::Option<::std::string::String>,
}
impl TopicBuilder {
pub fn topic_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.topic_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_topic_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.topic_arn = input;
self
}
pub fn get_topic_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.topic_arn
}
pub fn build(self) -> crate::types::Topic {
crate::types::Topic { topic_arn: self.topic_arn }
}
}