This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-email/include/aws/email/model/SNSDestination.h

136 lines
5.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/email/SES_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace SES
{
namespace Model
{
/**
* <p>Contains the topic ARN associated with an Amazon Simple Notification Service
* (Amazon SNS) event destination.</p> <p>Event destinations, such as Amazon SNS,
* are associated with configuration sets, which enable you to publish email
* sending events. For information about using configuration sets, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html">Amazon
* SES Developer Guide</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SNSDestination">AWS
* API Reference</a></p>
*/
class AWS_SES_API SNSDestination
{
public:
SNSDestination();
SNSDestination(const Aws::Utils::Xml::XmlNode& xmlNode);
SNSDestination& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The ARN of the Amazon SNS topic that email sending events will be published
* to. An example of an Amazon SNS topic ARN is
* <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information
* about Amazon SNS topics, see the <a
* href="https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS
* Developer Guide</a>.</p>
*/
inline const Aws::String& GetTopicARN() const{ return m_topicARN; }
/**
* <p>The ARN of the Amazon SNS topic that email sending events will be published
* to. An example of an Amazon SNS topic ARN is
* <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information
* about Amazon SNS topics, see the <a
* href="https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS
* Developer Guide</a>.</p>
*/
inline bool TopicARNHasBeenSet() const { return m_topicARNHasBeenSet; }
/**
* <p>The ARN of the Amazon SNS topic that email sending events will be published
* to. An example of an Amazon SNS topic ARN is
* <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information
* about Amazon SNS topics, see the <a
* href="https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS
* Developer Guide</a>.</p>
*/
inline void SetTopicARN(const Aws::String& value) { m_topicARNHasBeenSet = true; m_topicARN = value; }
/**
* <p>The ARN of the Amazon SNS topic that email sending events will be published
* to. An example of an Amazon SNS topic ARN is
* <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information
* about Amazon SNS topics, see the <a
* href="https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS
* Developer Guide</a>.</p>
*/
inline void SetTopicARN(Aws::String&& value) { m_topicARNHasBeenSet = true; m_topicARN = std::move(value); }
/**
* <p>The ARN of the Amazon SNS topic that email sending events will be published
* to. An example of an Amazon SNS topic ARN is
* <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information
* about Amazon SNS topics, see the <a
* href="https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS
* Developer Guide</a>.</p>
*/
inline void SetTopicARN(const char* value) { m_topicARNHasBeenSet = true; m_topicARN.assign(value); }
/**
* <p>The ARN of the Amazon SNS topic that email sending events will be published
* to. An example of an Amazon SNS topic ARN is
* <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information
* about Amazon SNS topics, see the <a
* href="https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS
* Developer Guide</a>.</p>
*/
inline SNSDestination& WithTopicARN(const Aws::String& value) { SetTopicARN(value); return *this;}
/**
* <p>The ARN of the Amazon SNS topic that email sending events will be published
* to. An example of an Amazon SNS topic ARN is
* <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information
* about Amazon SNS topics, see the <a
* href="https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS
* Developer Guide</a>.</p>
*/
inline SNSDestination& WithTopicARN(Aws::String&& value) { SetTopicARN(std::move(value)); return *this;}
/**
* <p>The ARN of the Amazon SNS topic that email sending events will be published
* to. An example of an Amazon SNS topic ARN is
* <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information
* about Amazon SNS topics, see the <a
* href="https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS
* Developer Guide</a>.</p>
*/
inline SNSDestination& WithTopicARN(const char* value) { SetTopicARN(value); return *this;}
private:
Aws::String m_topicARN;
bool m_topicARNHasBeenSet;
};
} // namespace Model
} // namespace SES
} // namespace Aws