/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Customizable notification settings that will be applied to notification
* events. IAM Roles Anywhere consumes these settings while notifying across
* multiple channels - CloudWatch metrics, EventBridge, and Health Dashboard.
* See Also:
AWS
* API Reference
The specified channel of notification. IAM Roles Anywhere uses CloudWatch * metrics, EventBridge, and Health Dashboard to notify for an event.
*In the absence of a specific channel, IAM Roles Anywhere applies this setting * to 'ALL' channels.
*/ inline const NotificationChannel& GetChannel() const{ return m_channel; } /** *The specified channel of notification. IAM Roles Anywhere uses CloudWatch * metrics, EventBridge, and Health Dashboard to notify for an event.
*In the absence of a specific channel, IAM Roles Anywhere applies this setting * to 'ALL' channels.
*/ inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; } /** *The specified channel of notification. IAM Roles Anywhere uses CloudWatch * metrics, EventBridge, and Health Dashboard to notify for an event.
*In the absence of a specific channel, IAM Roles Anywhere applies this setting * to 'ALL' channels.
*/ inline void SetChannel(const NotificationChannel& value) { m_channelHasBeenSet = true; m_channel = value; } /** *The specified channel of notification. IAM Roles Anywhere uses CloudWatch * metrics, EventBridge, and Health Dashboard to notify for an event.
*In the absence of a specific channel, IAM Roles Anywhere applies this setting * to 'ALL' channels.
*/ inline void SetChannel(NotificationChannel&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); } /** *The specified channel of notification. IAM Roles Anywhere uses CloudWatch * metrics, EventBridge, and Health Dashboard to notify for an event.
*In the absence of a specific channel, IAM Roles Anywhere applies this setting * to 'ALL' channels.
*/ inline NotificationSetting& WithChannel(const NotificationChannel& value) { SetChannel(value); return *this;} /** *The specified channel of notification. IAM Roles Anywhere uses CloudWatch * metrics, EventBridge, and Health Dashboard to notify for an event.
*In the absence of a specific channel, IAM Roles Anywhere applies this setting * to 'ALL' channels.
*/ inline NotificationSetting& WithChannel(NotificationChannel&& value) { SetChannel(std::move(value)); return *this;} /** *Indicates whether the notification setting is enabled.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Indicates whether the notification setting is enabled.
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *Indicates whether the notification setting is enabled.
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *Indicates whether the notification setting is enabled.
*/ inline NotificationSetting& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The event to which this notification setting is applied.
*/ inline const NotificationEvent& GetEvent() const{ return m_event; } /** *The event to which this notification setting is applied.
*/ inline bool EventHasBeenSet() const { return m_eventHasBeenSet; } /** *The event to which this notification setting is applied.
*/ inline void SetEvent(const NotificationEvent& value) { m_eventHasBeenSet = true; m_event = value; } /** *The event to which this notification setting is applied.
*/ inline void SetEvent(NotificationEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); } /** *The event to which this notification setting is applied.
*/ inline NotificationSetting& WithEvent(const NotificationEvent& value) { SetEvent(value); return *this;} /** *The event to which this notification setting is applied.
*/ inline NotificationSetting& WithEvent(NotificationEvent&& value) { SetEvent(std::move(value)); return *this;} /** *The number of days before a notification event. This value is required for a * notification setting that is enabled.
*/ inline int GetThreshold() const{ return m_threshold; } /** *The number of days before a notification event. This value is required for a * notification setting that is enabled.
*/ inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; } /** *The number of days before a notification event. This value is required for a * notification setting that is enabled.
*/ inline void SetThreshold(int value) { m_thresholdHasBeenSet = true; m_threshold = value; } /** *The number of days before a notification event. This value is required for a * notification setting that is enabled.
*/ inline NotificationSetting& WithThreshold(int value) { SetThreshold(value); return *this;} private: NotificationChannel m_channel; bool m_channelHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; NotificationEvent m_event; bool m_eventHasBeenSet = false; int m_threshold; bool m_thresholdHasBeenSet = false; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws