AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBudgetActionRequest.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/ActionType.h>
12#include <aws/budgets/model/ActionThreshold.h>
13#include <aws/budgets/model/Definition.h>
14#include <aws/budgets/model/ApprovalModel.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/budgets/model/Subscriber.h>
17#include <aws/budgets/model/ResourceTag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Budgets
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_BUDGETS_API CreateBudgetActionRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateBudgetAction"; }
39
40 AWS_BUDGETS_API Aws::String SerializePayload() const override;
41
43
44
46
47 inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline CreateBudgetActionRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline CreateBudgetActionRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline CreateBudgetActionRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
59 inline const Aws::String& GetBudgetName() const{ return m_budgetName; }
60 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
61 inline void SetBudgetName(const Aws::String& value) { m_budgetNameHasBeenSet = true; m_budgetName = value; }
62 inline void SetBudgetName(Aws::String&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::move(value); }
63 inline void SetBudgetName(const char* value) { m_budgetNameHasBeenSet = true; m_budgetName.assign(value); }
64 inline CreateBudgetActionRequest& WithBudgetName(const Aws::String& value) { SetBudgetName(value); return *this;}
65 inline CreateBudgetActionRequest& WithBudgetName(Aws::String&& value) { SetBudgetName(std::move(value)); return *this;}
66 inline CreateBudgetActionRequest& WithBudgetName(const char* value) { SetBudgetName(value); return *this;}
68
70
71 inline const NotificationType& GetNotificationType() const{ return m_notificationType; }
72 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
73 inline void SetNotificationType(const NotificationType& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
74 inline void SetNotificationType(NotificationType&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); }
76 inline CreateBudgetActionRequest& WithNotificationType(NotificationType&& value) { SetNotificationType(std::move(value)); return *this;}
78
80
84 inline const ActionType& GetActionType() const{ return m_actionType; }
85 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
86 inline void SetActionType(const ActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
87 inline void SetActionType(ActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
88 inline CreateBudgetActionRequest& WithActionType(const ActionType& value) { SetActionType(value); return *this;}
89 inline CreateBudgetActionRequest& WithActionType(ActionType&& value) { SetActionType(std::move(value)); return *this;}
91
93
94 inline const ActionThreshold& GetActionThreshold() const{ return m_actionThreshold; }
95 inline bool ActionThresholdHasBeenSet() const { return m_actionThresholdHasBeenSet; }
96 inline void SetActionThreshold(const ActionThreshold& value) { m_actionThresholdHasBeenSet = true; m_actionThreshold = value; }
97 inline void SetActionThreshold(ActionThreshold&& value) { m_actionThresholdHasBeenSet = true; m_actionThreshold = std::move(value); }
99 inline CreateBudgetActionRequest& WithActionThreshold(ActionThreshold&& value) { SetActionThreshold(std::move(value)); return *this;}
101
103
104 inline const Definition& GetDefinition() const{ return m_definition; }
105 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
106 inline void SetDefinition(const Definition& value) { m_definitionHasBeenSet = true; m_definition = value; }
107 inline void SetDefinition(Definition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
108 inline CreateBudgetActionRequest& WithDefinition(const Definition& value) { SetDefinition(value); return *this;}
109 inline CreateBudgetActionRequest& WithDefinition(Definition&& value) { SetDefinition(std::move(value)); return *this;}
111
113
117 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
118 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
119 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
120 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
121 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
123 inline CreateBudgetActionRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
124 inline CreateBudgetActionRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
126
128
131 inline const ApprovalModel& GetApprovalModel() const{ return m_approvalModel; }
132 inline bool ApprovalModelHasBeenSet() const { return m_approvalModelHasBeenSet; }
133 inline void SetApprovalModel(const ApprovalModel& value) { m_approvalModelHasBeenSet = true; m_approvalModel = value; }
134 inline void SetApprovalModel(ApprovalModel&& value) { m_approvalModelHasBeenSet = true; m_approvalModel = std::move(value); }
135 inline CreateBudgetActionRequest& WithApprovalModel(const ApprovalModel& value) { SetApprovalModel(value); return *this;}
136 inline CreateBudgetActionRequest& WithApprovalModel(ApprovalModel&& value) { SetApprovalModel(std::move(value)); return *this;}
138
140
141 inline const Aws::Vector<Subscriber>& GetSubscribers() const{ return m_subscribers; }
142 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
143 inline void SetSubscribers(const Aws::Vector<Subscriber>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
144 inline void SetSubscribers(Aws::Vector<Subscriber>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
146 inline CreateBudgetActionRequest& WithSubscribers(Aws::Vector<Subscriber>&& value) { SetSubscribers(std::move(value)); return *this;}
147 inline CreateBudgetActionRequest& AddSubscribers(const Subscriber& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
148 inline CreateBudgetActionRequest& AddSubscribers(Subscriber&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
150
152
157 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
158 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
159 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
160 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
162 inline CreateBudgetActionRequest& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
163 inline CreateBudgetActionRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
164 inline CreateBudgetActionRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
166 private:
167
168 Aws::String m_accountId;
169 bool m_accountIdHasBeenSet = false;
170
171 Aws::String m_budgetName;
172 bool m_budgetNameHasBeenSet = false;
173
174 NotificationType m_notificationType;
175 bool m_notificationTypeHasBeenSet = false;
176
177 ActionType m_actionType;
178 bool m_actionTypeHasBeenSet = false;
179
180 ActionThreshold m_actionThreshold;
181 bool m_actionThresholdHasBeenSet = false;
182
183 Definition m_definition;
184 bool m_definitionHasBeenSet = false;
185
186 Aws::String m_executionRoleArn;
187 bool m_executionRoleArnHasBeenSet = false;
188
189 ApprovalModel m_approvalModel;
190 bool m_approvalModelHasBeenSet = false;
191
192 Aws::Vector<Subscriber> m_subscribers;
193 bool m_subscribersHasBeenSet = false;
194
195 Aws::Vector<ResourceTag> m_resourceTags;
196 bool m_resourceTagsHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace Budgets
201} // namespace Aws
CreateBudgetActionRequest & WithResourceTags(const Aws::Vector< ResourceTag > &value)
CreateBudgetActionRequest & WithExecutionRoleArn(const Aws::String &value)
void SetSubscribers(Aws::Vector< Subscriber > &&value)
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBudgetActionRequest & WithApprovalModel(ApprovalModel &&value)
CreateBudgetActionRequest & WithNotificationType(NotificationType &&value)
CreateBudgetActionRequest & WithDefinition(Definition &&value)
void SetSubscribers(const Aws::Vector< Subscriber > &value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
CreateBudgetActionRequest & AddResourceTags(const ResourceTag &value)
CreateBudgetActionRequest & WithBudgetName(const Aws::String &value)
CreateBudgetActionRequest & WithActionType(ActionType &&value)
CreateBudgetActionRequest & AddSubscribers(const Subscriber &value)
CreateBudgetActionRequest & WithSubscribers(const Aws::Vector< Subscriber > &value)
CreateBudgetActionRequest & WithAccountId(const char *value)
CreateBudgetActionRequest & WithBudgetName(Aws::String &&value)
CreateBudgetActionRequest & WithExecutionRoleArn(const char *value)
CreateBudgetActionRequest & WithNotificationType(const NotificationType &value)
CreateBudgetActionRequest & WithActionThreshold(ActionThreshold &&value)
CreateBudgetActionRequest & WithAccountId(Aws::String &&value)
CreateBudgetActionRequest & WithActionThreshold(const ActionThreshold &value)
CreateBudgetActionRequest & WithAccountId(const Aws::String &value)
CreateBudgetActionRequest & WithDefinition(const Definition &value)
CreateBudgetActionRequest & AddSubscribers(Subscriber &&value)
CreateBudgetActionRequest & AddResourceTags(ResourceTag &&value)
CreateBudgetActionRequest & WithActionType(const ActionType &value)
void SetNotificationType(const NotificationType &value)
CreateBudgetActionRequest & WithSubscribers(Aws::Vector< Subscriber > &&value)
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
virtual const char * GetServiceRequestName() const override
AWS_BUDGETS_API Aws::String SerializePayload() const override
void SetActionThreshold(const ActionThreshold &value)
CreateBudgetActionRequest & WithResourceTags(Aws::Vector< ResourceTag > &&value)
CreateBudgetActionRequest & WithBudgetName(const char *value)
CreateBudgetActionRequest & WithApprovalModel(const ApprovalModel &value)
CreateBudgetActionRequest & WithExecutionRoleArn(Aws::String &&value)
const Aws::Vector< Subscriber > & GetSubscribers() const
void SetResourceTags(const Aws::Vector< ResourceTag > &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