AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskExecutionResultDetail.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/model/PhaseStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATASYNC_API TaskExecutionResultDetail();
39 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
52 inline long long GetPrepareDuration() const{ return m_prepareDuration; }
53 inline bool PrepareDurationHasBeenSet() const { return m_prepareDurationHasBeenSet; }
54 inline void SetPrepareDuration(long long value) { m_prepareDurationHasBeenSet = true; m_prepareDuration = value; }
55 inline TaskExecutionResultDetail& WithPrepareDuration(long long value) { SetPrepareDuration(value); return *this;}
57
59
65 inline const PhaseStatus& GetPrepareStatus() const{ return m_prepareStatus; }
66 inline bool PrepareStatusHasBeenSet() const { return m_prepareStatusHasBeenSet; }
67 inline void SetPrepareStatus(const PhaseStatus& value) { m_prepareStatusHasBeenSet = true; m_prepareStatus = value; }
68 inline void SetPrepareStatus(PhaseStatus&& value) { m_prepareStatusHasBeenSet = true; m_prepareStatus = std::move(value); }
69 inline TaskExecutionResultDetail& WithPrepareStatus(const PhaseStatus& value) { SetPrepareStatus(value); return *this;}
70 inline TaskExecutionResultDetail& WithPrepareStatus(PhaseStatus&& value) { SetPrepareStatus(std::move(value)); return *this;}
72
74
77 inline long long GetTotalDuration() const{ return m_totalDuration; }
78 inline bool TotalDurationHasBeenSet() const { return m_totalDurationHasBeenSet; }
79 inline void SetTotalDuration(long long value) { m_totalDurationHasBeenSet = true; m_totalDuration = value; }
80 inline TaskExecutionResultDetail& WithTotalDuration(long long value) { SetTotalDuration(value); return *this;}
82
84
93 inline long long GetTransferDuration() const{ return m_transferDuration; }
94 inline bool TransferDurationHasBeenSet() const { return m_transferDurationHasBeenSet; }
95 inline void SetTransferDuration(long long value) { m_transferDurationHasBeenSet = true; m_transferDuration = value; }
96 inline TaskExecutionResultDetail& WithTransferDuration(long long value) { SetTransferDuration(value); return *this;}
98
100
106 inline const PhaseStatus& GetTransferStatus() const{ return m_transferStatus; }
107 inline bool TransferStatusHasBeenSet() const { return m_transferStatusHasBeenSet; }
108 inline void SetTransferStatus(const PhaseStatus& value) { m_transferStatusHasBeenSet = true; m_transferStatus = value; }
109 inline void SetTransferStatus(PhaseStatus&& value) { m_transferStatusHasBeenSet = true; m_transferStatus = std::move(value); }
110 inline TaskExecutionResultDetail& WithTransferStatus(const PhaseStatus& value) { SetTransferStatus(value); return *this;}
111 inline TaskExecutionResultDetail& WithTransferStatus(PhaseStatus&& value) { SetTransferStatus(std::move(value)); return *this;}
113
115
124 inline long long GetVerifyDuration() const{ return m_verifyDuration; }
125 inline bool VerifyDurationHasBeenSet() const { return m_verifyDurationHasBeenSet; }
126 inline void SetVerifyDuration(long long value) { m_verifyDurationHasBeenSet = true; m_verifyDuration = value; }
127 inline TaskExecutionResultDetail& WithVerifyDuration(long long value) { SetVerifyDuration(value); return *this;}
129
131
137 inline const PhaseStatus& GetVerifyStatus() const{ return m_verifyStatus; }
138 inline bool VerifyStatusHasBeenSet() const { return m_verifyStatusHasBeenSet; }
139 inline void SetVerifyStatus(const PhaseStatus& value) { m_verifyStatusHasBeenSet = true; m_verifyStatus = value; }
140 inline void SetVerifyStatus(PhaseStatus&& value) { m_verifyStatusHasBeenSet = true; m_verifyStatus = std::move(value); }
141 inline TaskExecutionResultDetail& WithVerifyStatus(const PhaseStatus& value) { SetVerifyStatus(value); return *this;}
142 inline TaskExecutionResultDetail& WithVerifyStatus(PhaseStatus&& value) { SetVerifyStatus(std::move(value)); return *this;}
144
146
152 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
153 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
154 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
155 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
156 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
157 inline TaskExecutionResultDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
158 inline TaskExecutionResultDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
159 inline TaskExecutionResultDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
161
163
169 inline const Aws::String& GetErrorDetail() const{ return m_errorDetail; }
170 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
171 inline void SetErrorDetail(const Aws::String& value) { m_errorDetailHasBeenSet = true; m_errorDetail = value; }
172 inline void SetErrorDetail(Aws::String&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::move(value); }
173 inline void SetErrorDetail(const char* value) { m_errorDetailHasBeenSet = true; m_errorDetail.assign(value); }
174 inline TaskExecutionResultDetail& WithErrorDetail(const Aws::String& value) { SetErrorDetail(value); return *this;}
175 inline TaskExecutionResultDetail& WithErrorDetail(Aws::String&& value) { SetErrorDetail(std::move(value)); return *this;}
176 inline TaskExecutionResultDetail& WithErrorDetail(const char* value) { SetErrorDetail(value); return *this;}
178 private:
179
180 long long m_prepareDuration;
181 bool m_prepareDurationHasBeenSet = false;
182
183 PhaseStatus m_prepareStatus;
184 bool m_prepareStatusHasBeenSet = false;
185
186 long long m_totalDuration;
187 bool m_totalDurationHasBeenSet = false;
188
189 long long m_transferDuration;
190 bool m_transferDurationHasBeenSet = false;
191
192 PhaseStatus m_transferStatus;
193 bool m_transferStatusHasBeenSet = false;
194
195 long long m_verifyDuration;
196 bool m_verifyDurationHasBeenSet = false;
197
198 PhaseStatus m_verifyStatus;
199 bool m_verifyStatusHasBeenSet = false;
200
201 Aws::String m_errorCode;
202 bool m_errorCodeHasBeenSet = false;
203
204 Aws::String m_errorDetail;
205 bool m_errorDetailHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace DataSync
210} // namespace Aws
AWS_DATASYNC_API TaskExecutionResultDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskExecutionResultDetail & WithErrorCode(Aws::String &&value)
TaskExecutionResultDetail & WithPrepareStatus(const PhaseStatus &value)
TaskExecutionResultDetail & WithVerifyStatus(PhaseStatus &&value)
TaskExecutionResultDetail & WithTransferStatus(PhaseStatus &&value)
TaskExecutionResultDetail & WithVerifyDuration(long long value)
TaskExecutionResultDetail & WithPrepareDuration(long long value)
TaskExecutionResultDetail & WithTotalDuration(long long value)
TaskExecutionResultDetail & WithErrorDetail(const char *value)
TaskExecutionResultDetail & WithPrepareStatus(PhaseStatus &&value)
AWS_DATASYNC_API TaskExecutionResultDetail(Aws::Utils::Json::JsonView jsonValue)
TaskExecutionResultDetail & WithErrorDetail(Aws::String &&value)
TaskExecutionResultDetail & WithErrorDetail(const Aws::String &value)
TaskExecutionResultDetail & WithErrorCode(const Aws::String &value)
TaskExecutionResultDetail & WithVerifyStatus(const PhaseStatus &value)
TaskExecutionResultDetail & WithErrorCode(const char *value)
TaskExecutionResultDetail & WithTransferDuration(long long value)
TaskExecutionResultDetail & WithTransferStatus(const PhaseStatus &value)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue