AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
NotificationConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/NotificationEvent.h>
11#include <aws/ssm/model/NotificationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM {
23namespace Model {
24
31 public:
32 AWS_SSM_API NotificationConfig() = default;
36
38
43 inline const Aws::String& GetNotificationArn() const { return m_notificationArn; }
44 inline bool NotificationArnHasBeenSet() const { return m_notificationArnHasBeenSet; }
45 template <typename NotificationArnT = Aws::String>
46 void SetNotificationArn(NotificationArnT&& value) {
47 m_notificationArnHasBeenSet = true;
48 m_notificationArn = std::forward<NotificationArnT>(value);
49 }
50 template <typename NotificationArnT = Aws::String>
51 NotificationConfig& WithNotificationArn(NotificationArnT&& value) {
52 SetNotificationArn(std::forward<NotificationArnT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::Vector<NotificationEvent>& GetNotificationEvents() const { return m_notificationEvents; }
66 inline bool NotificationEventsHasBeenSet() const { return m_notificationEventsHasBeenSet; }
67 template <typename NotificationEventsT = Aws::Vector<NotificationEvent>>
68 void SetNotificationEvents(NotificationEventsT&& value) {
69 m_notificationEventsHasBeenSet = true;
70 m_notificationEvents = std::forward<NotificationEventsT>(value);
71 }
72 template <typename NotificationEventsT = Aws::Vector<NotificationEvent>>
73 NotificationConfig& WithNotificationEvents(NotificationEventsT&& value) {
74 SetNotificationEvents(std::forward<NotificationEventsT>(value));
75 return *this;
76 }
78 m_notificationEventsHasBeenSet = true;
79 m_notificationEvents.push_back(value);
80 return *this;
81 }
83
85
92 inline NotificationType GetNotificationType() const { return m_notificationType; }
93 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
95 m_notificationTypeHasBeenSet = true;
96 m_notificationType = value;
97 }
100 return *this;
101 }
103 private:
104 Aws::String m_notificationArn;
105
106 Aws::Vector<NotificationEvent> m_notificationEvents;
107
109 bool m_notificationArnHasBeenSet = false;
110 bool m_notificationEventsHasBeenSet = false;
111 bool m_notificationTypeHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace SSM
116} // namespace Aws
void SetNotificationArn(NotificationArnT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< NotificationEvent > & GetNotificationEvents() const
const Aws::String & GetNotificationArn() const
AWS_SSM_API NotificationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API NotificationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationConfig & AddNotificationEvents(NotificationEvent value)
NotificationConfig & WithNotificationArn(NotificationArnT &&value)
NotificationType GetNotificationType() const
void SetNotificationEvents(NotificationEventsT &&value)
void SetNotificationType(NotificationType value)
NotificationConfig & WithNotificationEvents(NotificationEventsT &&value)
AWS_SSM_API NotificationConfig()=default
NotificationConfig & WithNotificationType(NotificationType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue