AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSVector.h>
10#include <aws/budgets/model/Subscriber.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Budgets
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_BUDGETS_API NotificationWithSubscribers();
41 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Notification& GetNotification() const{ return m_notification; }
49 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
50 inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
51 inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
52 inline NotificationWithSubscribers& WithNotification(const Notification& value) { SetNotification(value); return *this;}
53 inline NotificationWithSubscribers& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<Subscriber>& GetSubscribers() const{ return m_subscribers; }
61 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
62 inline void SetSubscribers(const Aws::Vector<Subscriber>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
63 inline void SetSubscribers(Aws::Vector<Subscriber>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
65 inline NotificationWithSubscribers& WithSubscribers(Aws::Vector<Subscriber>&& value) { SetSubscribers(std::move(value)); return *this;}
66 inline NotificationWithSubscribers& AddSubscribers(const Subscriber& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
67 inline NotificationWithSubscribers& AddSubscribers(Subscriber&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
69 private:
70
71 Notification m_notification;
72 bool m_notificationHasBeenSet = false;
73
74 Aws::Vector<Subscriber> m_subscribers;
75 bool m_subscribersHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Budgets
80} // namespace Aws
void SetSubscribers(Aws::Vector< Subscriber > &&value)
const Aws::Vector< Subscriber > & GetSubscribers() const
NotificationWithSubscribers & WithSubscribers(const Aws::Vector< Subscriber > &value)
AWS_BUDGETS_API NotificationWithSubscribers(Aws::Utils::Json::JsonView jsonValue)
NotificationWithSubscribers & WithSubscribers(Aws::Vector< Subscriber > &&value)
NotificationWithSubscribers & WithNotification(const Notification &value)
NotificationWithSubscribers & AddSubscribers(Subscriber &&value)
NotificationWithSubscribers & AddSubscribers(const Subscriber &value)
void SetSubscribers(const Aws::Vector< Subscriber > &value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BUDGETS_API NotificationWithSubscribers & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationWithSubscribers & WithNotification(Notification &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue