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>
22template <
typename RESULT_TYPE>
23class AmazonWebServiceResult;
30namespace ComputeOptimizerAutomation {
44 template <
typename RuleArnT = Aws::String>
46 m_ruleArnHasBeenSet =
true;
47 m_ruleArn = std::forward<RuleArnT>(value);
49 template <
typename RuleArnT = Aws::String>
62 m_ruleRevisionHasBeenSet =
true;
63 m_ruleRevision = value;
76 template <
typename NameT = Aws::String>
78 m_nameHasBeenSet =
true;
79 m_name = std::forward<NameT>(value);
81 template <
typename NameT = Aws::String>
83 SetName(std::forward<NameT>(value));
93 template <
typename DescriptionT = Aws::String>
95 m_descriptionHasBeenSet =
true;
96 m_description = std::forward<DescriptionT>(value);
98 template <
typename DescriptionT = Aws::String>
111 m_ruleTypeHasBeenSet =
true;
125 template <
typename OrganizationConfigurationT = OrganizationConfiguration>
127 m_organizationConfigurationHasBeenSet =
true;
128 m_organizationConfiguration = std::forward<OrganizationConfigurationT>(value);
130 template <
typename OrganizationConfigurationT = OrganizationConfiguration>
142 template <
typename PriorityT = Aws::String>
144 m_priorityHasBeenSet =
true;
145 m_priority = std::forward<PriorityT>(value);
147 template <
typename PriorityT = Aws::String>
159 template <
typename RecommendedActionTypesT = Aws::Vector<RecommendedActionType>>
161 m_recommendedActionTypesHasBeenSet =
true;
162 m_recommendedActionTypes = std::forward<RecommendedActionTypesT>(value);
164 template <
typename RecommendedActionTypesT = Aws::Vector<RecommendedActionType>>
170 m_recommendedActionTypesHasBeenSet =
true;
171 m_recommendedActionTypes.push_back(value);
179 template <
typename CriteriaT = Criteria>
181 m_criteriaHasBeenSet =
true;
182 m_criteria = std::forward<CriteriaT>(value);
184 template <
typename CriteriaT = Criteria>
196 template <
typename ScheduleT = Schedule>
198 m_scheduleHasBeenSet =
true;
199 m_schedule = std::forward<ScheduleT>(value);
201 template <
typename ScheduleT = Schedule>
214 m_statusHasBeenSet =
true;
228 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
230 m_createdTimestampHasBeenSet =
true;
231 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
233 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
245 template <
typename LastUpdatedTimestampT = Aws::Utils::DateTime>
247 m_lastUpdatedTimestampHasBeenSet =
true;
248 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
250 template <
typename LastUpdatedTimestampT = Aws::Utils::DateTime>
260 template <
typename RequestIdT = Aws::String>
262 m_requestIdHasBeenSet =
true;
263 m_requestId = std::forward<RequestIdT>(value);
265 template <
typename RequestIdT = Aws::String>
276 long long m_ruleRevision{0};
284 OrganizationConfiguration m_organizationConfiguration;
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;
UpdateAutomationRuleResult & AddRecommendedActionTypes(RecommendedActionType value)
void SetRequestId(RequestIdT &&value)
void SetPriority(PriorityT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
void SetRuleType(RuleType value)
RuleStatus GetStatus() const
const Aws::String & GetRequestId() const
UpdateAutomationRuleResult & WithPriority(PriorityT &&value)
void SetRecommendedActionTypes(RecommendedActionTypesT &&value)
const Aws::String & GetPriority() const
long long GetRuleRevision() const
const Criteria & GetCriteria() const
void SetName(NameT &&value)
UpdateAutomationRuleResult & WithCriteria(CriteriaT &&value)
UpdateAutomationRuleResult & WithRuleArn(RuleArnT &&value)
void SetCriteria(CriteriaT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API UpdateAutomationRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetDescription(DescriptionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API UpdateAutomationRuleResult()=default
const Schedule & GetSchedule() const
UpdateAutomationRuleResult & WithCreatedTimestamp(CreatedTimestampT &&value)
void SetRuleRevision(long long value)
UpdateAutomationRuleResult & WithRuleRevision(long long value)
UpdateAutomationRuleResult & WithOrganizationConfiguration(OrganizationConfigurationT &&value)
const Aws::Vector< RecommendedActionType > & GetRecommendedActionTypes() const
UpdateAutomationRuleResult & WithSchedule(ScheduleT &&value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
void SetOrganizationConfiguration(OrganizationConfigurationT &&value)
UpdateAutomationRuleResult & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
RuleType GetRuleType() const
const OrganizationConfiguration & GetOrganizationConfiguration() const
UpdateAutomationRuleResult & WithRuleType(RuleType value)
UpdateAutomationRuleResult & WithName(NameT &&value)
const Aws::String & GetDescription() const
void SetStatus(RuleStatus value)
UpdateAutomationRuleResult & WithDescription(DescriptionT &&value)
UpdateAutomationRuleResult & WithStatus(RuleStatus value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API UpdateAutomationRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetName() const
UpdateAutomationRuleResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetRuleArn(RuleArnT &&value)
const Aws::String & GetRuleArn() const
UpdateAutomationRuleResult & WithRecommendedActionTypes(RecommendedActionTypesT &&value)
void SetSchedule(ScheduleT &&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