#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteTopicOutput {
pub topic_arn: ::std::option::Option<::std::string::String>,
pub topic_name: ::std::option::Option<::std::string::String>,
pub status: ::std::option::Option<crate::types::TopicState>,
_request_id: Option<String>,
}
impl DeleteTopicOutput {
pub fn topic_arn(&self) -> ::std::option::Option<&str> {
self.topic_arn.as_deref()
}
pub fn topic_name(&self) -> ::std::option::Option<&str> {
self.topic_name.as_deref()
}
pub fn status(&self) -> ::std::option::Option<&crate::types::TopicState> {
self.status.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DeleteTopicOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteTopicOutput {
pub fn builder() -> crate::operation::delete_topic::builders::DeleteTopicOutputBuilder {
crate::operation::delete_topic::builders::DeleteTopicOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteTopicOutputBuilder {
pub(crate) topic_arn: ::std::option::Option<::std::string::String>,
pub(crate) topic_name: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::TopicState>,
_request_id: Option<String>,
}
impl DeleteTopicOutputBuilder {
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 topic_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.topic_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_topic_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.topic_name = input;
self
}
pub fn get_topic_name(&self) -> &::std::option::Option<::std::string::String> {
&self.topic_name
}
pub fn status(mut self, input: crate::types::TopicState) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::TopicState>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::TopicState> {
&self.status
}
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_topic::DeleteTopicOutput {
crate::operation::delete_topic::DeleteTopicOutput {
topic_arn: self.topic_arn,
topic_name: self.topic_name,
status: self.status,
_request_id: self._request_id,
}
}
}