AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
RecoveryPlanExecutionStep.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/Drs_EXPORTS.h>
9#include <aws/drs/model/ErrorDetail.h>
10#include <aws/drs/model/RecoveryPlanExecutionStepConfiguration.h>
11#include <aws/drs/model/RecoveryPlanExecutionStepStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace drs {
23namespace Model {
24
31 public:
32 AWS_DRS_API RecoveryPlanExecutionStep() = default;
36
38
41 inline const Aws::String& GetRecoveryPlanExecutionStepArn() const { return m_recoveryPlanExecutionStepArn; }
42 inline bool RecoveryPlanExecutionStepArnHasBeenSet() const { return m_recoveryPlanExecutionStepArnHasBeenSet; }
43 template <typename RecoveryPlanExecutionStepArnT = Aws::String>
44 void SetRecoveryPlanExecutionStepArn(RecoveryPlanExecutionStepArnT&& value) {
45 m_recoveryPlanExecutionStepArnHasBeenSet = true;
46 m_recoveryPlanExecutionStepArn = std::forward<RecoveryPlanExecutionStepArnT>(value);
47 }
48 template <typename RecoveryPlanExecutionStepArnT = Aws::String>
49 RecoveryPlanExecutionStep& WithRecoveryPlanExecutionStepArn(RecoveryPlanExecutionStepArnT&& value) {
50 SetRecoveryPlanExecutionStepArn(std::forward<RecoveryPlanExecutionStepArnT>(value));
51 return *this;
52 }
54
56
57 inline int GetStepIndex() const { return m_stepIndex; }
58 inline bool StepIndexHasBeenSet() const { return m_stepIndexHasBeenSet; }
59 inline void SetStepIndex(int value) {
60 m_stepIndexHasBeenSet = true;
61 m_stepIndex = value;
62 }
64 SetStepIndex(value);
65 return *this;
66 }
68
70
73 inline RecoveryPlanExecutionStepStatus GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 m_statusHasBeenSet = true;
77 m_status = value;
78 }
80 SetStatus(value);
81 return *this;
82 }
84
86
87 inline const Aws::String& GetStepName() const { return m_stepName; }
88 inline bool StepNameHasBeenSet() const { return m_stepNameHasBeenSet; }
89 template <typename StepNameT = Aws::String>
90 void SetStepName(StepNameT&& value) {
91 m_stepNameHasBeenSet = true;
92 m_stepName = std::forward<StepNameT>(value);
93 }
94 template <typename StepNameT = Aws::String>
96 SetStepName(std::forward<StepNameT>(value));
97 return *this;
98 }
100
102
103 inline const RecoveryPlanExecutionStepConfiguration& GetConfiguration() const { return m_configuration; }
104 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
105 template <typename ConfigurationT = RecoveryPlanExecutionStepConfiguration>
106 void SetConfiguration(ConfigurationT&& value) {
107 m_configurationHasBeenSet = true;
108 m_configuration = std::forward<ConfigurationT>(value);
109 }
110 template <typename ConfigurationT = RecoveryPlanExecutionStepConfiguration>
112 SetConfiguration(std::forward<ConfigurationT>(value));
113 return *this;
114 }
116
118
121 inline const ErrorDetail& GetErrorDetail() const { return m_errorDetail; }
122 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
123 template <typename ErrorDetailT = ErrorDetail>
124 void SetErrorDetail(ErrorDetailT&& value) {
125 m_errorDetailHasBeenSet = true;
126 m_errorDetail = std::forward<ErrorDetailT>(value);
127 }
128 template <typename ErrorDetailT = ErrorDetail>
130 SetErrorDetail(std::forward<ErrorDetailT>(value));
131 return *this;
132 }
134
136
139 inline int GetAttempt() const { return m_attempt; }
140 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
141 inline void SetAttempt(int value) {
142 m_attemptHasBeenSet = true;
143 m_attempt = value;
144 }
146 SetAttempt(value);
147 return *this;
148 }
150
152
155 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
156 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
157 template <typename CreatedAtT = Aws::String>
158 void SetCreatedAt(CreatedAtT&& value) {
159 m_createdAtHasBeenSet = true;
160 m_createdAt = std::forward<CreatedAtT>(value);
161 }
162 template <typename CreatedAtT = Aws::String>
164 SetCreatedAt(std::forward<CreatedAtT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
174 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
175 template <typename UpdatedAtT = Aws::String>
176 void SetUpdatedAt(UpdatedAtT&& value) {
177 m_updatedAtHasBeenSet = true;
178 m_updatedAt = std::forward<UpdatedAtT>(value);
179 }
180 template <typename UpdatedAtT = Aws::String>
182 SetUpdatedAt(std::forward<UpdatedAtT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_recoveryPlanExecutionStepArn;
188
189 int m_stepIndex{0};
190
192
193 Aws::String m_stepName;
194
195 RecoveryPlanExecutionStepConfiguration m_configuration;
196
197 ErrorDetail m_errorDetail;
198
199 int m_attempt{0};
200
201 Aws::String m_createdAt;
202
203 Aws::String m_updatedAt;
204 bool m_recoveryPlanExecutionStepArnHasBeenSet = false;
205 bool m_stepIndexHasBeenSet = false;
206 bool m_statusHasBeenSet = false;
207 bool m_stepNameHasBeenSet = false;
208 bool m_configurationHasBeenSet = false;
209 bool m_errorDetailHasBeenSet = false;
210 bool m_attemptHasBeenSet = false;
211 bool m_createdAtHasBeenSet = false;
212 bool m_updatedAtHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace drs
217} // namespace Aws
RecoveryPlanExecutionStep & WithRecoveryPlanExecutionStepArn(RecoveryPlanExecutionStepArnT &&value)
RecoveryPlanExecutionStep & WithStatus(RecoveryPlanExecutionStepStatus value)
RecoveryPlanExecutionStep & WithStepIndex(int value)
AWS_DRS_API RecoveryPlanExecutionStep(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API RecoveryPlanExecutionStep & operator=(Aws::Utils::Json::JsonView jsonValue)
RecoveryPlanExecutionStep & WithUpdatedAt(UpdatedAtT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
RecoveryPlanExecutionStepStatus GetStatus() const
void SetRecoveryPlanExecutionStepArn(RecoveryPlanExecutionStepArnT &&value)
RecoveryPlanExecutionStep & WithCreatedAt(CreatedAtT &&value)
RecoveryPlanExecutionStep & WithStepName(StepNameT &&value)
const RecoveryPlanExecutionStepConfiguration & GetConfiguration() const
void SetStatus(RecoveryPlanExecutionStepStatus value)
RecoveryPlanExecutionStep & WithAttempt(int value)
RecoveryPlanExecutionStep & WithErrorDetail(ErrorDetailT &&value)
const Aws::String & GetRecoveryPlanExecutionStepArn() const
AWS_DRS_API RecoveryPlanExecutionStep()=default
RecoveryPlanExecutionStep & WithConfiguration(ConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue