AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateBudgetActionRequest.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/NotificationType.h>
11#include <aws/budgets/model/ActionThreshold.h>
12#include <aws/budgets/model/Definition.h>
13#include <aws/budgets/model/ApprovalModel.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/budgets/model/Subscriber.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Budgets
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_BUDGETS_API UpdateBudgetActionRequest() = 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 "UpdateBudgetAction"; }
37
38 AWS_BUDGETS_API Aws::String SerializePayload() const override;
39
41
42
44
45 inline const Aws::String& GetAccountId() const { return m_accountId; }
46 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
47 template<typename AccountIdT = Aws::String>
48 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
49 template<typename AccountIdT = Aws::String>
50 UpdateBudgetActionRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
52
54
55 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
56 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
57 template<typename BudgetNameT = Aws::String>
58 void SetBudgetName(BudgetNameT&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::forward<BudgetNameT>(value); }
59 template<typename BudgetNameT = Aws::String>
60 UpdateBudgetActionRequest& WithBudgetName(BudgetNameT&& value) { SetBudgetName(std::forward<BudgetNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetActionId() const { return m_actionId; }
68 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
69 template<typename ActionIdT = Aws::String>
70 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
71 template<typename ActionIdT = Aws::String>
72 UpdateBudgetActionRequest& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
74
76
77 inline NotificationType GetNotificationType() const { return m_notificationType; }
78 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
79 inline void SetNotificationType(NotificationType value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
82
84
85 inline const ActionThreshold& GetActionThreshold() const { return m_actionThreshold; }
86 inline bool ActionThresholdHasBeenSet() const { return m_actionThresholdHasBeenSet; }
87 template<typename ActionThresholdT = ActionThreshold>
88 void SetActionThreshold(ActionThresholdT&& value) { m_actionThresholdHasBeenSet = true; m_actionThreshold = std::forward<ActionThresholdT>(value); }
89 template<typename ActionThresholdT = ActionThreshold>
90 UpdateBudgetActionRequest& WithActionThreshold(ActionThresholdT&& value) { SetActionThreshold(std::forward<ActionThresholdT>(value)); return *this;}
92
94
95 inline const Definition& GetDefinition() const { return m_definition; }
96 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
97 template<typename DefinitionT = Definition>
98 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
99 template<typename DefinitionT = Definition>
100 UpdateBudgetActionRequest& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
102
104
108 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
109 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
110 template<typename ExecutionRoleArnT = Aws::String>
111 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
112 template<typename ExecutionRoleArnT = Aws::String>
113 UpdateBudgetActionRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
115
117
120 inline ApprovalModel GetApprovalModel() const { return m_approvalModel; }
121 inline bool ApprovalModelHasBeenSet() const { return m_approvalModelHasBeenSet; }
122 inline void SetApprovalModel(ApprovalModel value) { m_approvalModelHasBeenSet = true; m_approvalModel = value; }
125
127
128 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
129 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
130 template<typename SubscribersT = Aws::Vector<Subscriber>>
131 void SetSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::forward<SubscribersT>(value); }
132 template<typename SubscribersT = Aws::Vector<Subscriber>>
133 UpdateBudgetActionRequest& WithSubscribers(SubscribersT&& value) { SetSubscribers(std::forward<SubscribersT>(value)); return *this;}
134 template<typename SubscribersT = Subscriber>
135 UpdateBudgetActionRequest& AddSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers.emplace_back(std::forward<SubscribersT>(value)); return *this; }
137 private:
138
139 Aws::String m_accountId;
140 bool m_accountIdHasBeenSet = false;
141
142 Aws::String m_budgetName;
143 bool m_budgetNameHasBeenSet = false;
144
145 Aws::String m_actionId;
146 bool m_actionIdHasBeenSet = false;
147
149 bool m_notificationTypeHasBeenSet = false;
150
151 ActionThreshold m_actionThreshold;
152 bool m_actionThresholdHasBeenSet = false;
153
154 Definition m_definition;
155 bool m_definitionHasBeenSet = false;
156
157 Aws::String m_executionRoleArn;
158 bool m_executionRoleArnHasBeenSet = false;
159
160 ApprovalModel m_approvalModel{ApprovalModel::NOT_SET};
161 bool m_approvalModelHasBeenSet = false;
162
163 Aws::Vector<Subscriber> m_subscribers;
164 bool m_subscribersHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Budgets
169} // 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