/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SES { namespace Model { /** *

When included in a receipt rule, this action calls Amazon WorkMail and, * optionally, publishes a notification to Amazon Simple Notification Service * (Amazon SNS). You will typically not use this action directly because Amazon * WorkMail adds the rule automatically during its setup procedure.

For * information using a receipt rule to call Amazon WorkMail, see the Amazon * SES Developer Guide.

See Also:

AWS * API Reference

*/ class WorkmailAction { public: AWS_SES_API WorkmailAction(); AWS_SES_API WorkmailAction(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API WorkmailAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the * WorkMail action is called. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline const Aws::String& GetTopicArn() const{ return m_topicArn; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the * WorkMail action is called. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the * WorkMail action is called. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the * WorkMail action is called. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the * WorkMail action is called. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the * WorkMail action is called. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline WorkmailAction& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the * WorkMail action is called. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline WorkmailAction& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the * WorkMail action is called. An example of an Amazon SNS topic ARN is * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information * about Amazon SNS topics, see the Amazon SNS * Developer Guide.

*/ inline WorkmailAction& WithTopicArn(const char* value) { SetTopicArn(value); return *this;} /** *

The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail * organization ARN is * arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. * For information about Amazon WorkMail organizations, see the Amazon * WorkMail Administrator Guide.

*/ inline const Aws::String& GetOrganizationArn() const{ return m_organizationArn; } /** *

The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail * organization ARN is * arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. * For information about Amazon WorkMail organizations, see the Amazon * WorkMail Administrator Guide.

*/ inline bool OrganizationArnHasBeenSet() const { return m_organizationArnHasBeenSet; } /** *

The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail * organization ARN is * arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. * For information about Amazon WorkMail organizations, see the Amazon * WorkMail Administrator Guide.

*/ inline void SetOrganizationArn(const Aws::String& value) { m_organizationArnHasBeenSet = true; m_organizationArn = value; } /** *

The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail * organization ARN is * arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. * For information about Amazon WorkMail organizations, see the Amazon * WorkMail Administrator Guide.

*/ inline void SetOrganizationArn(Aws::String&& value) { m_organizationArnHasBeenSet = true; m_organizationArn = std::move(value); } /** *

The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail * organization ARN is * arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. * For information about Amazon WorkMail organizations, see the Amazon * WorkMail Administrator Guide.

*/ inline void SetOrganizationArn(const char* value) { m_organizationArnHasBeenSet = true; m_organizationArn.assign(value); } /** *

The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail * organization ARN is * arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. * For information about Amazon WorkMail organizations, see the Amazon * WorkMail Administrator Guide.

*/ inline WorkmailAction& WithOrganizationArn(const Aws::String& value) { SetOrganizationArn(value); return *this;} /** *

The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail * organization ARN is * arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. * For information about Amazon WorkMail organizations, see the Amazon * WorkMail Administrator Guide.

*/ inline WorkmailAction& WithOrganizationArn(Aws::String&& value) { SetOrganizationArn(std::move(value)); return *this;} /** *

The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail * organization ARN is * arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. * For information about Amazon WorkMail organizations, see the Amazon * WorkMail Administrator Guide.

*/ inline WorkmailAction& WithOrganizationArn(const char* value) { SetOrganizationArn(value); return *this;} private: Aws::String m_topicArn; bool m_topicArnHasBeenSet = false; Aws::String m_organizationArn; bool m_organizationArnHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws