#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteKeywordOutput {
pub origination_identity_arn: ::std::option::Option<::std::string::String>,
pub origination_identity: ::std::option::Option<::std::string::String>,
pub keyword: ::std::option::Option<::std::string::String>,
pub keyword_message: ::std::option::Option<::std::string::String>,
pub keyword_action: ::std::option::Option<crate::types::KeywordAction>,
_request_id: Option<String>,
}
impl DeleteKeywordOutput {
pub fn origination_identity_arn(&self) -> ::std::option::Option<&str> {
self.origination_identity_arn.as_deref()
}
pub fn origination_identity(&self) -> ::std::option::Option<&str> {
self.origination_identity.as_deref()
}
pub fn keyword(&self) -> ::std::option::Option<&str> {
self.keyword.as_deref()
}
pub fn keyword_message(&self) -> ::std::option::Option<&str> {
self.keyword_message.as_deref()
}
pub fn keyword_action(&self) -> ::std::option::Option<&crate::types::KeywordAction> {
self.keyword_action.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DeleteKeywordOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteKeywordOutput {
pub fn builder() -> crate::operation::delete_keyword::builders::DeleteKeywordOutputBuilder {
crate::operation::delete_keyword::builders::DeleteKeywordOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteKeywordOutputBuilder {
pub(crate) origination_identity_arn: ::std::option::Option<::std::string::String>,
pub(crate) origination_identity: ::std::option::Option<::std::string::String>,
pub(crate) keyword: ::std::option::Option<::std::string::String>,
pub(crate) keyword_message: ::std::option::Option<::std::string::String>,
pub(crate) keyword_action: ::std::option::Option<crate::types::KeywordAction>,
_request_id: Option<String>,
}
impl DeleteKeywordOutputBuilder {
pub fn origination_identity_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.origination_identity_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_origination_identity_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.origination_identity_arn = input;
self
}
pub fn get_origination_identity_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.origination_identity_arn
}
pub fn origination_identity(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.origination_identity = ::std::option::Option::Some(input.into());
self
}
pub fn set_origination_identity(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.origination_identity = input;
self
}
pub fn get_origination_identity(&self) -> &::std::option::Option<::std::string::String> {
&self.origination_identity
}
pub fn keyword(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.keyword = ::std::option::Option::Some(input.into());
self
}
pub fn set_keyword(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.keyword = input;
self
}
pub fn get_keyword(&self) -> &::std::option::Option<::std::string::String> {
&self.keyword
}
pub fn keyword_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.keyword_message = ::std::option::Option::Some(input.into());
self
}
pub fn set_keyword_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.keyword_message = input;
self
}
pub fn get_keyword_message(&self) -> &::std::option::Option<::std::string::String> {
&self.keyword_message
}
pub fn keyword_action(mut self, input: crate::types::KeywordAction) -> Self {
self.keyword_action = ::std::option::Option::Some(input);
self
}
pub fn set_keyword_action(mut self, input: ::std::option::Option<crate::types::KeywordAction>) -> Self {
self.keyword_action = input;
self
}
pub fn get_keyword_action(&self) -> &::std::option::Option<crate::types::KeywordAction> {
&self.keyword_action
}
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_keyword::DeleteKeywordOutput {
crate::operation::delete_keyword::DeleteKeywordOutput {
origination_identity_arn: self.origination_identity_arn,
origination_identity: self.origination_identity,
keyword: self.keyword,
keyword_message: self.keyword_message,
keyword_action: self.keyword_action,
_request_id: self._request_id,
}
}
}