aws-sdk-pinpointsmsvoicev2 1.124.0

AWS SDK for Amazon Pinpoint SMS Voice V2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteKeywordOutput {
    /// <p>The PhoneNumberArn or PoolArn that the keyword was associated with.</p>
    pub origination_identity_arn: ::std::option::Option<::std::string::String>,
    /// <p>The PhoneNumberId or PoolId that the keyword was associated with.</p>
    pub origination_identity: ::std::option::Option<::std::string::String>,
    /// <p>The keyword that was deleted.</p>
    pub keyword: ::std::option::Option<::std::string::String>,
    /// <p>The message that was associated with the deleted keyword.</p>
    pub keyword_message: ::std::option::Option<::std::string::String>,
    /// <p>The action that was associated with the deleted keyword.</p>
    pub keyword_action: ::std::option::Option<crate::types::KeywordAction>,
    _request_id: Option<String>,
}
impl DeleteKeywordOutput {
    /// <p>The PhoneNumberArn or PoolArn that the keyword was associated with.</p>
    pub fn origination_identity_arn(&self) -> ::std::option::Option<&str> {
        self.origination_identity_arn.as_deref()
    }
    /// <p>The PhoneNumberId or PoolId that the keyword was associated with.</p>
    pub fn origination_identity(&self) -> ::std::option::Option<&str> {
        self.origination_identity.as_deref()
    }
    /// <p>The keyword that was deleted.</p>
    pub fn keyword(&self) -> ::std::option::Option<&str> {
        self.keyword.as_deref()
    }
    /// <p>The message that was associated with the deleted keyword.</p>
    pub fn keyword_message(&self) -> ::std::option::Option<&str> {
        self.keyword_message.as_deref()
    }
    /// <p>The action that was associated with the deleted keyword.</p>
    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 {
    /// Creates a new builder-style object to manufacture [`DeleteKeywordOutput`](crate::operation::delete_keyword::DeleteKeywordOutput).
    pub fn builder() -> crate::operation::delete_keyword::builders::DeleteKeywordOutputBuilder {
        crate::operation::delete_keyword::builders::DeleteKeywordOutputBuilder::default()
    }
}

/// A builder for [`DeleteKeywordOutput`](crate::operation::delete_keyword::DeleteKeywordOutput).
#[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 {
    /// <p>The PhoneNumberArn or PoolArn that the keyword was associated with.</p>
    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
    }
    /// <p>The PhoneNumberArn or PoolArn that the keyword was associated with.</p>
    pub fn set_origination_identity_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.origination_identity_arn = input;
        self
    }
    /// <p>The PhoneNumberArn or PoolArn that the keyword was associated with.</p>
    pub fn get_origination_identity_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.origination_identity_arn
    }
    /// <p>The PhoneNumberId or PoolId that the keyword was associated with.</p>
    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
    }
    /// <p>The PhoneNumberId or PoolId that the keyword was associated with.</p>
    pub fn set_origination_identity(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.origination_identity = input;
        self
    }
    /// <p>The PhoneNumberId or PoolId that the keyword was associated with.</p>
    pub fn get_origination_identity(&self) -> &::std::option::Option<::std::string::String> {
        &self.origination_identity
    }
    /// <p>The keyword that was deleted.</p>
    pub fn keyword(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.keyword = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The keyword that was deleted.</p>
    pub fn set_keyword(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.keyword = input;
        self
    }
    /// <p>The keyword that was deleted.</p>
    pub fn get_keyword(&self) -> &::std::option::Option<::std::string::String> {
        &self.keyword
    }
    /// <p>The message that was associated with the deleted keyword.</p>
    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
    }
    /// <p>The message that was associated with the deleted keyword.</p>
    pub fn set_keyword_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.keyword_message = input;
        self
    }
    /// <p>The message that was associated with the deleted keyword.</p>
    pub fn get_keyword_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.keyword_message
    }
    /// <p>The action that was associated with the deleted keyword.</p>
    pub fn keyword_action(mut self, input: crate::types::KeywordAction) -> Self {
        self.keyword_action = ::std::option::Option::Some(input);
        self
    }
    /// <p>The action that was associated with the deleted keyword.</p>
    pub fn set_keyword_action(mut self, input: ::std::option::Option<crate::types::KeywordAction>) -> Self {
        self.keyword_action = input;
        self
    }
    /// <p>The action that was associated with the deleted keyword.</p>
    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
    }
    /// Consumes the builder and constructs a [`DeleteKeywordOutput`](crate::operation::delete_keyword::DeleteKeywordOutput).
    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,
        }
    }
}