AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
UpdateAutomationRuleResult.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/core/http/HttpResponse.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace ComputeOptimizerAutomation {
31namespace Model {
33 public:
34 AWS_COMPUTEOPTIMIZERAUTOMATION_API UpdateAutomationRuleResult() = default;
36 AWS_COMPUTEOPTIMIZERAUTOMATION_API UpdateAutomationRuleResult& operator=(
38
40
43 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
44 template <typename RuleArnT = Aws::String>
45 void SetRuleArn(RuleArnT&& value) {
46 m_ruleArnHasBeenSet = true;
47 m_ruleArn = std::forward<RuleArnT>(value);
48 }
49 template <typename RuleArnT = Aws::String>
51 SetRuleArn(std::forward<RuleArnT>(value));
52 return *this;
53 }
55
57
60 inline long long GetRuleRevision() const { return m_ruleRevision; }
61 inline void SetRuleRevision(long long value) {
62 m_ruleRevisionHasBeenSet = true;
63 m_ruleRevision = value;
64 }
66 SetRuleRevision(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 template <typename NameT = Aws::String>
77 void SetName(NameT&& value) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
109 inline RuleType GetRuleType() const { return m_ruleType; }
110 inline void SetRuleType(RuleType value) {
111 m_ruleTypeHasBeenSet = true;
112 m_ruleType = value;
113 }
115 SetRuleType(value);
116 return *this;
117 }
119
121
124 inline const OrganizationConfiguration& GetOrganizationConfiguration() const { return m_organizationConfiguration; }
125 template <typename OrganizationConfigurationT = OrganizationConfiguration>
126 void SetOrganizationConfiguration(OrganizationConfigurationT&& value) {
127 m_organizationConfigurationHasBeenSet = true;
128 m_organizationConfiguration = std::forward<OrganizationConfigurationT>(value);
129 }
130 template <typename OrganizationConfigurationT = OrganizationConfiguration>
131 UpdateAutomationRuleResult& WithOrganizationConfiguration(OrganizationConfigurationT&& value) {
132 SetOrganizationConfiguration(std::forward<OrganizationConfigurationT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetPriority() const { return m_priority; }
142 template <typename PriorityT = Aws::String>
143 void SetPriority(PriorityT&& value) {
144 m_priorityHasBeenSet = true;
145 m_priority = std::forward<PriorityT>(value);
146 }
147 template <typename PriorityT = Aws::String>
149 SetPriority(std::forward<PriorityT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<RecommendedActionType>& GetRecommendedActionTypes() const { return m_recommendedActionTypes; }
159 template <typename RecommendedActionTypesT = Aws::Vector<RecommendedActionType>>
160 void SetRecommendedActionTypes(RecommendedActionTypesT&& value) {
161 m_recommendedActionTypesHasBeenSet = true;
162 m_recommendedActionTypes = std::forward<RecommendedActionTypesT>(value);
163 }
164 template <typename RecommendedActionTypesT = Aws::Vector<RecommendedActionType>>
165 UpdateAutomationRuleResult& WithRecommendedActionTypes(RecommendedActionTypesT&& value) {
166 SetRecommendedActionTypes(std::forward<RecommendedActionTypesT>(value));
167 return *this;
168 }
170 m_recommendedActionTypesHasBeenSet = true;
171 m_recommendedActionTypes.push_back(value);
172 return *this;
173 }
175
177
178 inline const Criteria& GetCriteria() const { return m_criteria; }
179 template <typename CriteriaT = Criteria>
180 void SetCriteria(CriteriaT&& value) {
181 m_criteriaHasBeenSet = true;
182 m_criteria = std::forward<CriteriaT>(value);
183 }
184 template <typename CriteriaT = Criteria>
186 SetCriteria(std::forward<CriteriaT>(value));
187 return *this;
188 }
190
192
195 inline const Schedule& GetSchedule() const { return m_schedule; }
196 template <typename ScheduleT = Schedule>
197 void SetSchedule(ScheduleT&& value) {
198 m_scheduleHasBeenSet = true;
199 m_schedule = std::forward<ScheduleT>(value);
200 }
201 template <typename ScheduleT = Schedule>
203 SetSchedule(std::forward<ScheduleT>(value));
204 return *this;
205 }
207
209
212 inline RuleStatus GetStatus() const { return m_status; }
213 inline void SetStatus(RuleStatus value) {
214 m_statusHasBeenSet = true;
215 m_status = value;
216 }
218 SetStatus(value);
219 return *this;
220 }
222
224
227 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
228 template <typename CreatedTimestampT = Aws::Utils::DateTime>
229 void SetCreatedTimestamp(CreatedTimestampT&& value) {
230 m_createdTimestampHasBeenSet = true;
231 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
232 }
233 template <typename CreatedTimestampT = Aws::Utils::DateTime>
235 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
245 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
246 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
247 m_lastUpdatedTimestampHasBeenSet = true;
248 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
249 }
250 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
251 UpdateAutomationRuleResult& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
252 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
253 return *this;
254 }
256
258
259 inline const Aws::String& GetRequestId() const { return m_requestId; }
260 template <typename RequestIdT = Aws::String>
261 void SetRequestId(RequestIdT&& value) {
262 m_requestIdHasBeenSet = true;
263 m_requestId = std::forward<RequestIdT>(value);
264 }
265 template <typename RequestIdT = Aws::String>
267 SetRequestId(std::forward<RequestIdT>(value));
268 return *this;
269 }
271 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
272
273 private:
274 Aws::String m_ruleArn;
275
276 long long m_ruleRevision{0};
277
278 Aws::String m_name;
279
280 Aws::String m_description;
281
282 RuleType m_ruleType{RuleType::NOT_SET};
283
284 OrganizationConfiguration m_organizationConfiguration;
285
286 Aws::String m_priority;
287
288 Aws::Vector<RecommendedActionType> m_recommendedActionTypes;
289
290 Criteria m_criteria;
291
292 Schedule m_schedule;
293
295
296 Aws::Utils::DateTime m_createdTimestamp{};
297
298 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
299
300 Aws::String m_requestId;
301 Aws::Http::HttpResponseCode m_HttpResponseCode;
302 bool m_ruleArnHasBeenSet = false;
303 bool m_ruleRevisionHasBeenSet = false;
304 bool m_nameHasBeenSet = false;
305 bool m_descriptionHasBeenSet = false;
306 bool m_ruleTypeHasBeenSet = false;
307 bool m_organizationConfigurationHasBeenSet = false;
308 bool m_priorityHasBeenSet = false;
309 bool m_recommendedActionTypesHasBeenSet = false;
310 bool m_criteriaHasBeenSet = false;
311 bool m_scheduleHasBeenSet = false;
312 bool m_statusHasBeenSet = false;
313 bool m_createdTimestampHasBeenSet = false;
314 bool m_lastUpdatedTimestampHasBeenSet = false;
315 bool m_requestIdHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace ComputeOptimizerAutomation
320} // namespace Aws
UpdateAutomationRuleResult & AddRecommendedActionTypes(RecommendedActionType value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API UpdateAutomationRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COMPUTEOPTIMIZERAUTOMATION_API UpdateAutomationRuleResult()=default
UpdateAutomationRuleResult & WithCreatedTimestamp(CreatedTimestampT &&value)
UpdateAutomationRuleResult & WithOrganizationConfiguration(OrganizationConfigurationT &&value)
const Aws::Vector< RecommendedActionType > & GetRecommendedActionTypes() const
UpdateAutomationRuleResult & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
UpdateAutomationRuleResult & WithDescription(DescriptionT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API UpdateAutomationRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateAutomationRuleResult & WithRecommendedActionTypes(RecommendedActionTypesT &&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