AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 NotificationSettingDetail& WithChannel(const NotificationChannel& value) { SetChannel(value); return *this;}
56 inline NotificationSettingDetail& WithChannel(NotificationChannel&& value) { SetChannel(std::move(value)); return *this;}
58
60
66 inline const Aws::String& GetConfiguredBy() const{ return m_configuredBy; }
67 inline bool ConfiguredByHasBeenSet() const { return m_configuredByHasBeenSet; }
68 inline void SetConfiguredBy(const Aws::String& value) { m_configuredByHasBeenSet = true; m_configuredBy = value; }
69 inline void SetConfiguredBy(Aws::String&& value) { m_configuredByHasBeenSet = true; m_configuredBy = std::move(value); }
70 inline void SetConfiguredBy(const char* value) { m_configuredByHasBeenSet = true; m_configuredBy.assign(value); }
71 inline NotificationSettingDetail& WithConfiguredBy(const Aws::String& value) { SetConfiguredBy(value); return *this;}
72 inline NotificationSettingDetail& WithConfiguredBy(Aws::String&& value) { SetConfiguredBy(std::move(value)); return *this;}
73 inline NotificationSettingDetail& WithConfiguredBy(const char* value) { SetConfiguredBy(value); return *this;}
75
77
80 inline bool GetEnabled() const{ return m_enabled; }
81 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
82 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
83 inline NotificationSettingDetail& WithEnabled(bool value) { SetEnabled(value); return *this;}
85
87
90 inline const NotificationEvent& GetEvent() const{ return m_event; }
91 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
92 inline void SetEvent(const NotificationEvent& value) { m_eventHasBeenSet = true; m_event = value; }
93 inline void SetEvent(NotificationEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
94 inline NotificationSettingDetail& WithEvent(const NotificationEvent& value) { SetEvent(value); return *this;}
95 inline NotificationSettingDetail& WithEvent(NotificationEvent&& value) { SetEvent(std::move(value)); return *this;}
97
99
102 inline int GetThreshold() const{ return m_threshold; }
103 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
104 inline void SetThreshold(int value) { m_thresholdHasBeenSet = true; m_threshold = value; }
105 inline NotificationSettingDetail& WithThreshold(int value) { SetThreshold(value); return *this;}
107 private:
108
109 NotificationChannel m_channel;
110 bool m_channelHasBeenSet = false;
111
112 Aws::String m_configuredBy;
113 bool m_configuredByHasBeenSet = false;
114
115 bool m_enabled;
116 bool m_enabledHasBeenSet = false;
117
118 NotificationEvent m_event;
119 bool m_eventHasBeenSet = false;
120
121 int m_threshold;
122 bool m_thresholdHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace RolesAnywhere
127} // namespace Aws
AWS_ROLESANYWHERE_API NotificationSettingDetail(Aws::Utils::Json::JsonView jsonValue)
NotificationSettingDetail & WithEvent(const NotificationEvent &value)
NotificationSettingDetail & WithConfiguredBy(Aws::String &&value)
NotificationSettingDetail & WithChannel(NotificationChannel &&value)
NotificationSettingDetail & WithChannel(const NotificationChannel &value)
AWS_ROLESANYWHERE_API NotificationSettingDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationSettingDetail & WithConfiguredBy(const Aws::String &value)
NotificationSettingDetail & WithConfiguredBy(const char *value)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationSettingDetail & WithEvent(NotificationEvent &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue