aws-sdk-pinpoint 1.106.0

AWS SDK for Amazon Pinpoint
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 DeleteSmsChannelOutput {
    /// <p>Provides information about the status and settings of the SMS channel for an application.</p>
    pub sms_channel_response: ::std::option::Option<crate::types::SmsChannelResponse>,
    _request_id: Option<String>,
}
impl DeleteSmsChannelOutput {
    /// <p>Provides information about the status and settings of the SMS channel for an application.</p>
    pub fn sms_channel_response(&self) -> ::std::option::Option<&crate::types::SmsChannelResponse> {
        self.sms_channel_response.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DeleteSmsChannelOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DeleteSmsChannelOutput {
    /// Creates a new builder-style object to manufacture [`DeleteSmsChannelOutput`](crate::operation::delete_sms_channel::DeleteSmsChannelOutput).
    pub fn builder() -> crate::operation::delete_sms_channel::builders::DeleteSmsChannelOutputBuilder {
        crate::operation::delete_sms_channel::builders::DeleteSmsChannelOutputBuilder::default()
    }
}

/// A builder for [`DeleteSmsChannelOutput`](crate::operation::delete_sms_channel::DeleteSmsChannelOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteSmsChannelOutputBuilder {
    pub(crate) sms_channel_response: ::std::option::Option<crate::types::SmsChannelResponse>,
    _request_id: Option<String>,
}
impl DeleteSmsChannelOutputBuilder {
    /// <p>Provides information about the status and settings of the SMS channel for an application.</p>
    /// This field is required.
    pub fn sms_channel_response(mut self, input: crate::types::SmsChannelResponse) -> Self {
        self.sms_channel_response = ::std::option::Option::Some(input);
        self
    }
    /// <p>Provides information about the status and settings of the SMS channel for an application.</p>
    pub fn set_sms_channel_response(mut self, input: ::std::option::Option<crate::types::SmsChannelResponse>) -> Self {
        self.sms_channel_response = input;
        self
    }
    /// <p>Provides information about the status and settings of the SMS channel for an application.</p>
    pub fn get_sms_channel_response(&self) -> &::std::option::Option<crate::types::SmsChannelResponse> {
        &self.sms_channel_response
    }
    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 [`DeleteSmsChannelOutput`](crate::operation::delete_sms_channel::DeleteSmsChannelOutput).
    pub fn build(self) -> crate::operation::delete_sms_channel::DeleteSmsChannelOutput {
        crate::operation::delete_sms_channel::DeleteSmsChannelOutput {
            sms_channel_response: self.sms_channel_response,
            _request_id: self._request_id,
        }
    }
}