AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const NotificationChannel& GetChannel() const{ return m_channel; }
52 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
53 inline void SetChannel(const NotificationChannel& value) { m_channelHasBeenSet = true; m_channel = value; }
54 inline void SetChannel(NotificationChannel&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); }
55 inline NotificationSetting& WithChannel(const NotificationChannel& value) { SetChannel(value); return *this;}
56 inline NotificationSetting& WithChannel(NotificationChannel&& value) { SetChannel(std::move(value)); return *this;}
58
60
63 inline bool GetEnabled() const{ return m_enabled; }
64 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
65 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
66 inline NotificationSetting& WithEnabled(bool value) { SetEnabled(value); return *this;}
68
70
73 inline const NotificationEvent& GetEvent() const{ return m_event; }
74 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
75 inline void SetEvent(const NotificationEvent& value) { m_eventHasBeenSet = true; m_event = value; }
76 inline void SetEvent(NotificationEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
77 inline NotificationSetting& WithEvent(const NotificationEvent& value) { SetEvent(value); return *this;}
78 inline NotificationSetting& WithEvent(NotificationEvent&& value) { SetEvent(std::move(value)); return *this;}
80
82
86 inline int GetThreshold() const{ return m_threshold; }
87 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
88 inline void SetThreshold(int value) { m_thresholdHasBeenSet = true; m_threshold = value; }
89 inline NotificationSetting& WithThreshold(int value) { SetThreshold(value); return *this;}
91 private:
92
93 NotificationChannel m_channel;
94 bool m_channelHasBeenSet = false;
95
96 bool m_enabled;
97 bool m_enabledHasBeenSet = false;
98
99 NotificationEvent m_event;
100 bool m_eventHasBeenSet = false;
101
102 int m_threshold;
103 bool m_thresholdHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace RolesAnywhere
108} // namespace Aws
NotificationSetting & WithChannel(const NotificationChannel &value)
void SetChannel(NotificationChannel &&value)
NotificationSetting & WithEnabled(bool value)
void SetEvent(const NotificationEvent &value)
NotificationSetting & WithChannel(NotificationChannel &&value)
NotificationSetting & WithEvent(const NotificationEvent &value)
NotificationSetting & WithEvent(NotificationEvent &&value)
AWS_ROLESANYWHERE_API NotificationSetting(Aws::Utils::Json::JsonView jsonValue)
NotificationSetting & WithThreshold(int value)
void SetChannel(const NotificationChannel &value)
AWS_ROLESANYWHERE_API NotificationSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
const NotificationChannel & GetChannel() const
Aws::Utils::Json::JsonValue JsonValue