/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the Amazon Resource Name (ARN) of an Amazon Simple Notification
* Service topic. If you use an Amazon SNS topic in another account, you
* must attach a policy to it that grants DevOps Guru permission to send it
* notifications. DevOps Guru adds the required policy on your behalf to send
* notifications using Amazon SNS in your account. DevOps Guru only supports
* standard SNS topics. For more information, see Permissions
* for Amazon SNS topics. If you use an Amazon SNS topic that is
* encrypted by an Amazon Web Services Key Management Service customer-managed key
* (CMK), then you must add permissions to the CMK. For more information, see Permissions
* for Amazon Web Services KMS–encrypted Amazon SNS topics.See
* Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service * topic.
*/ inline const Aws::String& GetTopicArn() const{ return m_topicArn; } /** *The Amazon Resource Name (ARN) of an Amazon Simple Notification Service * topic.
*/ inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of an Amazon Simple Notification Service * topic.
*/ inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; } /** *The Amazon Resource Name (ARN) of an Amazon Simple Notification Service * topic.
*/ inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); } /** *The Amazon Resource Name (ARN) of an Amazon Simple Notification Service * topic.
*/ inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); } /** *The Amazon Resource Name (ARN) of an Amazon Simple Notification Service * topic.
*/ inline SnsChannelConfig& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;} /** *The Amazon Resource Name (ARN) of an Amazon Simple Notification Service * topic.
*/ inline SnsChannelConfig& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of an Amazon Simple Notification Service * topic.
*/ inline SnsChannelConfig& WithTopicArn(const char* value) { SetTopicArn(value); return *this;} private: Aws::String m_topicArn; bool m_topicArnHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws