AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
AutomationEventStep.h
1
6#pragma once
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/StepStatus.h>
10#include <aws/compute-optimizer-automation/model/StepType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ComputeOptimizerAutomation {
24namespace Model {
25
33 public:
34 AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEventStep() = default;
35 AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEventStep(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEventStep& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetEventId() const { return m_eventId; }
44 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
45 template <typename EventIdT = Aws::String>
46 void SetEventId(EventIdT&& value) {
47 m_eventIdHasBeenSet = true;
48 m_eventId = std::forward<EventIdT>(value);
49 }
50 template <typename EventIdT = Aws::String>
51 AutomationEventStep& WithEventId(EventIdT&& value) {
52 SetEventId(std::forward<EventIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetStepId() const { return m_stepId; }
62 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
63 template <typename StepIdT = Aws::String>
64 void SetStepId(StepIdT&& value) {
65 m_stepIdHasBeenSet = true;
66 m_stepId = std::forward<StepIdT>(value);
67 }
68 template <typename StepIdT = Aws::String>
69 AutomationEventStep& WithStepId(StepIdT&& value) {
70 SetStepId(std::forward<StepIdT>(value));
71 return *this;
72 }
74
76
79 inline StepType GetStepType() const { return m_stepType; }
80 inline bool StepTypeHasBeenSet() const { return m_stepTypeHasBeenSet; }
81 inline void SetStepType(StepType value) {
82 m_stepTypeHasBeenSet = true;
83 m_stepType = value;
84 }
86 SetStepType(value);
87 return *this;
88 }
90
92
95 inline StepStatus GetStepStatus() const { return m_stepStatus; }
96 inline bool StepStatusHasBeenSet() const { return m_stepStatusHasBeenSet; }
97 inline void SetStepStatus(StepStatus value) {
98 m_stepStatusHasBeenSet = true;
99 m_stepStatus = value;
100 }
102 SetStepStatus(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetResourceId() const { return m_resourceId; }
112 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
113 template <typename ResourceIdT = Aws::String>
114 void SetResourceId(ResourceIdT&& value) {
115 m_resourceIdHasBeenSet = true;
116 m_resourceId = std::forward<ResourceIdT>(value);
117 }
118 template <typename ResourceIdT = Aws::String>
119 AutomationEventStep& WithResourceId(ResourceIdT&& value) {
120 SetResourceId(std::forward<ResourceIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
130 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
131 template <typename StartTimestampT = Aws::Utils::DateTime>
132 void SetStartTimestamp(StartTimestampT&& value) {
133 m_startTimestampHasBeenSet = true;
134 m_startTimestamp = std::forward<StartTimestampT>(value);
135 }
136 template <typename StartTimestampT = Aws::Utils::DateTime>
137 AutomationEventStep& WithStartTimestamp(StartTimestampT&& value) {
138 SetStartTimestamp(std::forward<StartTimestampT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const { return m_completedTimestamp; }
148 inline bool CompletedTimestampHasBeenSet() const { return m_completedTimestampHasBeenSet; }
149 template <typename CompletedTimestampT = Aws::Utils::DateTime>
150 void SetCompletedTimestamp(CompletedTimestampT&& value) {
151 m_completedTimestampHasBeenSet = true;
152 m_completedTimestamp = std::forward<CompletedTimestampT>(value);
153 }
154 template <typename CompletedTimestampT = Aws::Utils::DateTime>
155 AutomationEventStep& WithCompletedTimestamp(CompletedTimestampT&& value) {
156 SetCompletedTimestamp(std::forward<CompletedTimestampT>(value));
157 return *this;
158 }
160
162
163 inline const EstimatedMonthlySavings& GetEstimatedMonthlySavings() const { return m_estimatedMonthlySavings; }
164 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
165 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
166 void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
167 m_estimatedMonthlySavingsHasBeenSet = true;
168 m_estimatedMonthlySavings = std::forward<EstimatedMonthlySavingsT>(value);
169 }
170 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
171 AutomationEventStep& WithEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
172 SetEstimatedMonthlySavings(std::forward<EstimatedMonthlySavingsT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_eventId;
178
179 Aws::String m_stepId;
180
181 StepType m_stepType{StepType::NOT_SET};
182
183 StepStatus m_stepStatus{StepStatus::NOT_SET};
184
185 Aws::String m_resourceId;
186
187 Aws::Utils::DateTime m_startTimestamp{};
188
189 Aws::Utils::DateTime m_completedTimestamp{};
190
191 EstimatedMonthlySavings m_estimatedMonthlySavings;
192 bool m_eventIdHasBeenSet = false;
193 bool m_stepIdHasBeenSet = false;
194 bool m_stepTypeHasBeenSet = false;
195 bool m_stepStatusHasBeenSet = false;
196 bool m_resourceIdHasBeenSet = false;
197 bool m_startTimestampHasBeenSet = false;
198 bool m_completedTimestampHasBeenSet = false;
199 bool m_estimatedMonthlySavingsHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace ComputeOptimizerAutomation
204} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEventStep(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEventStep & operator=(Aws::Utils::Json::JsonView jsonValue)
const EstimatedMonthlySavings & GetEstimatedMonthlySavings() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEventStep()=default
AutomationEventStep & WithCompletedTimestamp(CompletedTimestampT &&value)
void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
AutomationEventStep & WithEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
AutomationEventStep & WithStartTimestamp(StartTimestampT &&value)
AutomationEventStep & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue