AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateBudgetRequest.h
1
6#pragma once
7#include <aws/budgets/BudgetsRequest.h>
8#include <aws/budgets/Budgets_EXPORTS.h>
9#include <aws/budgets/model/Budget.h>
10#include <aws/budgets/model/NotificationWithSubscribers.h>
11#include <aws/budgets/model/ResourceTag.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Budgets {
19namespace Model {
20
27 public:
28 AWS_BUDGETS_API CreateBudgetRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBudget"; }
35
36 AWS_BUDGETS_API Aws::String SerializePayload() const override;
37
39
41
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>
52 CreateBudgetRequest& WithAccountId(AccountIdT&& value) {
53 SetAccountId(std::forward<AccountIdT>(value));
54 return *this;
55 }
57
59
62 inline const Budget& GetBudget() const { return m_budget; }
63 inline bool BudgetHasBeenSet() const { return m_budgetHasBeenSet; }
64 template <typename BudgetT = Budget>
65 void SetBudget(BudgetT&& value) {
66 m_budgetHasBeenSet = true;
67 m_budget = std::forward<BudgetT>(value);
68 }
69 template <typename BudgetT = Budget>
70 CreateBudgetRequest& WithBudget(BudgetT&& value) {
71 SetBudget(std::forward<BudgetT>(value));
72 return *this;
73 }
75
77
84 inline const Aws::Vector<NotificationWithSubscribers>& GetNotificationsWithSubscribers() const { return m_notificationsWithSubscribers; }
85 inline bool NotificationsWithSubscribersHasBeenSet() const { return m_notificationsWithSubscribersHasBeenSet; }
86 template <typename NotificationsWithSubscribersT = Aws::Vector<NotificationWithSubscribers>>
87 void SetNotificationsWithSubscribers(NotificationsWithSubscribersT&& value) {
88 m_notificationsWithSubscribersHasBeenSet = true;
89 m_notificationsWithSubscribers = std::forward<NotificationsWithSubscribersT>(value);
90 }
91 template <typename NotificationsWithSubscribersT = Aws::Vector<NotificationWithSubscribers>>
92 CreateBudgetRequest& WithNotificationsWithSubscribers(NotificationsWithSubscribersT&& value) {
93 SetNotificationsWithSubscribers(std::forward<NotificationsWithSubscribersT>(value));
94 return *this;
95 }
96 template <typename NotificationsWithSubscribersT = NotificationWithSubscribers>
97 CreateBudgetRequest& AddNotificationsWithSubscribers(NotificationsWithSubscribersT&& value) {
98 m_notificationsWithSubscribersHasBeenSet = true;
99 m_notificationsWithSubscribers.emplace_back(std::forward<NotificationsWithSubscribersT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
110 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
111 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
112 void SetResourceTags(ResourceTagsT&& value) {
113 m_resourceTagsHasBeenSet = true;
114 m_resourceTags = std::forward<ResourceTagsT>(value);
115 }
116 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
117 CreateBudgetRequest& WithResourceTags(ResourceTagsT&& value) {
118 SetResourceTags(std::forward<ResourceTagsT>(value));
119 return *this;
120 }
121 template <typename ResourceTagsT = ResourceTag>
122 CreateBudgetRequest& AddResourceTags(ResourceTagsT&& value) {
123 m_resourceTagsHasBeenSet = true;
124 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_accountId;
130
131 Budget m_budget;
132
133 Aws::Vector<NotificationWithSubscribers> m_notificationsWithSubscribers;
134
135 Aws::Vector<ResourceTag> m_resourceTags;
136 bool m_accountIdHasBeenSet = false;
137 bool m_budgetHasBeenSet = false;
138 bool m_notificationsWithSubscribersHasBeenSet = false;
139 bool m_resourceTagsHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Budgets
144} // namespace Aws
const Aws::Vector< NotificationWithSubscribers > & GetNotificationsWithSubscribers() const
CreateBudgetRequest & AddNotificationsWithSubscribers(NotificationsWithSubscribersT &&value)
CreateBudgetRequest & WithAccountId(AccountIdT &&value)
CreateBudgetRequest & WithResourceTags(ResourceTagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateBudgetRequest & WithNotificationsWithSubscribers(NotificationsWithSubscribersT &&value)
AWS_BUDGETS_API Aws::String SerializePayload() const override
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBudgetRequest & WithBudget(BudgetT &&value)
void SetNotificationsWithSubscribers(NotificationsWithSubscribersT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
CreateBudgetRequest & AddResourceTags(ResourceTagsT &&value)
AWS_BUDGETS_API CreateBudgetRequest()=default
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