1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to Amazon Pinpoint. For more information, see <a href="https://docs.aws.amazon.com/pinpoint/latest/userguide/analytics-transactional-messages.html">Transactional Messaging Charts</a> in the <i>Amazon Pinpoint User Guide</i>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct PinpointDestination {
/// <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to.</p>
pub application_arn: ::std::option::Option<::std::string::String>,
}
impl PinpointDestination {
/// <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to.</p>
pub fn application_arn(&self) -> ::std::option::Option<&str> {
self.application_arn.as_deref()
}
}
impl PinpointDestination {
/// Creates a new builder-style object to manufacture [`PinpointDestination`](crate::types::PinpointDestination).
pub fn builder() -> crate::types::builders::PinpointDestinationBuilder {
crate::types::builders::PinpointDestinationBuilder::default()
}
}
/// A builder for [`PinpointDestination`](crate::types::PinpointDestination).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct PinpointDestinationBuilder {
pub(crate) application_arn: ::std::option::Option<::std::string::String>,
}
impl PinpointDestinationBuilder {
/// <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to.</p>
pub fn application_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to.</p>
pub fn set_application_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to.</p>
pub fn get_application_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.application_arn
}
/// Consumes the builder and constructs a [`PinpointDestination`](crate::types::PinpointDestination).
pub fn build(self) -> crate::types::PinpointDestination {
crate::types::PinpointDestination {
application_arn: self.application_arn,
}
}
}