7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/EstimatedMonthlySavings.h>
9#include <aws/compute-optimizer-automation/model/EventStatus.h>
10#include <aws/compute-optimizer-automation/model/EventType.h>
11#include <aws/compute-optimizer-automation/model/ResourceType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
24namespace ComputeOptimizerAutomation {
46 template <
typename EventIdT = Aws::String>
48 m_eventIdHasBeenSet =
true;
49 m_eventId = std::forward<EventIdT>(value);
51 template <
typename EventIdT = Aws::String>
64 template <
typename EventDescriptionT = Aws::String>
66 m_eventDescriptionHasBeenSet =
true;
67 m_eventDescription = std::forward<EventDescriptionT>(value);
69 template <
typename EventDescriptionT = Aws::String>
83 m_eventTypeHasBeenSet =
true;
99 m_eventStatusHasBeenSet =
true;
100 m_eventStatus = value;
114 template <
typename EventStatusReasonT = Aws::String>
116 m_eventStatusReasonHasBeenSet =
true;
117 m_eventStatusReason = std::forward<EventStatusReasonT>(value);
119 template <
typename EventStatusReasonT = Aws::String>
133 template <
typename ResourceArnT = Aws::String>
135 m_resourceArnHasBeenSet =
true;
136 m_resourceArn = std::forward<ResourceArnT>(value);
138 template <
typename ResourceArnT = Aws::String>
151 template <
typename ResourceIdT = Aws::String>
153 m_resourceIdHasBeenSet =
true;
154 m_resourceId = std::forward<ResourceIdT>(value);
156 template <
typename ResourceIdT = Aws::String>
169 template <
typename RecommendedActionIdT = Aws::String>
171 m_recommendedActionIdHasBeenSet =
true;
172 m_recommendedActionId = std::forward<RecommendedActionIdT>(value);
174 template <
typename RecommendedActionIdT = Aws::String>
188 template <
typename AccountIdT = Aws::String>
190 m_accountIdHasBeenSet =
true;
191 m_accountId = std::forward<AccountIdT>(value);
193 template <
typename AccountIdT = Aws::String>
206 template <
typename RegionT = Aws::String>
208 m_regionHasBeenSet =
true;
209 m_region = std::forward<RegionT>(value);
211 template <
typename RegionT = Aws::String>
224 template <
typename RuleIdT = Aws::String>
226 m_ruleIdHasBeenSet =
true;
227 m_ruleId = std::forward<RuleIdT>(value);
229 template <
typename RuleIdT = Aws::String>
243 m_resourceTypeHasBeenSet =
true;
244 m_resourceType = value;
258 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
260 m_createdTimestampHasBeenSet =
true;
261 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
263 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
276 template <
typename CompletedTimestampT = Aws::Utils::DateTime>
278 m_completedTimestampHasBeenSet =
true;
279 m_completedTimestamp = std::forward<CompletedTimestampT>(value);
281 template <
typename CompletedTimestampT = Aws::Utils::DateTime>
295 template <
typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
297 m_estimatedMonthlySavingsHasBeenSet =
true;
298 m_estimatedMonthlySavings = std::forward<EstimatedMonthlySavingsT>(value);
300 template <
typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
335 EstimatedMonthlySavings m_estimatedMonthlySavings;
336 bool m_eventIdHasBeenSet =
false;
337 bool m_eventDescriptionHasBeenSet =
false;
338 bool m_eventTypeHasBeenSet =
false;
339 bool m_eventStatusHasBeenSet =
false;
340 bool m_eventStatusReasonHasBeenSet =
false;
341 bool m_resourceArnHasBeenSet =
false;
342 bool m_resourceIdHasBeenSet =
false;
343 bool m_recommendedActionIdHasBeenSet =
false;
344 bool m_accountIdHasBeenSet =
false;
345 bool m_regionHasBeenSet =
false;
346 bool m_ruleIdHasBeenSet =
false;
347 bool m_resourceTypeHasBeenSet =
false;
348 bool m_createdTimestampHasBeenSet =
false;
349 bool m_completedTimestampHasBeenSet =
false;
350 bool m_estimatedMonthlySavingsHasBeenSet =
false;
void SetResourceArn(ResourceArnT &&value)
bool CompletedTimestampHasBeenSet() const
AutomationEvent & WithCreatedTimestamp(CreatedTimestampT &&value)
void SetEventStatus(EventStatus value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
bool EventTypeHasBeenSet() const
bool RecommendedActionIdHasBeenSet() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEvent()=default
AutomationEvent & WithEventType(EventType value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
const Aws::Utils::DateTime & GetCompletedTimestamp() const
AutomationEvent & WithResourceId(ResourceIdT &&value)
bool RuleIdHasBeenSet() const
const Aws::String & GetResourceId() const
AutomationEvent & WithRecommendedActionId(RecommendedActionIdT &&value)
AutomationEvent & WithResourceType(ResourceType value)
const Aws::String & GetRecommendedActionId() const
AutomationEvent & WithRuleId(RuleIdT &&value)
bool EventStatusHasBeenSet() const
void SetAccountId(AccountIdT &&value)
void SetRuleId(RuleIdT &&value)
const Aws::String & GetEventId() const
void SetEventType(EventType value)
bool EstimatedMonthlySavingsHasBeenSet() const
AutomationEvent & WithRegion(RegionT &&value)
void SetEventStatusReason(EventStatusReasonT &&value)
bool EventIdHasBeenSet() const
void SetRegion(RegionT &&value)
void SetRecommendedActionId(RecommendedActionIdT &&value)
bool RegionHasBeenSet() const
ResourceType GetResourceType() const
void SetCompletedTimestamp(CompletedTimestampT &&value)
const Aws::String & GetAccountId() const
const Aws::String & GetRegion() const
AutomationEvent & WithEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
AutomationEvent & WithEventDescription(EventDescriptionT &&value)
AutomationEvent & WithEventStatusReason(EventStatusReasonT &&value)
bool EventDescriptionHasBeenSet() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventId(EventIdT &&value)
bool AccountIdHasBeenSet() const
AutomationEvent & WithEventId(EventIdT &&value)
const Aws::String & GetResourceArn() const
void SetResourceId(ResourceIdT &&value)
void SetEventDescription(EventDescriptionT &&value)
bool CreatedTimestampHasBeenSet() const
void SetResourceType(ResourceType value)
bool ResourceIdHasBeenSet() const
void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
const Aws::String & GetRuleId() const
bool EventStatusReasonHasBeenSet() const
AutomationEvent & WithEventStatus(EventStatus value)
const EstimatedMonthlySavings & GetEstimatedMonthlySavings() const
const Aws::String & GetEventStatusReason() const
bool ResourceTypeHasBeenSet() const
AutomationEvent & WithResourceArn(ResourceArnT &&value)
AutomationEvent & WithAccountId(AccountIdT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
AutomationEvent & WithCompletedTimestamp(CompletedTimestampT &&value)
EventType GetEventType() const
bool ResourceArnHasBeenSet() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEvent(Aws::Utils::Json::JsonView jsonValue)
EventStatus GetEventStatus() const
const Aws::String & GetEventDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue