AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateNotificationRequest.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/BudgetsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/budgets/model/Notification.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/budgets/model/Subscriber.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Budgets
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_BUDGETS_API CreateNotificationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateNotification"; }
37
38 AWS_BUDGETS_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetAccountId() const { return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 template<typename AccountIdT = Aws::String>
51 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
52 template<typename AccountIdT = Aws::String>
53 CreateNotificationRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
62 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
63 template<typename BudgetNameT = Aws::String>
64 void SetBudgetName(BudgetNameT&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::forward<BudgetNameT>(value); }
65 template<typename BudgetNameT = Aws::String>
66 CreateNotificationRequest& WithBudgetName(BudgetNameT&& value) { SetBudgetName(std::forward<BudgetNameT>(value)); return *this;}
68
70
73 inline const Notification& GetNotification() const { return m_notification; }
74 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
75 template<typename NotificationT = Notification>
76 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
77 template<typename NotificationT = Notification>
78 CreateNotificationRequest& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
80
82
86 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
87 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
88 template<typename SubscribersT = Aws::Vector<Subscriber>>
89 void SetSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::forward<SubscribersT>(value); }
90 template<typename SubscribersT = Aws::Vector<Subscriber>>
91 CreateNotificationRequest& WithSubscribers(SubscribersT&& value) { SetSubscribers(std::forward<SubscribersT>(value)); return *this;}
92 template<typename SubscribersT = Subscriber>
93 CreateNotificationRequest& AddSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers.emplace_back(std::forward<SubscribersT>(value)); return *this; }
95 private:
96
97 Aws::String m_accountId;
98 bool m_accountIdHasBeenSet = false;
99
100 Aws::String m_budgetName;
101 bool m_budgetNameHasBeenSet = false;
102
103 Notification m_notification;
104 bool m_notificationHasBeenSet = false;
105
106 Aws::Vector<Subscriber> m_subscribers;
107 bool m_subscribersHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Budgets
112} // 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