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/StopAction.h

177 lines
6.8 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/email/model/StopScope.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>When included in a receipt rule, this action terminates the evaluation of the
* receipt rule set and, optionally, publishes a notification to Amazon Simple
* Notification Service (Amazon SNS).</p> <p>For information about setting a stop
* action in a receipt rule, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-stop.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/StopAction">AWS
* API Reference</a></p>
*/
class AWS_SES_API StopAction
{
public:
StopAction();
StopAction(const Aws::Utils::Xml::XmlNode& xmlNode);
StopAction& 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 scope of the StopAction. The only acceptable value is
* <code>RuleSet</code>.</p>
*/
inline const StopScope& GetScope() const{ return m_scope; }
/**
* <p>The scope of the StopAction. The only acceptable value is
* <code>RuleSet</code>.</p>
*/
inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
/**
* <p>The scope of the StopAction. The only acceptable value is
* <code>RuleSet</code>.</p>
*/
inline void SetScope(const StopScope& value) { m_scopeHasBeenSet = true; m_scope = value; }
/**
* <p>The scope of the StopAction. The only acceptable value is
* <code>RuleSet</code>.</p>
*/
inline void SetScope(StopScope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
/**
* <p>The scope of the StopAction. The only acceptable value is
* <code>RuleSet</code>.</p>
*/
inline StopAction& WithScope(const StopScope& value) { SetScope(value); return *this;}
/**
* <p>The scope of the StopAction. The only acceptable value is
* <code>RuleSet</code>.</p>
*/
inline StopAction& WithScope(StopScope&& value) { SetScope(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
* stop action is taken. 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 Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
* stop action is taken. 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 Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
* stop action is taken. 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 Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
* stop action is taken. 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 Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
* stop action is taken. 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 Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
* stop action is taken. 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 StopAction& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
* stop action is taken. 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 StopAction& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
* stop action is taken. 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 StopAction& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
private:
StopScope m_scope;
bool m_scopeHasBeenSet;
Aws::String m_topicArn;
bool m_topicArnHasBeenSet;
};
} // namespace Model
} // namespace SES
} // namespace Aws