AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NotificationSettingKey.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
34 {
35 public:
36 AWS_ROLESANYWHERE_API NotificationSettingKey();
37 AWS_ROLESANYWHERE_API NotificationSettingKey(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const NotificationChannel& GetChannel() const{ return m_channel; }
47 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
48 inline void SetChannel(const NotificationChannel& value) { m_channelHasBeenSet = true; m_channel = value; }
49 inline void SetChannel(NotificationChannel&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); }
50 inline NotificationSettingKey& WithChannel(const NotificationChannel& value) { SetChannel(value); return *this;}
51 inline NotificationSettingKey& WithChannel(NotificationChannel&& value) { SetChannel(std::move(value)); return *this;}
53
55
58 inline const NotificationEvent& GetEvent() const{ return m_event; }
59 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
60 inline void SetEvent(const NotificationEvent& value) { m_eventHasBeenSet = true; m_event = value; }
61 inline void SetEvent(NotificationEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
62 inline NotificationSettingKey& WithEvent(const NotificationEvent& value) { SetEvent(value); return *this;}
63 inline NotificationSettingKey& WithEvent(NotificationEvent&& value) { SetEvent(std::move(value)); return *this;}
65 private:
66
67 NotificationChannel m_channel;
68 bool m_channelHasBeenSet = false;
69
70 NotificationEvent m_event;
71 bool m_eventHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace RolesAnywhere
76} // namespace Aws
NotificationSettingKey & WithEvent(NotificationEvent &&value)
AWS_ROLESANYWHERE_API NotificationSettingKey & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChannel(const NotificationChannel &value)
NotificationSettingKey & WithEvent(const NotificationEvent &value)
AWS_ROLESANYWHERE_API NotificationSettingKey(Aws::Utils::Json::JsonView jsonValue)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationSettingKey & WithChannel(NotificationChannel &&value)
NotificationSettingKey & WithChannel(const NotificationChannel &value)
Aws::Utils::Json::JsonValue JsonValue