/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LookoutMetrics { namespace Model { /** *

Contains information about the SNS topic to which you want to send your * alerts and the IAM role that has access to that topic.

See Also:

* AWS * API Reference

*/ class SNSConfiguration { public: AWS_LOOKOUTMETRICS_API SNSConfiguration(); AWS_LOOKOUTMETRICS_API SNSConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTMETRICS_API SNSConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN of the IAM role that has access to the target SNS topic.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the IAM role that has access to the target SNS topic.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the IAM role that has access to the target SNS topic.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the IAM role that has access to the target SNS topic.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the IAM role that has access to the target SNS topic.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the IAM role that has access to the target SNS topic.

*/ inline SNSConfiguration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the IAM role that has access to the target SNS topic.

*/ inline SNSConfiguration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the IAM role that has access to the target SNS topic.

*/ inline SNSConfiguration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The ARN of the target SNS topic.

*/ inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; } /** *

The ARN of the target SNS topic.

*/ inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; } /** *

The ARN of the target SNS topic.

*/ inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; } /** *

The ARN of the target SNS topic.

*/ inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); } /** *

The ARN of the target SNS topic.

*/ inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); } /** *

The ARN of the target SNS topic.

*/ inline SNSConfiguration& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;} /** *

The ARN of the target SNS topic.

*/ inline SNSConfiguration& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;} /** *

The ARN of the target SNS topic.

*/ inline SNSConfiguration& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;} /** *

The format of the SNS topic.

  • JSON – Send JSON * alerts with an anomaly ID and a link to the anomaly detail page. This is the * default.

  • LONG_TEXT – Send human-readable alerts * with information about the impacted timeseries and a link to the anomaly detail * page. We recommend this for email.

  • SHORT_TEXT – * Send human-readable alerts with a link to the anomaly detail page. We recommend * this for SMS.

*/ inline const SnsFormat& GetSnsFormat() const{ return m_snsFormat; } /** *

The format of the SNS topic.

  • JSON – Send JSON * alerts with an anomaly ID and a link to the anomaly detail page. This is the * default.

  • LONG_TEXT – Send human-readable alerts * with information about the impacted timeseries and a link to the anomaly detail * page. We recommend this for email.

  • SHORT_TEXT – * Send human-readable alerts with a link to the anomaly detail page. We recommend * this for SMS.

*/ inline bool SnsFormatHasBeenSet() const { return m_snsFormatHasBeenSet; } /** *

The format of the SNS topic.

  • JSON – Send JSON * alerts with an anomaly ID and a link to the anomaly detail page. This is the * default.

  • LONG_TEXT – Send human-readable alerts * with information about the impacted timeseries and a link to the anomaly detail * page. We recommend this for email.

  • SHORT_TEXT – * Send human-readable alerts with a link to the anomaly detail page. We recommend * this for SMS.

*/ inline void SetSnsFormat(const SnsFormat& value) { m_snsFormatHasBeenSet = true; m_snsFormat = value; } /** *

The format of the SNS topic.

  • JSON – Send JSON * alerts with an anomaly ID and a link to the anomaly detail page. This is the * default.

  • LONG_TEXT – Send human-readable alerts * with information about the impacted timeseries and a link to the anomaly detail * page. We recommend this for email.

  • SHORT_TEXT – * Send human-readable alerts with a link to the anomaly detail page. We recommend * this for SMS.

*/ inline void SetSnsFormat(SnsFormat&& value) { m_snsFormatHasBeenSet = true; m_snsFormat = std::move(value); } /** *

The format of the SNS topic.

  • JSON – Send JSON * alerts with an anomaly ID and a link to the anomaly detail page. This is the * default.

  • LONG_TEXT – Send human-readable alerts * with information about the impacted timeseries and a link to the anomaly detail * page. We recommend this for email.

  • SHORT_TEXT – * Send human-readable alerts with a link to the anomaly detail page. We recommend * this for SMS.

*/ inline SNSConfiguration& WithSnsFormat(const SnsFormat& value) { SetSnsFormat(value); return *this;} /** *

The format of the SNS topic.

  • JSON – Send JSON * alerts with an anomaly ID and a link to the anomaly detail page. This is the * default.

  • LONG_TEXT – Send human-readable alerts * with information about the impacted timeseries and a link to the anomaly detail * page. We recommend this for email.

  • SHORT_TEXT – * Send human-readable alerts with a link to the anomaly detail page. We recommend * this for SMS.

*/ inline SNSConfiguration& WithSnsFormat(SnsFormat&& value) { SetSnsFormat(std::move(value)); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_snsTopicArn; bool m_snsTopicArnHasBeenSet = false; SnsFormat m_snsFormat; bool m_snsFormatHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws