AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
NotificationWithSubscribers.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/Notification.h>
9#include <aws/budgets/model/Subscriber.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Budgets {
22namespace Model {
23
32 public:
33 AWS_BUDGETS_API NotificationWithSubscribers() = default;
36 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Notification& GetNotification() const { return m_notification; }
43 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
44 template <typename NotificationT = Notification>
45 void SetNotification(NotificationT&& value) {
46 m_notificationHasBeenSet = true;
47 m_notification = std::forward<NotificationT>(value);
48 }
49 template <typename NotificationT = Notification>
51 SetNotification(std::forward<NotificationT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
61 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
62 template <typename SubscribersT = Aws::Vector<Subscriber>>
63 void SetSubscribers(SubscribersT&& value) {
64 m_subscribersHasBeenSet = true;
65 m_subscribers = std::forward<SubscribersT>(value);
66 }
67 template <typename SubscribersT = Aws::Vector<Subscriber>>
69 SetSubscribers(std::forward<SubscribersT>(value));
70 return *this;
71 }
72 template <typename SubscribersT = Subscriber>
74 m_subscribersHasBeenSet = true;
75 m_subscribers.emplace_back(std::forward<SubscribersT>(value));
76 return *this;
77 }
79 private:
80 Notification m_notification;
81
82 Aws::Vector<Subscriber> m_subscribers;
83 bool m_notificationHasBeenSet = false;
84 bool m_subscribersHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Budgets
89} // namespace Aws
const Aws::Vector< Subscriber > & GetSubscribers() const
AWS_BUDGETS_API NotificationWithSubscribers(Aws::Utils::Json::JsonView jsonValue)
NotificationWithSubscribers & WithNotification(NotificationT &&value)
NotificationWithSubscribers & WithSubscribers(SubscribersT &&value)
AWS_BUDGETS_API NotificationWithSubscribers()=default
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BUDGETS_API NotificationWithSubscribers & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationWithSubscribers & AddSubscribers(SubscribersT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue