AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
48 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
49 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
50 inline UpdateBudgetActionRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
51 inline UpdateBudgetActionRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
52 inline UpdateBudgetActionRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
54
56
57 inline const Aws::String& GetBudgetName() const{ return m_budgetName; }
58 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
59 inline void SetBudgetName(const Aws::String& value) { m_budgetNameHasBeenSet = true; m_budgetName = value; }
60 inline void SetBudgetName(Aws::String&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::move(value); }
61 inline void SetBudgetName(const char* value) { m_budgetNameHasBeenSet = true; m_budgetName.assign(value); }
62 inline UpdateBudgetActionRequest& WithBudgetName(const Aws::String& value) { SetBudgetName(value); return *this;}
63 inline UpdateBudgetActionRequest& WithBudgetName(Aws::String&& value) { SetBudgetName(std::move(value)); return *this;}
64 inline UpdateBudgetActionRequest& WithBudgetName(const char* value) { SetBudgetName(value); return *this;}
66
68
71 inline const Aws::String& GetActionId() const{ return m_actionId; }
72 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
73 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
74 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
75 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
76 inline UpdateBudgetActionRequest& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
77 inline UpdateBudgetActionRequest& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
78 inline UpdateBudgetActionRequest& WithActionId(const char* value) { SetActionId(value); return *this;}
80
82
83 inline const NotificationType& GetNotificationType() const{ return m_notificationType; }
84 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
85 inline void SetNotificationType(const NotificationType& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
86 inline void SetNotificationType(NotificationType&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); }
88 inline UpdateBudgetActionRequest& WithNotificationType(NotificationType&& value) { SetNotificationType(std::move(value)); return *this;}
90
92
93 inline const ActionThreshold& GetActionThreshold() const{ return m_actionThreshold; }
94 inline bool ActionThresholdHasBeenSet() const { return m_actionThresholdHasBeenSet; }
95 inline void SetActionThreshold(const ActionThreshold& value) { m_actionThresholdHasBeenSet = true; m_actionThreshold = value; }
96 inline void SetActionThreshold(ActionThreshold&& value) { m_actionThresholdHasBeenSet = true; m_actionThreshold = std::move(value); }
98 inline UpdateBudgetActionRequest& WithActionThreshold(ActionThreshold&& value) { SetActionThreshold(std::move(value)); return *this;}
100
102
103 inline const Definition& GetDefinition() const{ return m_definition; }
104 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
105 inline void SetDefinition(const Definition& value) { m_definitionHasBeenSet = true; m_definition = value; }
106 inline void SetDefinition(Definition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
107 inline UpdateBudgetActionRequest& WithDefinition(const Definition& value) { SetDefinition(value); return *this;}
108 inline UpdateBudgetActionRequest& WithDefinition(Definition&& value) { SetDefinition(std::move(value)); return *this;}
110
112
116 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
117 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
118 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
119 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
120 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
122 inline UpdateBudgetActionRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
123 inline UpdateBudgetActionRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
125
127
130 inline const ApprovalModel& GetApprovalModel() const{ return m_approvalModel; }
131 inline bool ApprovalModelHasBeenSet() const { return m_approvalModelHasBeenSet; }
132 inline void SetApprovalModel(const ApprovalModel& value) { m_approvalModelHasBeenSet = true; m_approvalModel = value; }
133 inline void SetApprovalModel(ApprovalModel&& value) { m_approvalModelHasBeenSet = true; m_approvalModel = std::move(value); }
134 inline UpdateBudgetActionRequest& WithApprovalModel(const ApprovalModel& value) { SetApprovalModel(value); return *this;}
135 inline UpdateBudgetActionRequest& WithApprovalModel(ApprovalModel&& value) { SetApprovalModel(std::move(value)); return *this;}
137
139
140 inline const Aws::Vector<Subscriber>& GetSubscribers() const{ return m_subscribers; }
141 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
142 inline void SetSubscribers(const Aws::Vector<Subscriber>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
143 inline void SetSubscribers(Aws::Vector<Subscriber>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
145 inline UpdateBudgetActionRequest& WithSubscribers(Aws::Vector<Subscriber>&& value) { SetSubscribers(std::move(value)); return *this;}
146 inline UpdateBudgetActionRequest& AddSubscribers(const Subscriber& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
147 inline UpdateBudgetActionRequest& AddSubscribers(Subscriber&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
149 private:
150
151 Aws::String m_accountId;
152 bool m_accountIdHasBeenSet = false;
153
154 Aws::String m_budgetName;
155 bool m_budgetNameHasBeenSet = false;
156
157 Aws::String m_actionId;
158 bool m_actionIdHasBeenSet = false;
159
160 NotificationType m_notificationType;
161 bool m_notificationTypeHasBeenSet = false;
162
163 ActionThreshold m_actionThreshold;
164 bool m_actionThresholdHasBeenSet = false;
165
166 Definition m_definition;
167 bool m_definitionHasBeenSet = false;
168
169 Aws::String m_executionRoleArn;
170 bool m_executionRoleArnHasBeenSet = false;
171
172 ApprovalModel m_approvalModel;
173 bool m_approvalModelHasBeenSet = false;
174
175 Aws::Vector<Subscriber> m_subscribers;
176 bool m_subscribersHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace Budgets
181} // namespace Aws
UpdateBudgetActionRequest & WithDefinition(const Definition &value)
void SetNotificationType(const NotificationType &value)
UpdateBudgetActionRequest & WithExecutionRoleArn(const Aws::String &value)
UpdateBudgetActionRequest & WithAccountId(const char *value)
UpdateBudgetActionRequest & WithDefinition(Definition &&value)
void SetSubscribers(const Aws::Vector< Subscriber > &value)
UpdateBudgetActionRequest & WithActionId(const Aws::String &value)
UpdateBudgetActionRequest & WithSubscribers(const Aws::Vector< Subscriber > &value)
void SetSubscribers(Aws::Vector< Subscriber > &&value)
UpdateBudgetActionRequest & WithExecutionRoleArn(const char *value)
AWS_BUDGETS_API Aws::String SerializePayload() const override
UpdateBudgetActionRequest & WithApprovalModel(const ApprovalModel &value)
UpdateBudgetActionRequest & WithActionId(const char *value)
UpdateBudgetActionRequest & WithNotificationType(const NotificationType &value)
UpdateBudgetActionRequest & WithNotificationType(NotificationType &&value)
UpdateBudgetActionRequest & WithAccountId(const Aws::String &value)
UpdateBudgetActionRequest & WithSubscribers(Aws::Vector< Subscriber > &&value)
UpdateBudgetActionRequest & WithActionThreshold(const ActionThreshold &value)
UpdateBudgetActionRequest & WithApprovalModel(ApprovalModel &&value)
UpdateBudgetActionRequest & WithBudgetName(Aws::String &&value)
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateBudgetActionRequest & WithActionId(Aws::String &&value)
UpdateBudgetActionRequest & WithBudgetName(const Aws::String &value)
const Aws::Vector< Subscriber > & GetSubscribers() const
virtual const char * GetServiceRequestName() const override
UpdateBudgetActionRequest & WithActionThreshold(ActionThreshold &&value)
UpdateBudgetActionRequest & AddSubscribers(Subscriber &&value)
UpdateBudgetActionRequest & WithExecutionRoleArn(Aws::String &&value)
UpdateBudgetActionRequest & AddSubscribers(const Subscriber &value)
UpdateBudgetActionRequest & WithBudgetName(const char *value)
void SetActionThreshold(const ActionThreshold &value)
UpdateBudgetActionRequest & 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