AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline CreateNotificationRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline CreateNotificationRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline CreateNotificationRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
63 inline const Aws::String& GetBudgetName() const{ return m_budgetName; }
64 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
65 inline void SetBudgetName(const Aws::String& value) { m_budgetNameHasBeenSet = true; m_budgetName = value; }
66 inline void SetBudgetName(Aws::String&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::move(value); }
67 inline void SetBudgetName(const char* value) { m_budgetNameHasBeenSet = true; m_budgetName.assign(value); }
68 inline CreateNotificationRequest& WithBudgetName(const Aws::String& value) { SetBudgetName(value); return *this;}
69 inline CreateNotificationRequest& WithBudgetName(Aws::String&& value) { SetBudgetName(std::move(value)); return *this;}
70 inline CreateNotificationRequest& WithBudgetName(const char* value) { SetBudgetName(value); return *this;}
72
74
77 inline const Notification& GetNotification() const{ return m_notification; }
78 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
79 inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
80 inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
81 inline CreateNotificationRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
82 inline CreateNotificationRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
84
86
90 inline const Aws::Vector<Subscriber>& GetSubscribers() const{ return m_subscribers; }
91 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
92 inline void SetSubscribers(const Aws::Vector<Subscriber>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
93 inline void SetSubscribers(Aws::Vector<Subscriber>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
95 inline CreateNotificationRequest& WithSubscribers(Aws::Vector<Subscriber>&& value) { SetSubscribers(std::move(value)); return *this;}
96 inline CreateNotificationRequest& AddSubscribers(const Subscriber& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
97 inline CreateNotificationRequest& AddSubscribers(Subscriber&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_accountId;
102 bool m_accountIdHasBeenSet = false;
103
104 Aws::String m_budgetName;
105 bool m_budgetNameHasBeenSet = false;
106
107 Notification m_notification;
108 bool m_notificationHasBeenSet = false;
109
110 Aws::Vector<Subscriber> m_subscribers;
111 bool m_subscribersHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Budgets
116} // namespace Aws
void SetSubscribers(Aws::Vector< Subscriber > &&value)
CreateNotificationRequest & WithNotification(const Notification &value)
const Aws::Vector< Subscriber > & GetSubscribers() const
void SetSubscribers(const Aws::Vector< Subscriber > &value)
CreateNotificationRequest & AddSubscribers(const Subscriber &value)
CreateNotificationRequest & WithSubscribers(Aws::Vector< Subscriber > &&value)
CreateNotificationRequest & WithAccountId(const char *value)
CreateNotificationRequest & WithNotification(Notification &&value)
CreateNotificationRequest & AddSubscribers(Subscriber &&value)
CreateNotificationRequest & WithBudgetName(Aws::String &&value)
CreateNotificationRequest & WithSubscribers(const Aws::Vector< Subscriber > &value)
virtual const char * GetServiceRequestName() const override
CreateNotificationRequest & WithBudgetName(const char *value)
CreateNotificationRequest & WithBudgetName(const Aws::String &value)
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_BUDGETS_API Aws::String SerializePayload() const override
CreateNotificationRequest & WithAccountId(const Aws::String &value)
CreateNotificationRequest & WithAccountId(Aws::String &&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