AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateNotificationRequest.h
1
6#pragma once
7#include <aws/budgets/BudgetsRequest.h>
8#include <aws/budgets/Budgets_EXPORTS.h>
9#include <aws/budgets/model/Notification.h>
10#include <aws/budgets/model/Subscriber.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Budgets {
18namespace Model {
19
26 public:
27 AWS_BUDGETS_API CreateNotificationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateNotification"; }
34
35 AWS_BUDGETS_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetAccountId() const { return m_accountId; }
45 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
46 template <typename AccountIdT = Aws::String>
47 void SetAccountId(AccountIdT&& value) {
48 m_accountIdHasBeenSet = true;
49 m_accountId = std::forward<AccountIdT>(value);
50 }
51 template <typename AccountIdT = Aws::String>
53 SetAccountId(std::forward<AccountIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
64 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
65 template <typename BudgetNameT = Aws::String>
66 void SetBudgetName(BudgetNameT&& value) {
67 m_budgetNameHasBeenSet = true;
68 m_budgetName = std::forward<BudgetNameT>(value);
69 }
70 template <typename BudgetNameT = Aws::String>
72 SetBudgetName(std::forward<BudgetNameT>(value));
73 return *this;
74 }
76
78
81 inline const Notification& GetNotification() const { return m_notification; }
82 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
83 template <typename NotificationT = Notification>
84 void SetNotification(NotificationT&& value) {
85 m_notificationHasBeenSet = true;
86 m_notification = std::forward<NotificationT>(value);
87 }
88 template <typename NotificationT = Notification>
90 SetNotification(std::forward<NotificationT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
101 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
102 template <typename SubscribersT = Aws::Vector<Subscriber>>
103 void SetSubscribers(SubscribersT&& value) {
104 m_subscribersHasBeenSet = true;
105 m_subscribers = std::forward<SubscribersT>(value);
106 }
107 template <typename SubscribersT = Aws::Vector<Subscriber>>
109 SetSubscribers(std::forward<SubscribersT>(value));
110 return *this;
111 }
112 template <typename SubscribersT = Subscriber>
114 m_subscribersHasBeenSet = true;
115 m_subscribers.emplace_back(std::forward<SubscribersT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_accountId;
121
122 Aws::String m_budgetName;
123
124 Notification m_notification;
125
126 Aws::Vector<Subscriber> m_subscribers;
127 bool m_accountIdHasBeenSet = false;
128 bool m_budgetNameHasBeenSet = false;
129 bool m_notificationHasBeenSet = false;
130 bool m_subscribersHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace Budgets
135} // namespace Aws
CreateNotificationRequest & AddSubscribers(SubscribersT &&value)
const Aws::Vector< Subscriber > & GetSubscribers() const
AWS_BUDGETS_API CreateNotificationRequest()=default
CreateNotificationRequest & WithNotification(NotificationT &&value)
CreateNotificationRequest & WithAccountId(AccountIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_BUDGETS_API Aws::String SerializePayload() const override
CreateNotificationRequest & WithBudgetName(BudgetNameT &&value)
CreateNotificationRequest & WithSubscribers(SubscribersT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector