AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
49 inline const Aws::String& GetNotificationArn() const{ return m_notificationArn; }
50 inline bool NotificationArnHasBeenSet() const { return m_notificationArnHasBeenSet; }
51 inline void SetNotificationArn(const Aws::String& value) { m_notificationArnHasBeenSet = true; m_notificationArn = value; }
52 inline void SetNotificationArn(Aws::String&& value) { m_notificationArnHasBeenSet = true; m_notificationArn = std::move(value); }
53 inline void SetNotificationArn(const char* value) { m_notificationArnHasBeenSet = true; m_notificationArn.assign(value); }
54 inline NotificationConfig& WithNotificationArn(const Aws::String& value) { SetNotificationArn(value); return *this;}
55 inline NotificationConfig& WithNotificationArn(Aws::String&& value) { SetNotificationArn(std::move(value)); return *this;}
56 inline NotificationConfig& WithNotificationArn(const char* value) { SetNotificationArn(value); return *this;}
58
60
67 inline const Aws::Vector<NotificationEvent>& GetNotificationEvents() const{ return m_notificationEvents; }
68 inline bool NotificationEventsHasBeenSet() const { return m_notificationEventsHasBeenSet; }
69 inline void SetNotificationEvents(const Aws::Vector<NotificationEvent>& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents = value; }
70 inline void SetNotificationEvents(Aws::Vector<NotificationEvent>&& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents = std::move(value); }
73 inline NotificationConfig& AddNotificationEvents(const NotificationEvent& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents.push_back(value); return *this; }
74 inline NotificationConfig& AddNotificationEvents(NotificationEvent&& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents.push_back(std::move(value)); return *this; }
76
78
85 inline const NotificationType& GetNotificationType() const{ return m_notificationType; }
86 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
87 inline void SetNotificationType(const NotificationType& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
88 inline void SetNotificationType(NotificationType&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); }
89 inline NotificationConfig& WithNotificationType(const NotificationType& value) { SetNotificationType(value); return *this;}
90 inline NotificationConfig& WithNotificationType(NotificationType&& value) { SetNotificationType(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_notificationArn;
95 bool m_notificationArnHasBeenSet = false;
96
97 Aws::Vector<NotificationEvent> m_notificationEvents;
98 bool m_notificationEventsHasBeenSet = false;
99
100 NotificationType m_notificationType;
101 bool m_notificationTypeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SSM
106} // namespace Aws
NotificationConfig & WithNotificationArn(const Aws::String &value)
void SetNotificationArn(const char *value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNotificationEvents(const Aws::Vector< NotificationEvent > &value)
NotificationConfig & WithNotificationEvents(Aws::Vector< NotificationEvent > &&value)
const Aws::Vector< NotificationEvent > & GetNotificationEvents() const
void SetNotificationType(NotificationType &&value)
const Aws::String & GetNotificationArn() const
void SetNotificationEvents(Aws::Vector< NotificationEvent > &&value)
void SetNotificationArn(Aws::String &&value)
NotificationConfig & WithNotificationArn(Aws::String &&value)
NotificationConfig & WithNotificationType(NotificationType &&value)
AWS_SSM_API NotificationConfig(Aws::Utils::Json::JsonView jsonValue)
void SetNotificationArn(const Aws::String &value)
const NotificationType & GetNotificationType() const
AWS_SSM_API NotificationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationConfig & WithNotificationArn(const char *value)
NotificationConfig & WithNotificationType(const NotificationType &value)
NotificationConfig & WithNotificationEvents(const Aws::Vector< NotificationEvent > &value)
void SetNotificationType(const NotificationType &value)
NotificationConfig & AddNotificationEvents(const NotificationEvent &value)
NotificationConfig & AddNotificationEvents(NotificationEvent &&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