AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NotificationConfig.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/model/NotificationType.h>
11#include <aws/ssm/model/NotificationEvent.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SSM_API NotificationConfig() = default;
41
42
44
49 inline const Aws::String& GetNotificationArn() const { return m_notificationArn; }
50 inline bool NotificationArnHasBeenSet() const { return m_notificationArnHasBeenSet; }
51 template<typename NotificationArnT = Aws::String>
52 void SetNotificationArn(NotificationArnT&& value) { m_notificationArnHasBeenSet = true; m_notificationArn = std::forward<NotificationArnT>(value); }
53 template<typename NotificationArnT = Aws::String>
54 NotificationConfig& WithNotificationArn(NotificationArnT&& value) { SetNotificationArn(std::forward<NotificationArnT>(value)); return *this;}
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) { m_notificationEventsHasBeenSet = true; m_notificationEvents = std::forward<NotificationEventsT>(value); }
69 template<typename NotificationEventsT = Aws::Vector<NotificationEvent>>
70 NotificationConfig& WithNotificationEvents(NotificationEventsT&& value) { SetNotificationEvents(std::forward<NotificationEventsT>(value)); return *this;}
71 inline NotificationConfig& AddNotificationEvents(NotificationEvent value) { m_notificationEventsHasBeenSet = true; m_notificationEvents.push_back(value); return *this; }
73
75
82 inline NotificationType GetNotificationType() const { return m_notificationType; }
83 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
84 inline void SetNotificationType(NotificationType value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
87 private:
88
89 Aws::String m_notificationArn;
90 bool m_notificationArnHasBeenSet = false;
91
92 Aws::Vector<NotificationEvent> m_notificationEvents;
93 bool m_notificationEventsHasBeenSet = false;
94
96 bool m_notificationTypeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace SSM
101} // 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