AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace RolesAnywhere {
21namespace Model {
22
32 public:
33 AWS_ROLESANYWHERE_API NotificationSetting() = default;
34 AWS_ROLESANYWHERE_API NotificationSetting(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROLESANYWHERE_API NotificationSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
48 inline NotificationSetting& WithEnabled(bool value) {
49 SetEnabled(value);
50 return *this;
51 }
53
55
58 inline NotificationEvent GetEvent() const { return m_event; }
59 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
60 inline void SetEvent(NotificationEvent value) {
61 m_eventHasBeenSet = true;
62 m_event = value;
63 }
65 SetEvent(value);
66 return *this;
67 }
69
71
75 inline int GetThreshold() const { return m_threshold; }
76 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
77 inline void SetThreshold(int value) {
78 m_thresholdHasBeenSet = true;
79 m_threshold = value;
80 }
82 SetThreshold(value);
83 return *this;
84 }
86
88
94 inline NotificationChannel GetChannel() const { return m_channel; }
95 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
96 inline void SetChannel(NotificationChannel value) {
97 m_channelHasBeenSet = true;
98 m_channel = value;
99 }
101 SetChannel(value);
102 return *this;
103 }
105 private:
106 bool m_enabled{false};
107
109
110 int m_threshold{0};
111
113 bool m_enabledHasBeenSet = false;
114 bool m_eventHasBeenSet = false;
115 bool m_thresholdHasBeenSet = false;
116 bool m_channelHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace RolesAnywhere
121} // 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