/** * 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 ChimeSDKMediaPipelines { namespace Model { /** *

A structure that contains the configuration settings for real-time * alerts.

See Also:

AWS * API Reference

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

Turns off real-time alerts.

*/ inline bool GetDisabled() const{ return m_disabled; } /** *

Turns off real-time alerts.

*/ inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; } /** *

Turns off real-time alerts.

*/ inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; } /** *

Turns off real-time alerts.

*/ inline RealTimeAlertConfiguration& WithDisabled(bool value) { SetDisabled(value); return *this;} /** *

The rules in the alert. Rules specify the words or phrases that you want to * be notified about.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

The rules in the alert. Rules specify the words or phrases that you want to * be notified about.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

The rules in the alert. Rules specify the words or phrases that you want to * be notified about.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

The rules in the alert. Rules specify the words or phrases that you want to * be notified about.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

The rules in the alert. Rules specify the words or phrases that you want to * be notified about.

*/ inline RealTimeAlertConfiguration& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

The rules in the alert. Rules specify the words or phrases that you want to * be notified about.

*/ inline RealTimeAlertConfiguration& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

The rules in the alert. Rules specify the words or phrases that you want to * be notified about.

*/ inline RealTimeAlertConfiguration& AddRules(const RealTimeAlertRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

The rules in the alert. Rules specify the words or phrases that you want to * be notified about.

*/ inline RealTimeAlertConfiguration& AddRules(RealTimeAlertRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } private: bool m_disabled; bool m_disabledHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMediaPipelines } // namespace Aws