AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NotificationSettingDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
9#include <aws/rolesanywhere/model/NotificationChannel.h>
10#include <aws/rolesanywhere/model/NotificationEvent.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RolesAnywhere {
22namespace Model {
23
32 public:
33 AWS_ROLESANYWHERE_API NotificationSettingDetail() = default;
34 AWS_ROLESANYWHERE_API NotificationSettingDetail(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 }
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
74 inline int GetThreshold() const { return m_threshold; }
75 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
76 inline void SetThreshold(int value) {
77 m_thresholdHasBeenSet = true;
78 m_threshold = value;
79 }
81 SetThreshold(value);
82 return *this;
83 }
85
87
93 inline NotificationChannel GetChannel() const { return m_channel; }
94 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
95 inline void SetChannel(NotificationChannel value) {
96 m_channelHasBeenSet = true;
97 m_channel = value;
98 }
100 SetChannel(value);
101 return *this;
102 }
104
106
112 inline const Aws::String& GetConfiguredBy() const { return m_configuredBy; }
113 inline bool ConfiguredByHasBeenSet() const { return m_configuredByHasBeenSet; }
114 template <typename ConfiguredByT = Aws::String>
115 void SetConfiguredBy(ConfiguredByT&& value) {
116 m_configuredByHasBeenSet = true;
117 m_configuredBy = std::forward<ConfiguredByT>(value);
118 }
119 template <typename ConfiguredByT = Aws::String>
121 SetConfiguredBy(std::forward<ConfiguredByT>(value));
122 return *this;
123 }
125 private:
126 bool m_enabled{false};
127
129
130 int m_threshold{0};
131
133
134 Aws::String m_configuredBy;
135 bool m_enabledHasBeenSet = false;
136 bool m_eventHasBeenSet = false;
137 bool m_thresholdHasBeenSet = false;
138 bool m_channelHasBeenSet = false;
139 bool m_configuredByHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace RolesAnywhere
144} // namespace Aws
AWS_ROLESANYWHERE_API NotificationSettingDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_ROLESANYWHERE_API NotificationSettingDetail()=default
NotificationSettingDetail & WithConfiguredBy(ConfiguredByT &&value)
AWS_ROLESANYWHERE_API NotificationSettingDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationSettingDetail & WithEvent(NotificationEvent value)
NotificationSettingDetail & WithChannel(NotificationChannel value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue