AWS SDK for C++  1.9.102
AWS SDK for C++
TaskExecutionResultDetail.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DataSync
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
47  inline long long GetPrepareDuration() const{ return m_prepareDuration; }
48 
53  inline bool PrepareDurationHasBeenSet() const { return m_prepareDurationHasBeenSet; }
54 
59  inline void SetPrepareDuration(long long value) { m_prepareDurationHasBeenSet = true; m_prepareDuration = value; }
60 
65  inline TaskExecutionResultDetail& WithPrepareDuration(long long value) { SetPrepareDuration(value); return *this;}
66 
67 
71  inline const PhaseStatus& GetPrepareStatus() const{ return m_prepareStatus; }
72 
76  inline bool PrepareStatusHasBeenSet() const { return m_prepareStatusHasBeenSet; }
77 
81  inline void SetPrepareStatus(const PhaseStatus& value) { m_prepareStatusHasBeenSet = true; m_prepareStatus = value; }
82 
86  inline void SetPrepareStatus(PhaseStatus&& value) { m_prepareStatusHasBeenSet = true; m_prepareStatus = std::move(value); }
87 
91  inline TaskExecutionResultDetail& WithPrepareStatus(const PhaseStatus& value) { SetPrepareStatus(value); return *this;}
92 
96  inline TaskExecutionResultDetail& WithPrepareStatus(PhaseStatus&& value) { SetPrepareStatus(std::move(value)); return *this;}
97 
98 
103  inline long long GetTotalDuration() const{ return m_totalDuration; }
104 
109  inline bool TotalDurationHasBeenSet() const { return m_totalDurationHasBeenSet; }
110 
115  inline void SetTotalDuration(long long value) { m_totalDurationHasBeenSet = true; m_totalDuration = value; }
116 
121  inline TaskExecutionResultDetail& WithTotalDuration(long long value) { SetTotalDuration(value); return *this;}
122 
123 
128  inline long long GetTransferDuration() const{ return m_transferDuration; }
129 
134  inline bool TransferDurationHasBeenSet() const { return m_transferDurationHasBeenSet; }
135 
140  inline void SetTransferDuration(long long value) { m_transferDurationHasBeenSet = true; m_transferDuration = value; }
141 
146  inline TaskExecutionResultDetail& WithTransferDuration(long long value) { SetTransferDuration(value); return *this;}
147 
148 
152  inline const PhaseStatus& GetTransferStatus() const{ return m_transferStatus; }
153 
157  inline bool TransferStatusHasBeenSet() const { return m_transferStatusHasBeenSet; }
158 
162  inline void SetTransferStatus(const PhaseStatus& value) { m_transferStatusHasBeenSet = true; m_transferStatus = value; }
163 
167  inline void SetTransferStatus(PhaseStatus&& value) { m_transferStatusHasBeenSet = true; m_transferStatus = std::move(value); }
168 
172  inline TaskExecutionResultDetail& WithTransferStatus(const PhaseStatus& value) { SetTransferStatus(value); return *this;}
173 
177  inline TaskExecutionResultDetail& WithTransferStatus(PhaseStatus&& value) { SetTransferStatus(std::move(value)); return *this;}
178 
179 
184  inline long long GetVerifyDuration() const{ return m_verifyDuration; }
185 
190  inline bool VerifyDurationHasBeenSet() const { return m_verifyDurationHasBeenSet; }
191 
196  inline void SetVerifyDuration(long long value) { m_verifyDurationHasBeenSet = true; m_verifyDuration = value; }
197 
202  inline TaskExecutionResultDetail& WithVerifyDuration(long long value) { SetVerifyDuration(value); return *this;}
203 
204 
208  inline const PhaseStatus& GetVerifyStatus() const{ return m_verifyStatus; }
209 
213  inline bool VerifyStatusHasBeenSet() const { return m_verifyStatusHasBeenSet; }
214 
218  inline void SetVerifyStatus(const PhaseStatus& value) { m_verifyStatusHasBeenSet = true; m_verifyStatus = value; }
219 
223  inline void SetVerifyStatus(PhaseStatus&& value) { m_verifyStatusHasBeenSet = true; m_verifyStatus = std::move(value); }
224 
228  inline TaskExecutionResultDetail& WithVerifyStatus(const PhaseStatus& value) { SetVerifyStatus(value); return *this;}
229 
233  inline TaskExecutionResultDetail& WithVerifyStatus(PhaseStatus&& value) { SetVerifyStatus(std::move(value)); return *this;}
234 
235 
240  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
241 
246  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
247 
252  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
253 
258  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
259 
264  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
265 
270  inline TaskExecutionResultDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
271 
276  inline TaskExecutionResultDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
277 
282  inline TaskExecutionResultDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
283 
284 
289  inline const Aws::String& GetErrorDetail() const{ return m_errorDetail; }
290 
295  inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
296 
301  inline void SetErrorDetail(const Aws::String& value) { m_errorDetailHasBeenSet = true; m_errorDetail = value; }
302 
307  inline void SetErrorDetail(Aws::String&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::move(value); }
308 
313  inline void SetErrorDetail(const char* value) { m_errorDetailHasBeenSet = true; m_errorDetail.assign(value); }
314 
319  inline TaskExecutionResultDetail& WithErrorDetail(const Aws::String& value) { SetErrorDetail(value); return *this;}
320 
325  inline TaskExecutionResultDetail& WithErrorDetail(Aws::String&& value) { SetErrorDetail(std::move(value)); return *this;}
326 
331  inline TaskExecutionResultDetail& WithErrorDetail(const char* value) { SetErrorDetail(value); return *this;}
332 
333  private:
334 
335  long long m_prepareDuration;
336  bool m_prepareDurationHasBeenSet;
337 
338  PhaseStatus m_prepareStatus;
339  bool m_prepareStatusHasBeenSet;
340 
341  long long m_totalDuration;
342  bool m_totalDurationHasBeenSet;
343 
344  long long m_transferDuration;
345  bool m_transferDurationHasBeenSet;
346 
347  PhaseStatus m_transferStatus;
348  bool m_transferStatusHasBeenSet;
349 
350  long long m_verifyDuration;
351  bool m_verifyDurationHasBeenSet;
352 
353  PhaseStatus m_verifyStatus;
354  bool m_verifyStatusHasBeenSet;
355 
356  Aws::String m_errorCode;
357  bool m_errorCodeHasBeenSet;
358 
359  Aws::String m_errorDetail;
360  bool m_errorDetailHasBeenSet;
361  };
362 
363 } // namespace Model
364 } // namespace DataSync
365 } // namespace Aws
Aws::DataSync::Model::TaskExecutionResultDetail::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: TaskExecutionResultDetail.h:258
Aws::DataSync::Model::TaskExecutionResultDetail::GetTotalDuration
long long GetTotalDuration() const
Definition: TaskExecutionResultDetail.h:103
Aws::DataSync::Model::TaskExecutionResultDetail::WithTransferDuration
TaskExecutionResultDetail & WithTransferDuration(long long value)
Definition: TaskExecutionResultDetail.h:146
Aws::DataSync::Model::TaskExecutionResultDetail::WithErrorDetail
TaskExecutionResultDetail & WithErrorDetail(const char *value)
Definition: TaskExecutionResultDetail.h:331
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::TaskExecutionResultDetail::WithVerifyStatus
TaskExecutionResultDetail & WithVerifyStatus(const PhaseStatus &value)
Definition: TaskExecutionResultDetail.h:228
Aws::DataSync::Model::TaskExecutionResultDetail::WithPrepareStatus
TaskExecutionResultDetail & WithPrepareStatus(const PhaseStatus &value)
Definition: TaskExecutionResultDetail.h:91
Aws::DataSync::Model::TaskExecutionResultDetail::WithTransferStatus
TaskExecutionResultDetail & WithTransferStatus(const PhaseStatus &value)
Definition: TaskExecutionResultDetail.h:172
Aws::DataSync::Model::TaskExecutionResultDetail::GetVerifyDuration
long long GetVerifyDuration() const
Definition: TaskExecutionResultDetail.h:184
Aws::DataSync::Model::TaskExecutionResultDetail::WithErrorCode
TaskExecutionResultDetail & WithErrorCode(const Aws::String &value)
Definition: TaskExecutionResultDetail.h:270
Aws::DataSync::Model::TaskExecutionResultDetail::ErrorDetailHasBeenSet
bool ErrorDetailHasBeenSet() const
Definition: TaskExecutionResultDetail.h:295
Aws::DataSync::Model::TaskExecutionResultDetail::PrepareDurationHasBeenSet
bool PrepareDurationHasBeenSet() const
Definition: TaskExecutionResultDetail.h:53
Aws::DataSync::Model::TaskExecutionResultDetail::GetTransferStatus
const PhaseStatus & GetTransferStatus() const
Definition: TaskExecutionResultDetail.h:152
Aws::DataSync::Model::TaskExecutionResultDetail::WithErrorCode
TaskExecutionResultDetail & WithErrorCode(const char *value)
Definition: TaskExecutionResultDetail.h:282
Aws::DataSync::Model::TaskExecutionResultDetail::SetErrorCode
void SetErrorCode(const char *value)
Definition: TaskExecutionResultDetail.h:264
Aws::DataSync::Model::TaskExecutionResultDetail::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: TaskExecutionResultDetail.h:252
Aws::DataSync::Model::TaskExecutionResultDetail::WithTransferStatus
TaskExecutionResultDetail & WithTransferStatus(PhaseStatus &&value)
Definition: TaskExecutionResultDetail.h:177
Aws::DataSync::Model::TaskExecutionResultDetail::WithPrepareDuration
TaskExecutionResultDetail & WithPrepareDuration(long long value)
Definition: TaskExecutionResultDetail.h:65
Aws::DataSync::Model::TaskExecutionResultDetail::TotalDurationHasBeenSet
bool TotalDurationHasBeenSet() const
Definition: TaskExecutionResultDetail.h:109
Aws::DataSync::Model::TaskExecutionResultDetail::SetTransferDuration
void SetTransferDuration(long long value)
Definition: TaskExecutionResultDetail.h:140
Aws::DataSync::Model::TaskExecutionResultDetail::GetTransferDuration
long long GetTransferDuration() const
Definition: TaskExecutionResultDetail.h:128
Aws::DataSync::Model::TaskExecutionResultDetail::SetErrorDetail
void SetErrorDetail(const Aws::String &value)
Definition: TaskExecutionResultDetail.h:301
Aws::DataSync::Model::TaskExecutionResultDetail::WithVerifyStatus
TaskExecutionResultDetail & WithVerifyStatus(PhaseStatus &&value)
Definition: TaskExecutionResultDetail.h:233
Aws::DataSync::Model::TaskExecutionResultDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DataSync::Model::TaskExecutionResultDetail::SetTransferStatus
void SetTransferStatus(PhaseStatus &&value)
Definition: TaskExecutionResultDetail.h:167
Aws::DataSync::Model::TaskExecutionResultDetail::VerifyStatusHasBeenSet
bool VerifyStatusHasBeenSet() const
Definition: TaskExecutionResultDetail.h:213
PhaseStatus.h
Aws::DataSync::Model::TaskExecutionResultDetail::GetVerifyStatus
const PhaseStatus & GetVerifyStatus() const
Definition: TaskExecutionResultDetail.h:208
Aws::DataSync::Model::TaskExecutionResultDetail::PrepareStatusHasBeenSet
bool PrepareStatusHasBeenSet() const
Definition: TaskExecutionResultDetail.h:76
Aws::DataSync::Model::TaskExecutionResultDetail::SetErrorDetail
void SetErrorDetail(const char *value)
Definition: TaskExecutionResultDetail.h:313
Aws::DataSync::Model::TaskExecutionResultDetail::SetVerifyStatus
void SetVerifyStatus(const PhaseStatus &value)
Definition: TaskExecutionResultDetail.h:218
Aws::DataSync::Model::TaskExecutionResultDetail::TaskExecutionResultDetail
TaskExecutionResultDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::DataSync::Model::TaskExecutionResultDetail::SetPrepareStatus
void SetPrepareStatus(const PhaseStatus &value)
Definition: TaskExecutionResultDetail.h:81
Aws::DataSync::Model::TaskExecutionResultDetail::SetTransferStatus
void SetTransferStatus(const PhaseStatus &value)
Definition: TaskExecutionResultDetail.h:162
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::DataSync::Model::TaskExecutionResultDetail::TransferStatusHasBeenSet
bool TransferStatusHasBeenSet() const
Definition: TaskExecutionResultDetail.h:157
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
DataSync_EXPORTS.h
Aws::DataSync::Model::TaskExecutionResultDetail::VerifyDurationHasBeenSet
bool VerifyDurationHasBeenSet() const
Definition: TaskExecutionResultDetail.h:190
Aws::DataSync::Model::TaskExecutionResultDetail::SetVerifyStatus
void SetVerifyStatus(PhaseStatus &&value)
Definition: TaskExecutionResultDetail.h:223
Aws::DataSync::Model::TaskExecutionResultDetail::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: TaskExecutionResultDetail.h:246
Aws::DataSync::Model::TaskExecutionResultDetail::SetPrepareStatus
void SetPrepareStatus(PhaseStatus &&value)
Definition: TaskExecutionResultDetail.h:86
Aws::DataSync::Model::TaskExecutionResultDetail::SetTotalDuration
void SetTotalDuration(long long value)
Definition: TaskExecutionResultDetail.h:115
Aws::DataSync::Model::TaskExecutionResultDetail::WithErrorDetail
TaskExecutionResultDetail & WithErrorDetail(Aws::String &&value)
Definition: TaskExecutionResultDetail.h:325
Aws::DataSync::Model::PhaseStatus
PhaseStatus
Definition: PhaseStatus.h:17
Aws::DataSync::Model::TaskExecutionResultDetail
Definition: TaskExecutionResultDetail.h:35
Aws::DataSync::Model::TaskExecutionResultDetail::GetPrepareStatus
const PhaseStatus & GetPrepareStatus() const
Definition: TaskExecutionResultDetail.h:71
Aws::DataSync::Model::TaskExecutionResultDetail::WithTotalDuration
TaskExecutionResultDetail & WithTotalDuration(long long value)
Definition: TaskExecutionResultDetail.h:121
Aws::DataSync::Model::TaskExecutionResultDetail::WithVerifyDuration
TaskExecutionResultDetail & WithVerifyDuration(long long value)
Definition: TaskExecutionResultDetail.h:202
Aws::DataSync::Model::TaskExecutionResultDetail::TransferDurationHasBeenSet
bool TransferDurationHasBeenSet() const
Definition: TaskExecutionResultDetail.h:134
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::TaskExecutionResultDetail::GetPrepareDuration
long long GetPrepareDuration() const
Definition: TaskExecutionResultDetail.h:47
Aws::DataSync::Model::TaskExecutionResultDetail::WithErrorDetail
TaskExecutionResultDetail & WithErrorDetail(const Aws::String &value)
Definition: TaskExecutionResultDetail.h:319
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::TaskExecutionResultDetail::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: TaskExecutionResultDetail.h:240
Aws::DataSync::Model::TaskExecutionResultDetail::SetPrepareDuration
void SetPrepareDuration(long long value)
Definition: TaskExecutionResultDetail.h:59
Aws::DataSync::Model::TaskExecutionResultDetail::WithErrorCode
TaskExecutionResultDetail & WithErrorCode(Aws::String &&value)
Definition: TaskExecutionResultDetail.h:276
Aws::DataSync::Model::TaskExecutionResultDetail::operator=
TaskExecutionResultDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DataSync::Model::TaskExecutionResultDetail::WithPrepareStatus
TaskExecutionResultDetail & WithPrepareStatus(PhaseStatus &&value)
Definition: TaskExecutionResultDetail.h:96
Aws::DataSync::Model::TaskExecutionResultDetail::GetErrorDetail
const Aws::String & GetErrorDetail() const
Definition: TaskExecutionResultDetail.h:289
Aws::DataSync::Model::TaskExecutionResultDetail::SetErrorDetail
void SetErrorDetail(Aws::String &&value)
Definition: TaskExecutionResultDetail.h:307
Aws::DataSync::Model::TaskExecutionResultDetail::TaskExecutionResultDetail
TaskExecutionResultDetail()
Aws::DataSync::Model::TaskExecutionResultDetail::SetVerifyDuration
void SetVerifyDuration(long long value)
Definition: TaskExecutionResultDetail.h:196