AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateBudgetActionRequest.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/ApprovalModel.h>
11#include <aws/budgets/model/Definition.h>
12#include <aws/budgets/model/NotificationType.h>
13#include <aws/budgets/model/Subscriber.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Budgets {
21namespace Model {
22
26 public:
27 AWS_BUDGETS_API UpdateBudgetActionRequest() = 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 "UpdateBudgetAction"; }
34
35 AWS_BUDGETS_API Aws::String SerializePayload() const override;
36
38
40
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
58 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
59 template <typename BudgetNameT = Aws::String>
60 void SetBudgetName(BudgetNameT&& value) {
61 m_budgetNameHasBeenSet = true;
62 m_budgetName = std::forward<BudgetNameT>(value);
63 }
64 template <typename BudgetNameT = Aws::String>
66 SetBudgetName(std::forward<BudgetNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetActionId() const { return m_actionId; }
76 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
77 template <typename ActionIdT = Aws::String>
78 void SetActionId(ActionIdT&& value) {
79 m_actionIdHasBeenSet = true;
80 m_actionId = std::forward<ActionIdT>(value);
81 }
82 template <typename ActionIdT = Aws::String>
84 SetActionId(std::forward<ActionIdT>(value));
85 return *this;
86 }
88
90
91 inline NotificationType GetNotificationType() const { return m_notificationType; }
92 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
94 m_notificationTypeHasBeenSet = true;
95 m_notificationType = value;
96 }
99 return *this;
100 }
102
104
105 inline const ActionThreshold& GetActionThreshold() const { return m_actionThreshold; }
106 inline bool ActionThresholdHasBeenSet() const { return m_actionThresholdHasBeenSet; }
107 template <typename ActionThresholdT = ActionThreshold>
108 void SetActionThreshold(ActionThresholdT&& value) {
109 m_actionThresholdHasBeenSet = true;
110 m_actionThreshold = std::forward<ActionThresholdT>(value);
111 }
112 template <typename ActionThresholdT = ActionThreshold>
114 SetActionThreshold(std::forward<ActionThresholdT>(value));
115 return *this;
116 }
118
120
121 inline const Definition& GetDefinition() const { return m_definition; }
122 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
123 template <typename DefinitionT = Definition>
124 void SetDefinition(DefinitionT&& value) {
125 m_definitionHasBeenSet = true;
126 m_definition = std::forward<DefinitionT>(value);
127 }
128 template <typename DefinitionT = Definition>
130 SetDefinition(std::forward<DefinitionT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
141 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
142 template <typename ExecutionRoleArnT = Aws::String>
143 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
144 m_executionRoleArnHasBeenSet = true;
145 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
146 }
147 template <typename ExecutionRoleArnT = Aws::String>
149 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
150 return *this;
151 }
153
155
158 inline ApprovalModel GetApprovalModel() const { return m_approvalModel; }
159 inline bool ApprovalModelHasBeenSet() const { return m_approvalModelHasBeenSet; }
160 inline void SetApprovalModel(ApprovalModel value) {
161 m_approvalModelHasBeenSet = true;
162 m_approvalModel = value;
163 }
165 SetApprovalModel(value);
166 return *this;
167 }
169
171
172 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
173 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
174 template <typename SubscribersT = Aws::Vector<Subscriber>>
175 void SetSubscribers(SubscribersT&& value) {
176 m_subscribersHasBeenSet = true;
177 m_subscribers = std::forward<SubscribersT>(value);
178 }
179 template <typename SubscribersT = Aws::Vector<Subscriber>>
181 SetSubscribers(std::forward<SubscribersT>(value));
182 return *this;
183 }
184 template <typename SubscribersT = Subscriber>
186 m_subscribersHasBeenSet = true;
187 m_subscribers.emplace_back(std::forward<SubscribersT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_accountId;
193
194 Aws::String m_budgetName;
195
196 Aws::String m_actionId;
197
199
200 ActionThreshold m_actionThreshold;
201
202 Definition m_definition;
203
204 Aws::String m_executionRoleArn;
205
206 ApprovalModel m_approvalModel{ApprovalModel::NOT_SET};
207
208 Aws::Vector<Subscriber> m_subscribers;
209 bool m_accountIdHasBeenSet = false;
210 bool m_budgetNameHasBeenSet = false;
211 bool m_actionIdHasBeenSet = false;
212 bool m_notificationTypeHasBeenSet = false;
213 bool m_actionThresholdHasBeenSet = false;
214 bool m_definitionHasBeenSet = false;
215 bool m_executionRoleArnHasBeenSet = false;
216 bool m_approvalModelHasBeenSet = false;
217 bool m_subscribersHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace Budgets
222} // namespace Aws
UpdateBudgetActionRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
UpdateBudgetActionRequest & WithSubscribers(SubscribersT &&value)
UpdateBudgetActionRequest & WithAccountId(AccountIdT &&value)
AWS_BUDGETS_API Aws::String SerializePayload() const override
AWS_BUDGETS_API UpdateBudgetActionRequest()=default
UpdateBudgetActionRequest & WithActionId(ActionIdT &&value)
UpdateBudgetActionRequest & WithDefinition(DefinitionT &&value)
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateBudgetActionRequest & WithApprovalModel(ApprovalModel value)
const Aws::Vector< Subscriber > & GetSubscribers() const
virtual const char * GetServiceRequestName() const override
UpdateBudgetActionRequest & WithNotificationType(NotificationType value)
UpdateBudgetActionRequest & AddSubscribers(SubscribersT &&value)
UpdateBudgetActionRequest & WithBudgetName(BudgetNameT &&value)
UpdateBudgetActionRequest & WithActionThreshold(ActionThresholdT &&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