AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/budgets/model/NotificationType.h>
10#include <aws/budgets/model/ActionType.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/budgets/model/ActionStatus.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/budgets/model/Subscriber.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Budgets
30{
31namespace Model
32{
33
39 class Action
40 {
41 public:
42 AWS_BUDGETS_API Action();
43 AWS_BUDGETS_API Action(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BUDGETS_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetActionId() const{ return m_actionId; }
53 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
54 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
55 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
56 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
57 inline Action& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
58 inline Action& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
59 inline Action& WithActionId(const char* value) { SetActionId(value); return *this;}
61
63
64 inline const Aws::String& GetBudgetName() const{ return m_budgetName; }
65 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
66 inline void SetBudgetName(const Aws::String& value) { m_budgetNameHasBeenSet = true; m_budgetName = value; }
67 inline void SetBudgetName(Aws::String&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::move(value); }
68 inline void SetBudgetName(const char* value) { m_budgetNameHasBeenSet = true; m_budgetName.assign(value); }
69 inline Action& WithBudgetName(const Aws::String& value) { SetBudgetName(value); return *this;}
70 inline Action& WithBudgetName(Aws::String&& value) { SetBudgetName(std::move(value)); return *this;}
71 inline Action& WithBudgetName(const char* value) { SetBudgetName(value); return *this;}
73
75
76 inline const NotificationType& GetNotificationType() const{ return m_notificationType; }
77 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
78 inline void SetNotificationType(const NotificationType& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
79 inline void SetNotificationType(NotificationType&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); }
80 inline Action& WithNotificationType(const NotificationType& value) { SetNotificationType(value); return *this;}
81 inline Action& WithNotificationType(NotificationType&& value) { SetNotificationType(std::move(value)); return *this;}
83
85
89 inline const ActionType& GetActionType() const{ return m_actionType; }
90 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
91 inline void SetActionType(const ActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
92 inline void SetActionType(ActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
93 inline Action& WithActionType(const ActionType& value) { SetActionType(value); return *this;}
94 inline Action& WithActionType(ActionType&& value) { SetActionType(std::move(value)); return *this;}
96
98
101 inline const ActionThreshold& GetActionThreshold() const{ return m_actionThreshold; }
102 inline bool ActionThresholdHasBeenSet() const { return m_actionThresholdHasBeenSet; }
103 inline void SetActionThreshold(const ActionThreshold& value) { m_actionThresholdHasBeenSet = true; m_actionThreshold = value; }
104 inline void SetActionThreshold(ActionThreshold&& value) { m_actionThresholdHasBeenSet = true; m_actionThreshold = std::move(value); }
105 inline Action& WithActionThreshold(const ActionThreshold& value) { SetActionThreshold(value); return *this;}
106 inline Action& WithActionThreshold(ActionThreshold&& value) { SetActionThreshold(std::move(value)); return *this;}
108
110
113 inline const Definition& GetDefinition() const{ return m_definition; }
114 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
115 inline void SetDefinition(const Definition& value) { m_definitionHasBeenSet = true; m_definition = value; }
116 inline void SetDefinition(Definition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
117 inline Action& WithDefinition(const Definition& value) { SetDefinition(value); return *this;}
118 inline Action& WithDefinition(Definition&& value) { SetDefinition(std::move(value)); return *this;}
120
122
126 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
127 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
128 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
129 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
130 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
131 inline Action& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
132 inline Action& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
133 inline Action& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
135
137
140 inline const ApprovalModel& GetApprovalModel() const{ return m_approvalModel; }
141 inline bool ApprovalModelHasBeenSet() const { return m_approvalModelHasBeenSet; }
142 inline void SetApprovalModel(const ApprovalModel& value) { m_approvalModelHasBeenSet = true; m_approvalModel = value; }
143 inline void SetApprovalModel(ApprovalModel&& value) { m_approvalModelHasBeenSet = true; m_approvalModel = std::move(value); }
144 inline Action& WithApprovalModel(const ApprovalModel& value) { SetApprovalModel(value); return *this;}
145 inline Action& WithApprovalModel(ApprovalModel&& value) { SetApprovalModel(std::move(value)); return *this;}
147
149
152 inline const ActionStatus& GetStatus() const{ return m_status; }
153 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
154 inline void SetStatus(const ActionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
155 inline void SetStatus(ActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
156 inline Action& WithStatus(const ActionStatus& value) { SetStatus(value); return *this;}
157 inline Action& WithStatus(ActionStatus&& value) { SetStatus(std::move(value)); return *this;}
159
161
162 inline const Aws::Vector<Subscriber>& GetSubscribers() const{ return m_subscribers; }
163 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
164 inline void SetSubscribers(const Aws::Vector<Subscriber>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
165 inline void SetSubscribers(Aws::Vector<Subscriber>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
166 inline Action& WithSubscribers(const Aws::Vector<Subscriber>& value) { SetSubscribers(value); return *this;}
167 inline Action& WithSubscribers(Aws::Vector<Subscriber>&& value) { SetSubscribers(std::move(value)); return *this;}
168 inline Action& AddSubscribers(const Subscriber& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
169 inline Action& AddSubscribers(Subscriber&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
171 private:
172
173 Aws::String m_actionId;
174 bool m_actionIdHasBeenSet = false;
175
176 Aws::String m_budgetName;
177 bool m_budgetNameHasBeenSet = false;
178
179 NotificationType m_notificationType;
180 bool m_notificationTypeHasBeenSet = false;
181
182 ActionType m_actionType;
183 bool m_actionTypeHasBeenSet = false;
184
185 ActionThreshold m_actionThreshold;
186 bool m_actionThresholdHasBeenSet = false;
187
188 Definition m_definition;
189 bool m_definitionHasBeenSet = false;
190
191 Aws::String m_executionRoleArn;
192 bool m_executionRoleArnHasBeenSet = false;
193
194 ApprovalModel m_approvalModel;
195 bool m_approvalModelHasBeenSet = false;
196
197 ActionStatus m_status;
198 bool m_statusHasBeenSet = false;
199
200 Aws::Vector<Subscriber> m_subscribers;
201 bool m_subscribersHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace Budgets
206} // namespace Aws
bool BudgetNameHasBeenSet() const
Definition Action.h:65
bool ActionThresholdHasBeenSet() const
Definition Action.h:102
void SetActionType(const ActionType &value)
Definition Action.h:91
void SetExecutionRoleArn(Aws::String &&value)
Definition Action.h:129
void SetExecutionRoleArn(const Aws::String &value)
Definition Action.h:128
Action & WithNotificationType(const NotificationType &value)
Definition Action.h:80
bool StatusHasBeenSet() const
Definition Action.h:153
void SetBudgetName(Aws::String &&value)
Definition Action.h:67
void SetActionId(Aws::String &&value)
Definition Action.h:55
Action & AddSubscribers(Subscriber &&value)
Definition Action.h:169
Action & WithActionId(const char *value)
Definition Action.h:59
void SetSubscribers(const Aws::Vector< Subscriber > &value)
Definition Action.h:164
Action & WithStatus(const ActionStatus &value)
Definition Action.h:156
Action & WithActionType(const ActionType &value)
Definition Action.h:93
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Subscriber > & GetSubscribers() const
Definition Action.h:162
AWS_BUDGETS_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithStatus(ActionStatus &&value)
Definition Action.h:157
Action & WithDefinition(Definition &&value)
Definition Action.h:118
Action & WithActionId(Aws::String &&value)
Definition Action.h:58
AWS_BUDGETS_API Action()
void SetActionId(const char *value)
Definition Action.h:56
const Definition & GetDefinition() const
Definition Action.h:113
bool ActionTypeHasBeenSet() const
Definition Action.h:90
void SetActionType(ActionType &&value)
Definition Action.h:92
const ActionStatus & GetStatus() const
Definition Action.h:152
bool DefinitionHasBeenSet() const
Definition Action.h:114
Action & WithBudgetName(Aws::String &&value)
Definition Action.h:70
void SetExecutionRoleArn(const char *value)
Definition Action.h:130
void SetDefinition(Definition &&value)
Definition Action.h:116
Action & WithSubscribers(Aws::Vector< Subscriber > &&value)
Definition Action.h:167
Action & WithExecutionRoleArn(const Aws::String &value)
Definition Action.h:131
void SetNotificationType(const NotificationType &value)
Definition Action.h:78
const Aws::String & GetActionId() const
Definition Action.h:52
Action & WithBudgetName(const Aws::String &value)
Definition Action.h:69
AWS_BUDGETS_API Action(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBudgetName() const
Definition Action.h:64
Action & WithDefinition(const Definition &value)
Definition Action.h:117
const Aws::String & GetExecutionRoleArn() const
Definition Action.h:126
bool ApprovalModelHasBeenSet() const
Definition Action.h:141
Action & WithApprovalModel(ApprovalModel &&value)
Definition Action.h:145
Action & WithApprovalModel(const ApprovalModel &value)
Definition Action.h:144
void SetStatus(const ActionStatus &value)
Definition Action.h:154
void SetBudgetName(const Aws::String &value)
Definition Action.h:66
void SetActionThreshold(ActionThreshold &&value)
Definition Action.h:104
const ApprovalModel & GetApprovalModel() const
Definition Action.h:140
bool ExecutionRoleArnHasBeenSet() const
Definition Action.h:127
Action & WithBudgetName(const char *value)
Definition Action.h:71
bool SubscribersHasBeenSet() const
Definition Action.h:163
Action & WithActionThreshold(ActionThreshold &&value)
Definition Action.h:106
void SetActionId(const Aws::String &value)
Definition Action.h:54
const NotificationType & GetNotificationType() const
Definition Action.h:76
Action & WithActionThreshold(const ActionThreshold &value)
Definition Action.h:105
const ActionType & GetActionType() const
Definition Action.h:89
bool ActionIdHasBeenSet() const
Definition Action.h:53
bool NotificationTypeHasBeenSet() const
Definition Action.h:77
Action & WithActionId(const Aws::String &value)
Definition Action.h:57
void SetStatus(ActionStatus &&value)
Definition Action.h:155
Action & WithActionType(ActionType &&value)
Definition Action.h:94
void SetApprovalModel(const ApprovalModel &value)
Definition Action.h:142
void SetApprovalModel(ApprovalModel &&value)
Definition Action.h:143
Action & WithNotificationType(NotificationType &&value)
Definition Action.h:81
Action & WithExecutionRoleArn(Aws::String &&value)
Definition Action.h:132
void SetDefinition(const Definition &value)
Definition Action.h:115
void SetSubscribers(Aws::Vector< Subscriber > &&value)
Definition Action.h:165
void SetBudgetName(const char *value)
Definition Action.h:68
void SetActionThreshold(const ActionThreshold &value)
Definition Action.h:103
Action & AddSubscribers(const Subscriber &value)
Definition Action.h:168
const ActionThreshold & GetActionThreshold() const
Definition Action.h:101
Action & WithSubscribers(const Aws::Vector< Subscriber > &value)
Definition Action.h:166
Action & WithExecutionRoleArn(const char *value)
Definition Action.h:133
void SetNotificationType(NotificationType &&value)
Definition Action.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue