/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The state of a notification setting. A notification setting includes
* information such as event name, threshold, status of the notification setting,
* and the channel to notify.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 NotificationSettingDetail& 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 NotificationSettingDetail& WithChannel(NotificationChannel&& value) { SetChannel(std::move(value)); return *this;} /** *The principal that configured the notification setting. For default settings
* configured by IAM Roles Anywhere, the value is
* rolesanywhere.amazonaws.com
, and for customized notifications
* settings, it is the respective account ID.
The principal that configured the notification setting. For default settings
* configured by IAM Roles Anywhere, the value is
* rolesanywhere.amazonaws.com
, and for customized notifications
* settings, it is the respective account ID.
The principal that configured the notification setting. For default settings
* configured by IAM Roles Anywhere, the value is
* rolesanywhere.amazonaws.com
, and for customized notifications
* settings, it is the respective account ID.
The principal that configured the notification setting. For default settings
* configured by IAM Roles Anywhere, the value is
* rolesanywhere.amazonaws.com
, and for customized notifications
* settings, it is the respective account ID.
The principal that configured the notification setting. For default settings
* configured by IAM Roles Anywhere, the value is
* rolesanywhere.amazonaws.com
, and for customized notifications
* settings, it is the respective account ID.
The principal that configured the notification setting. For default settings
* configured by IAM Roles Anywhere, the value is
* rolesanywhere.amazonaws.com
, and for customized notifications
* settings, it is the respective account ID.
The principal that configured the notification setting. For default settings
* configured by IAM Roles Anywhere, the value is
* rolesanywhere.amazonaws.com
, and for customized notifications
* settings, it is the respective account ID.
The principal that configured the notification setting. For default settings
* configured by IAM Roles Anywhere, the value is
* rolesanywhere.amazonaws.com
, and for customized notifications
* settings, it is the respective account ID.
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 NotificationSettingDetail& 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 NotificationSettingDetail& WithEvent(const NotificationEvent& value) { SetEvent(value); return *this;} /** *The event to which this notification setting is applied.
*/ inline NotificationSettingDetail& WithEvent(NotificationEvent&& value) { SetEvent(std::move(value)); return *this;} /** *The number of days before a notification event.
*/ inline int GetThreshold() const{ return m_threshold; } /** *The number of days before a notification event.
*/ inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; } /** *The number of days before a notification event.
*/ inline void SetThreshold(int value) { m_thresholdHasBeenSet = true; m_threshold = value; } /** *The number of days before a notification event.
*/ inline NotificationSettingDetail& WithThreshold(int value) { SetThreshold(value); return *this;} private: NotificationChannel m_channel; bool m_channelHasBeenSet = false; Aws::String m_configuredBy; bool m_configuredByHasBeenSet = 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