AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
NotificationSetting.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/model/NotificationChannel.h>
9#include <aws/rolesanywhere/model/NotificationEvent.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace RolesAnywhere
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_ROLESANYWHERE_API NotificationSetting() = default;
39 AWS_ROLESANYWHERE_API NotificationSetting(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROLESANYWHERE_API NotificationSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline NotificationChannel GetChannel() const { return m_channel; }
52 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
53 inline void SetChannel(NotificationChannel value) { m_channelHasBeenSet = true; m_channel = value; }
54 inline NotificationSetting& WithChannel(NotificationChannel value) { SetChannel(value); return *this;}
56
58
61 inline bool GetEnabled() const { return m_enabled; }
62 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
63 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
64 inline NotificationSetting& WithEnabled(bool value) { SetEnabled(value); return *this;}
66
68
71 inline NotificationEvent GetEvent() const { return m_event; }
72 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
73 inline void SetEvent(NotificationEvent value) { m_eventHasBeenSet = true; m_event = value; }
74 inline NotificationSetting& WithEvent(NotificationEvent value) { SetEvent(value); return *this;}
76
78
82 inline int GetThreshold() const { return m_threshold; }
83 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
84 inline void SetThreshold(int value) { m_thresholdHasBeenSet = true; m_threshold = value; }
85 inline NotificationSetting& WithThreshold(int value) { SetThreshold(value); return *this;}
87 private:
88
90 bool m_channelHasBeenSet = false;
91
92 bool m_enabled{false};
93 bool m_enabledHasBeenSet = false;
94
96 bool m_eventHasBeenSet = false;
97
98 int m_threshold{0};
99 bool m_thresholdHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace RolesAnywhere
104} // namespace Aws
NotificationSetting & WithEnabled(bool value)
NotificationSetting & WithEvent(NotificationEvent value)
AWS_ROLESANYWHERE_API NotificationSetting(Aws::Utils::Json::JsonView jsonValue)
NotificationSetting & WithThreshold(int value)
AWS_ROLESANYWHERE_API NotificationSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationSetting & WithChannel(NotificationChannel value)
AWS_ROLESANYWHERE_API NotificationSetting()=default
Aws::Utils::Json::JsonValue JsonValue