aws-sdk-connect 1.166.0

AWS SDK for Amazon Connect Service
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 DescribeNotificationOutput {
    /// <p>The complete notification information including content, priority, recipients, and metadata.</p>
    pub notification: ::std::option::Option<crate::types::Notification>,
    _request_id: Option<String>,
}
impl DescribeNotificationOutput {
    /// <p>The complete notification information including content, priority, recipients, and metadata.</p>
    pub fn notification(&self) -> ::std::option::Option<&crate::types::Notification> {
        self.notification.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeNotificationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeNotificationOutput {
    /// Creates a new builder-style object to manufacture [`DescribeNotificationOutput`](crate::operation::describe_notification::DescribeNotificationOutput).
    pub fn builder() -> crate::operation::describe_notification::builders::DescribeNotificationOutputBuilder {
        crate::operation::describe_notification::builders::DescribeNotificationOutputBuilder::default()
    }
}

/// A builder for [`DescribeNotificationOutput`](crate::operation::describe_notification::DescribeNotificationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeNotificationOutputBuilder {
    pub(crate) notification: ::std::option::Option<crate::types::Notification>,
    _request_id: Option<String>,
}
impl DescribeNotificationOutputBuilder {
    /// <p>The complete notification information including content, priority, recipients, and metadata.</p>
    /// This field is required.
    pub fn notification(mut self, input: crate::types::Notification) -> Self {
        self.notification = ::std::option::Option::Some(input);
        self
    }
    /// <p>The complete notification information including content, priority, recipients, and metadata.</p>
    pub fn set_notification(mut self, input: ::std::option::Option<crate::types::Notification>) -> Self {
        self.notification = input;
        self
    }
    /// <p>The complete notification information including content, priority, recipients, and metadata.</p>
    pub fn get_notification(&self) -> &::std::option::Option<crate::types::Notification> {
        &self.notification
    }
    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 [`DescribeNotificationOutput`](crate::operation::describe_notification::DescribeNotificationOutput).
    pub fn build(self) -> crate::operation::describe_notification::DescribeNotificationOutput {
        crate::operation::describe_notification::DescribeNotificationOutput {
            notification: self.notification,
            _request_id: self._request_id,
        }
    }
}