AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
NotificationSettingDetail.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/model/NotificationChannel.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rolesanywhere/model/NotificationEvent.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace RolesAnywhere
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_ROLESANYWHERE_API NotificationSettingDetail() = default;
39 AWS_ROLESANYWHERE_API NotificationSettingDetail(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; }
56
58
64 inline const Aws::String& GetConfiguredBy() const { return m_configuredBy; }
65 inline bool ConfiguredByHasBeenSet() const { return m_configuredByHasBeenSet; }
66 template<typename ConfiguredByT = Aws::String>
67 void SetConfiguredBy(ConfiguredByT&& value) { m_configuredByHasBeenSet = true; m_configuredBy = std::forward<ConfiguredByT>(value); }
68 template<typename ConfiguredByT = Aws::String>
69 NotificationSettingDetail& WithConfiguredBy(ConfiguredByT&& value) { SetConfiguredBy(std::forward<ConfiguredByT>(value)); return *this;}
71
73
76 inline bool GetEnabled() const { return m_enabled; }
77 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
78 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
79 inline NotificationSettingDetail& WithEnabled(bool value) { SetEnabled(value); return *this;}
81
83
86 inline NotificationEvent GetEvent() const { return m_event; }
87 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
88 inline void SetEvent(NotificationEvent value) { m_eventHasBeenSet = true; m_event = value; }
89 inline NotificationSettingDetail& WithEvent(NotificationEvent value) { SetEvent(value); return *this;}
91
93
96 inline int GetThreshold() const { return m_threshold; }
97 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
98 inline void SetThreshold(int value) { m_thresholdHasBeenSet = true; m_threshold = value; }
99 inline NotificationSettingDetail& WithThreshold(int value) { SetThreshold(value); return *this;}
101 private:
102
104 bool m_channelHasBeenSet = false;
105
106 Aws::String m_configuredBy;
107 bool m_configuredByHasBeenSet = false;
108
109 bool m_enabled{false};
110 bool m_enabledHasBeenSet = false;
111
113 bool m_eventHasBeenSet = false;
114
115 int m_threshold{0};
116 bool m_thresholdHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace RolesAnywhere
121} // 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