/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RolesAnywhere { namespace Model { /** *

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

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

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.

*/ inline const Aws::String& GetConfiguredBy() const{ return m_configuredBy; } /** *

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.

*/ inline bool ConfiguredByHasBeenSet() const { return m_configuredByHasBeenSet; } /** *

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.

*/ inline void SetConfiguredBy(const Aws::String& value) { m_configuredByHasBeenSet = true; m_configuredBy = value; } /** *

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.

*/ inline void SetConfiguredBy(Aws::String&& value) { m_configuredByHasBeenSet = true; m_configuredBy = std::move(value); } /** *

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.

*/ inline void SetConfiguredBy(const char* value) { m_configuredByHasBeenSet = true; m_configuredBy.assign(value); } /** *

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.

*/ inline NotificationSettingDetail& WithConfiguredBy(const Aws::String& value) { SetConfiguredBy(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.

*/ inline NotificationSettingDetail& WithConfiguredBy(Aws::String&& value) { SetConfiguredBy(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.

*/ inline NotificationSettingDetail& WithConfiguredBy(const char* value) { SetConfiguredBy(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 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