AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
CreateAutomationRuleResult.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 CreateAutomationRuleResult() = default;
37 AWS_COMPUTEOPTIMIZERAUTOMATION_API CreateAutomationRuleResult& 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
79 inline const Aws::String& GetName() const { return m_name; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetDescription() const { return m_description; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
116 inline RuleType GetRuleType() const { return m_ruleType; }
117 inline void SetRuleType(RuleType value) {
118 m_ruleTypeHasBeenSet = true;
119 m_ruleType = value;
120 }
122 SetRuleType(value);
123 return *this;
124 }
126
128
132 inline long long GetRuleRevision() const { return m_ruleRevision; }
133 inline void SetRuleRevision(long long value) {
134 m_ruleRevisionHasBeenSet = true;
135 m_ruleRevision = value;
136 }
138 SetRuleRevision(value);
139 return *this;
140 }
142
144
148 inline const OrganizationConfiguration& GetOrganizationConfiguration() const { return m_organizationConfiguration; }
149 template <typename OrganizationConfigurationT = OrganizationConfiguration>
150 void SetOrganizationConfiguration(OrganizationConfigurationT&& value) {
151 m_organizationConfigurationHasBeenSet = true;
152 m_organizationConfiguration = std::forward<OrganizationConfigurationT>(value);
153 }
154 template <typename OrganizationConfigurationT = OrganizationConfiguration>
155 CreateAutomationRuleResult& WithOrganizationConfiguration(OrganizationConfigurationT&& value) {
156 SetOrganizationConfiguration(std::forward<OrganizationConfigurationT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::String& GetPriority() const { return m_priority; }
167 template <typename PriorityT = Aws::String>
168 void SetPriority(PriorityT&& value) {
169 m_priorityHasBeenSet = true;
170 m_priority = std::forward<PriorityT>(value);
171 }
172 template <typename PriorityT = Aws::String>
174 SetPriority(std::forward<PriorityT>(value));
175 return *this;
176 }
178
180
184 inline const Aws::Vector<RecommendedActionType>& GetRecommendedActionTypes() const { return m_recommendedActionTypes; }
185 template <typename RecommendedActionTypesT = Aws::Vector<RecommendedActionType>>
186 void SetRecommendedActionTypes(RecommendedActionTypesT&& value) {
187 m_recommendedActionTypesHasBeenSet = true;
188 m_recommendedActionTypes = std::forward<RecommendedActionTypesT>(value);
189 }
190 template <typename RecommendedActionTypesT = Aws::Vector<RecommendedActionType>>
191 CreateAutomationRuleResult& WithRecommendedActionTypes(RecommendedActionTypesT&& value) {
192 SetRecommendedActionTypes(std::forward<RecommendedActionTypesT>(value));
193 return *this;
194 }
196 m_recommendedActionTypesHasBeenSet = true;
197 m_recommendedActionTypes.push_back(value);
198 return *this;
199 }
201
203
204 inline const Criteria& GetCriteria() const { return m_criteria; }
205 template <typename CriteriaT = Criteria>
206 void SetCriteria(CriteriaT&& value) {
207 m_criteriaHasBeenSet = true;
208 m_criteria = std::forward<CriteriaT>(value);
209 }
210 template <typename CriteriaT = Criteria>
212 SetCriteria(std::forward<CriteriaT>(value));
213 return *this;
214 }
216
218
222 inline const Schedule& GetSchedule() const { return m_schedule; }
223 template <typename ScheduleT = Schedule>
224 void SetSchedule(ScheduleT&& value) {
225 m_scheduleHasBeenSet = true;
226 m_schedule = std::forward<ScheduleT>(value);
227 }
228 template <typename ScheduleT = Schedule>
230 SetSchedule(std::forward<ScheduleT>(value));
231 return *this;
232 }
234
236
239 inline RuleStatus GetStatus() const { return m_status; }
240 inline void SetStatus(RuleStatus value) {
241 m_statusHasBeenSet = true;
242 m_status = value;
243 }
245 SetStatus(value);
246 return *this;
247 }
249
251
255 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
256 template <typename TagsT = Aws::Vector<Tag>>
257 void SetTags(TagsT&& value) {
258 m_tagsHasBeenSet = true;
259 m_tags = std::forward<TagsT>(value);
260 }
261 template <typename TagsT = Aws::Vector<Tag>>
263 SetTags(std::forward<TagsT>(value));
264 return *this;
265 }
266 template <typename TagsT = Tag>
268 m_tagsHasBeenSet = true;
269 m_tags.emplace_back(std::forward<TagsT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
279 template <typename CreatedTimestampT = Aws::Utils::DateTime>
280 void SetCreatedTimestamp(CreatedTimestampT&& value) {
281 m_createdTimestampHasBeenSet = true;
282 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
283 }
284 template <typename CreatedTimestampT = Aws::Utils::DateTime>
286 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
287 return *this;
288 }
290
292
293 inline const Aws::String& GetRequestId() const { return m_requestId; }
294 template <typename RequestIdT = Aws::String>
295 void SetRequestId(RequestIdT&& value) {
296 m_requestIdHasBeenSet = true;
297 m_requestId = std::forward<RequestIdT>(value);
298 }
299 template <typename RequestIdT = Aws::String>
301 SetRequestId(std::forward<RequestIdT>(value));
302 return *this;
303 }
305 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
306
307 private:
308 Aws::String m_ruleArn;
309
310 Aws::String m_ruleId;
311
312 Aws::String m_name;
313
314 Aws::String m_description;
315
316 RuleType m_ruleType{RuleType::NOT_SET};
317
318 long long m_ruleRevision{0};
319
320 OrganizationConfiguration m_organizationConfiguration;
321
322 Aws::String m_priority;
323
324 Aws::Vector<RecommendedActionType> m_recommendedActionTypes;
325
326 Criteria m_criteria;
327
328 Schedule m_schedule;
329
331
332 Aws::Vector<Tag> m_tags;
333
334 Aws::Utils::DateTime m_createdTimestamp{};
335
336 Aws::String m_requestId;
337 Aws::Http::HttpResponseCode m_HttpResponseCode;
338 bool m_ruleArnHasBeenSet = false;
339 bool m_ruleIdHasBeenSet = false;
340 bool m_nameHasBeenSet = false;
341 bool m_descriptionHasBeenSet = false;
342 bool m_ruleTypeHasBeenSet = false;
343 bool m_ruleRevisionHasBeenSet = false;
344 bool m_organizationConfigurationHasBeenSet = false;
345 bool m_priorityHasBeenSet = false;
346 bool m_recommendedActionTypesHasBeenSet = false;
347 bool m_criteriaHasBeenSet = false;
348 bool m_scheduleHasBeenSet = false;
349 bool m_statusHasBeenSet = false;
350 bool m_tagsHasBeenSet = false;
351 bool m_createdTimestampHasBeenSet = false;
352 bool m_requestIdHasBeenSet = false;
353};
354
355} // namespace Model
356} // namespace ComputeOptimizerAutomation
357} // namespace Aws
CreateAutomationRuleResult & WithDescription(DescriptionT &&value)
CreateAutomationRuleResult & WithOrganizationConfiguration(OrganizationConfigurationT &&value)
CreateAutomationRuleResult & WithRecommendedActionTypes(RecommendedActionTypesT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API CreateAutomationRuleResult()=default
CreateAutomationRuleResult & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API CreateAutomationRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateAutomationRuleResult & AddRecommendedActionTypes(RecommendedActionType value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API CreateAutomationRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< RecommendedActionType > & GetRecommendedActionTypes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue