AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
GetAutomationRuleResult.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/Criteria.h>
9#include <aws/compute-optimizer-automation/model/OrganizationConfiguration.h>
10#include <aws/compute-optimizer-automation/model/RecommendedActionType.h>
11#include <aws/compute-optimizer-automation/model/RuleStatus.h>
12#include <aws/compute-optimizer-automation/model/RuleType.h>
13#include <aws/compute-optimizer-automation/model/Schedule.h>
14#include <aws/compute-optimizer-automation/model/Tag.h>
15#include <aws/core/http/HttpResponse.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace ComputeOptimizerAutomation {
32namespace Model {
34 public:
35 AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationRuleResult() = default;
37 AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationRuleResult& operator=(
39
41
44 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
45 template <typename RuleArnT = Aws::String>
46 void SetRuleArn(RuleArnT&& value) {
47 m_ruleArnHasBeenSet = true;
48 m_ruleArn = std::forward<RuleArnT>(value);
49 }
50 template <typename RuleArnT = Aws::String>
52 SetRuleArn(std::forward<RuleArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRuleId() const { return m_ruleId; }
62 template <typename RuleIdT = Aws::String>
63 void SetRuleId(RuleIdT&& value) {
64 m_ruleIdHasBeenSet = true;
65 m_ruleId = std::forward<RuleIdT>(value);
66 }
67 template <typename RuleIdT = Aws::String>
69 SetRuleId(std::forward<RuleIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
112 inline RuleType GetRuleType() const { return m_ruleType; }
113 inline void SetRuleType(RuleType value) {
114 m_ruleTypeHasBeenSet = true;
115 m_ruleType = value;
116 }
118 SetRuleType(value);
119 return *this;
120 }
122
124
127 inline long long GetRuleRevision() const { return m_ruleRevision; }
128 inline void SetRuleRevision(long long value) {
129 m_ruleRevisionHasBeenSet = true;
130 m_ruleRevision = value;
131 }
132 inline GetAutomationRuleResult& WithRuleRevision(long long value) {
133 SetRuleRevision(value);
134 return *this;
135 }
137
139
143 inline const Aws::String& GetAccountId() const { return m_accountId; }
144 template <typename AccountIdT = Aws::String>
145 void SetAccountId(AccountIdT&& value) {
146 m_accountIdHasBeenSet = true;
147 m_accountId = std::forward<AccountIdT>(value);
148 }
149 template <typename AccountIdT = Aws::String>
151 SetAccountId(std::forward<AccountIdT>(value));
152 return *this;
153 }
155
157
158 inline const OrganizationConfiguration& GetOrganizationConfiguration() const { return m_organizationConfiguration; }
159 template <typename OrganizationConfigurationT = OrganizationConfiguration>
160 void SetOrganizationConfiguration(OrganizationConfigurationT&& value) {
161 m_organizationConfigurationHasBeenSet = true;
162 m_organizationConfiguration = std::forward<OrganizationConfigurationT>(value);
163 }
164 template <typename OrganizationConfigurationT = OrganizationConfiguration>
165 GetAutomationRuleResult& WithOrganizationConfiguration(OrganizationConfigurationT&& value) {
166 SetOrganizationConfiguration(std::forward<OrganizationConfigurationT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::String& GetPriority() const { return m_priority; }
177 template <typename PriorityT = Aws::String>
178 void SetPriority(PriorityT&& value) {
179 m_priorityHasBeenSet = true;
180 m_priority = std::forward<PriorityT>(value);
181 }
182 template <typename PriorityT = Aws::String>
184 SetPriority(std::forward<PriorityT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Vector<RecommendedActionType>& GetRecommendedActionTypes() const { return m_recommendedActionTypes; }
194 template <typename RecommendedActionTypesT = Aws::Vector<RecommendedActionType>>
195 void SetRecommendedActionTypes(RecommendedActionTypesT&& value) {
196 m_recommendedActionTypesHasBeenSet = true;
197 m_recommendedActionTypes = std::forward<RecommendedActionTypesT>(value);
198 }
199 template <typename RecommendedActionTypesT = Aws::Vector<RecommendedActionType>>
200 GetAutomationRuleResult& WithRecommendedActionTypes(RecommendedActionTypesT&& value) {
201 SetRecommendedActionTypes(std::forward<RecommendedActionTypesT>(value));
202 return *this;
203 }
205 m_recommendedActionTypesHasBeenSet = true;
206 m_recommendedActionTypes.push_back(value);
207 return *this;
208 }
210
212
213 inline const Criteria& GetCriteria() const { return m_criteria; }
214 template <typename CriteriaT = Criteria>
215 void SetCriteria(CriteriaT&& value) {
216 m_criteriaHasBeenSet = true;
217 m_criteria = std::forward<CriteriaT>(value);
218 }
219 template <typename CriteriaT = Criteria>
221 SetCriteria(std::forward<CriteriaT>(value));
222 return *this;
223 }
225
227
228 inline const Schedule& GetSchedule() const { return m_schedule; }
229 template <typename ScheduleT = Schedule>
230 void SetSchedule(ScheduleT&& value) {
231 m_scheduleHasBeenSet = true;
232 m_schedule = std::forward<ScheduleT>(value);
233 }
234 template <typename ScheduleT = Schedule>
236 SetSchedule(std::forward<ScheduleT>(value));
237 return *this;
238 }
240
242
245 inline RuleStatus GetStatus() const { return m_status; }
246 inline void SetStatus(RuleStatus value) {
247 m_statusHasBeenSet = true;
248 m_status = value;
249 }
251 SetStatus(value);
252 return *this;
253 }
255
257
260 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
261 template <typename TagsT = Aws::Vector<Tag>>
262 void SetTags(TagsT&& value) {
263 m_tagsHasBeenSet = true;
264 m_tags = std::forward<TagsT>(value);
265 }
266 template <typename TagsT = Aws::Vector<Tag>>
268 SetTags(std::forward<TagsT>(value));
269 return *this;
270 }
271 template <typename TagsT = Tag>
273 m_tagsHasBeenSet = true;
274 m_tags.emplace_back(std::forward<TagsT>(value));
275 return *this;
276 }
278
280
283 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
284 template <typename CreatedTimestampT = Aws::Utils::DateTime>
285 void SetCreatedTimestamp(CreatedTimestampT&& value) {
286 m_createdTimestampHasBeenSet = true;
287 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
288 }
289 template <typename CreatedTimestampT = Aws::Utils::DateTime>
290 GetAutomationRuleResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
291 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
292 return *this;
293 }
295
297
300 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
301 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
302 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
303 m_lastUpdatedTimestampHasBeenSet = true;
304 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
305 }
306 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
307 GetAutomationRuleResult& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
308 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
309 return *this;
310 }
312
314
315 inline const Aws::String& GetRequestId() const { return m_requestId; }
316 template <typename RequestIdT = Aws::String>
317 void SetRequestId(RequestIdT&& value) {
318 m_requestIdHasBeenSet = true;
319 m_requestId = std::forward<RequestIdT>(value);
320 }
321 template <typename RequestIdT = Aws::String>
323 SetRequestId(std::forward<RequestIdT>(value));
324 return *this;
325 }
327 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
328
329 private:
330 Aws::String m_ruleArn;
331
332 Aws::String m_ruleId;
333
334 Aws::String m_name;
335
336 Aws::String m_description;
337
338 RuleType m_ruleType{RuleType::NOT_SET};
339
340 long long m_ruleRevision{0};
341
342 Aws::String m_accountId;
343
344 OrganizationConfiguration m_organizationConfiguration;
345
346 Aws::String m_priority;
347
348 Aws::Vector<RecommendedActionType> m_recommendedActionTypes;
349
350 Criteria m_criteria;
351
352 Schedule m_schedule;
353
355
356 Aws::Vector<Tag> m_tags;
357
358 Aws::Utils::DateTime m_createdTimestamp{};
359
360 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
361
362 Aws::String m_requestId;
363 Aws::Http::HttpResponseCode m_HttpResponseCode;
364 bool m_ruleArnHasBeenSet = false;
365 bool m_ruleIdHasBeenSet = false;
366 bool m_nameHasBeenSet = false;
367 bool m_descriptionHasBeenSet = false;
368 bool m_ruleTypeHasBeenSet = false;
369 bool m_ruleRevisionHasBeenSet = false;
370 bool m_accountIdHasBeenSet = false;
371 bool m_organizationConfigurationHasBeenSet = false;
372 bool m_priorityHasBeenSet = false;
373 bool m_recommendedActionTypesHasBeenSet = false;
374 bool m_criteriaHasBeenSet = false;
375 bool m_scheduleHasBeenSet = false;
376 bool m_statusHasBeenSet = false;
377 bool m_tagsHasBeenSet = false;
378 bool m_createdTimestampHasBeenSet = false;
379 bool m_lastUpdatedTimestampHasBeenSet = false;
380 bool m_requestIdHasBeenSet = false;
381};
382
383} // namespace Model
384} // namespace ComputeOptimizerAutomation
385} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationRuleResult()=default
GetAutomationRuleResult & AddRecommendedActionTypes(RecommendedActionType value)
GetAutomationRuleResult & WithRecommendedActionTypes(RecommendedActionTypesT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAutomationRuleResult & WithDescription(DescriptionT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAutomationRuleResult & WithOrganizationConfiguration(OrganizationConfigurationT &&value)
GetAutomationRuleResult & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
const Aws::Vector< RecommendedActionType > & GetRecommendedActionTypes() const
GetAutomationRuleResult & WithCreatedTimestamp(CreatedTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue