aws-sdk-pinpoint 0.28.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 GetPushTemplateOutput {
    /// <p>Provides information about the content and settings for a message template that can be used in messages that are sent through a push notification channel.</p>
    #[doc(hidden)]
    pub push_notification_template_response:
        ::std::option::Option<crate::types::PushNotificationTemplateResponse>,
    _request_id: Option<String>,
}
impl GetPushTemplateOutput {
    /// <p>Provides information about the content and settings for a message template that can be used in messages that are sent through a push notification channel.</p>
    pub fn push_notification_template_response(
        &self,
    ) -> ::std::option::Option<&crate::types::PushNotificationTemplateResponse> {
        self.push_notification_template_response.as_ref()
    }
}
impl ::aws_http::request_id::RequestId for GetPushTemplateOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetPushTemplateOutput {
    /// Creates a new builder-style object to manufacture [`GetPushTemplateOutput`](crate::operation::get_push_template::GetPushTemplateOutput).
    pub fn builder() -> crate::operation::get_push_template::builders::GetPushTemplateOutputBuilder
    {
        crate::operation::get_push_template::builders::GetPushTemplateOutputBuilder::default()
    }
}

/// A builder for [`GetPushTemplateOutput`](crate::operation::get_push_template::GetPushTemplateOutput).
#[non_exhaustive]
#[derive(
    ::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct GetPushTemplateOutputBuilder {
    pub(crate) push_notification_template_response:
        ::std::option::Option<crate::types::PushNotificationTemplateResponse>,
    _request_id: Option<String>,
}
impl GetPushTemplateOutputBuilder {
    /// <p>Provides information about the content and settings for a message template that can be used in messages that are sent through a push notification channel.</p>
    pub fn push_notification_template_response(
        mut self,
        input: crate::types::PushNotificationTemplateResponse,
    ) -> Self {
        self.push_notification_template_response = ::std::option::Option::Some(input);
        self
    }
    /// <p>Provides information about the content and settings for a message template that can be used in messages that are sent through a push notification channel.</p>
    pub fn set_push_notification_template_response(
        mut self,
        input: ::std::option::Option<crate::types::PushNotificationTemplateResponse>,
    ) -> Self {
        self.push_notification_template_response = input;
        self
    }
    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 [`GetPushTemplateOutput`](crate::operation::get_push_template::GetPushTemplateOutput).
    pub fn build(self) -> crate::operation::get_push_template::GetPushTemplateOutput {
        crate::operation::get_push_template::GetPushTemplateOutput {
            push_notification_template_response: self.push_notification_template_response,
            _request_id: self._request_id,
        }
    }
}