AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateBudgetActionRequest.h
1
6#pragma once
7#include <aws/budgets/BudgetsRequest.h>
8#include <aws/budgets/Budgets_EXPORTS.h>
9#include <aws/budgets/model/ActionThreshold.h>
10#include <aws/budgets/model/ActionType.h>
11#include <aws/budgets/model/ApprovalModel.h>
12#include <aws/budgets/model/Definition.h>
13#include <aws/budgets/model/NotificationType.h>
14#include <aws/budgets/model/ResourceTag.h>
15#include <aws/budgets/model/Subscriber.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Budgets {
23namespace Model {
24
28 public:
29 AWS_BUDGETS_API CreateBudgetActionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateBudgetAction"; }
36
37 AWS_BUDGETS_API Aws::String SerializePayload() const override;
38
40
42
43 inline const Aws::String& GetAccountId() const { return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 template <typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) {
47 m_accountIdHasBeenSet = true;
48 m_accountId = std::forward<AccountIdT>(value);
49 }
50 template <typename AccountIdT = Aws::String>
52 SetAccountId(std::forward<AccountIdT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
60 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
61 template <typename BudgetNameT = Aws::String>
62 void SetBudgetName(BudgetNameT&& value) {
63 m_budgetNameHasBeenSet = true;
64 m_budgetName = std::forward<BudgetNameT>(value);
65 }
66 template <typename BudgetNameT = Aws::String>
68 SetBudgetName(std::forward<BudgetNameT>(value));
69 return *this;
70 }
72
74
75 inline NotificationType GetNotificationType() const { return m_notificationType; }
76 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
78 m_notificationTypeHasBeenSet = true;
79 m_notificationType = value;
80 }
83 return *this;
84 }
86
88
92 inline ActionType GetActionType() const { return m_actionType; }
93 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
94 inline void SetActionType(ActionType value) {
95 m_actionTypeHasBeenSet = true;
96 m_actionType = value;
97 }
99 SetActionType(value);
100 return *this;
101 }
103
105
106 inline const ActionThreshold& GetActionThreshold() const { return m_actionThreshold; }
107 inline bool ActionThresholdHasBeenSet() const { return m_actionThresholdHasBeenSet; }
108 template <typename ActionThresholdT = ActionThreshold>
109 void SetActionThreshold(ActionThresholdT&& value) {
110 m_actionThresholdHasBeenSet = true;
111 m_actionThreshold = std::forward<ActionThresholdT>(value);
112 }
113 template <typename ActionThresholdT = ActionThreshold>
115 SetActionThreshold(std::forward<ActionThresholdT>(value));
116 return *this;
117 }
119
121
122 inline const Definition& GetDefinition() const { return m_definition; }
123 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
124 template <typename DefinitionT = Definition>
125 void SetDefinition(DefinitionT&& value) {
126 m_definitionHasBeenSet = true;
127 m_definition = std::forward<DefinitionT>(value);
128 }
129 template <typename DefinitionT = Definition>
131 SetDefinition(std::forward<DefinitionT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
142 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
143 template <typename ExecutionRoleArnT = Aws::String>
144 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
145 m_executionRoleArnHasBeenSet = true;
146 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
147 }
148 template <typename ExecutionRoleArnT = Aws::String>
150 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
151 return *this;
152 }
154
156
159 inline ApprovalModel GetApprovalModel() const { return m_approvalModel; }
160 inline bool ApprovalModelHasBeenSet() const { return m_approvalModelHasBeenSet; }
161 inline void SetApprovalModel(ApprovalModel value) {
162 m_approvalModelHasBeenSet = true;
163 m_approvalModel = value;
164 }
166 SetApprovalModel(value);
167 return *this;
168 }
170
172
173 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
174 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
175 template <typename SubscribersT = Aws::Vector<Subscriber>>
176 void SetSubscribers(SubscribersT&& value) {
177 m_subscribersHasBeenSet = true;
178 m_subscribers = std::forward<SubscribersT>(value);
179 }
180 template <typename SubscribersT = Aws::Vector<Subscriber>>
182 SetSubscribers(std::forward<SubscribersT>(value));
183 return *this;
184 }
185 template <typename SubscribersT = Subscriber>
187 m_subscribersHasBeenSet = true;
188 m_subscribers.emplace_back(std::forward<SubscribersT>(value));
189 return *this;
190 }
192
194
199 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
200 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
201 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
202 void SetResourceTags(ResourceTagsT&& value) {
203 m_resourceTagsHasBeenSet = true;
204 m_resourceTags = std::forward<ResourceTagsT>(value);
205 }
206 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
208 SetResourceTags(std::forward<ResourceTagsT>(value));
209 return *this;
210 }
211 template <typename ResourceTagsT = ResourceTag>
213 m_resourceTagsHasBeenSet = true;
214 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_accountId;
220
221 Aws::String m_budgetName;
222
224
225 ActionType m_actionType{ActionType::NOT_SET};
226
227 ActionThreshold m_actionThreshold;
228
229 Definition m_definition;
230
231 Aws::String m_executionRoleArn;
232
233 ApprovalModel m_approvalModel{ApprovalModel::NOT_SET};
234
235 Aws::Vector<Subscriber> m_subscribers;
236
237 Aws::Vector<ResourceTag> m_resourceTags;
238 bool m_accountIdHasBeenSet = false;
239 bool m_budgetNameHasBeenSet = false;
240 bool m_notificationTypeHasBeenSet = false;
241 bool m_actionTypeHasBeenSet = false;
242 bool m_actionThresholdHasBeenSet = false;
243 bool m_definitionHasBeenSet = false;
244 bool m_executionRoleArnHasBeenSet = false;
245 bool m_approvalModelHasBeenSet = false;
246 bool m_subscribersHasBeenSet = false;
247 bool m_resourceTagsHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace Budgets
252} // namespace Aws
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBudgetActionRequest & WithSubscribers(SubscribersT &&value)
CreateBudgetActionRequest & WithResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
CreateBudgetActionRequest & WithActionThreshold(ActionThresholdT &&value)
CreateBudgetActionRequest & AddSubscribers(SubscribersT &&value)
CreateBudgetActionRequest & WithDefinition(DefinitionT &&value)
CreateBudgetActionRequest & WithAccountId(AccountIdT &&value)
CreateBudgetActionRequest & WithActionType(ActionType value)
virtual const char * GetServiceRequestName() const override
AWS_BUDGETS_API Aws::String SerializePayload() const override
CreateBudgetActionRequest & WithNotificationType(NotificationType value)
AWS_BUDGETS_API CreateBudgetActionRequest()=default
CreateBudgetActionRequest & WithBudgetName(BudgetNameT &&value)
CreateBudgetActionRequest & WithApprovalModel(ApprovalModel value)
const Aws::Vector< Subscriber > & GetSubscribers() const
CreateBudgetActionRequest & AddResourceTags(ResourceTagsT &&value)
CreateBudgetActionRequest & WithExecutionRoleArn(ExecutionRoleArnT &&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