AWS SDK for C++  1.8.126
AWS SDK for C++
DescribeTaskExecutionResult.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 template<typename RESULT_TYPE>
20 class AmazonWebServiceResult;
21 
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DataSync
30 {
31 namespace Model
32 {
39  {
40  public:
44 
45 
56  inline const Aws::String& GetTaskExecutionArn() const{ return m_taskExecutionArn; }
57 
68  inline void SetTaskExecutionArn(const Aws::String& value) { m_taskExecutionArn = value; }
69 
80  inline void SetTaskExecutionArn(Aws::String&& value) { m_taskExecutionArn = std::move(value); }
81 
92  inline void SetTaskExecutionArn(const char* value) { m_taskExecutionArn.assign(value); }
93 
104  inline DescribeTaskExecutionResult& WithTaskExecutionArn(const Aws::String& value) { SetTaskExecutionArn(value); return *this;}
105 
116  inline DescribeTaskExecutionResult& WithTaskExecutionArn(Aws::String&& value) { SetTaskExecutionArn(std::move(value)); return *this;}
117 
128  inline DescribeTaskExecutionResult& WithTaskExecutionArn(const char* value) { SetTaskExecutionArn(value); return *this;}
129 
130 
136  inline const TaskExecutionStatus& GetStatus() const{ return m_status; }
137 
143  inline void SetStatus(const TaskExecutionStatus& value) { m_status = value; }
144 
150  inline void SetStatus(TaskExecutionStatus&& value) { m_status = std::move(value); }
151 
157  inline DescribeTaskExecutionResult& WithStatus(const TaskExecutionStatus& value) { SetStatus(value); return *this;}
158 
164  inline DescribeTaskExecutionResult& WithStatus(TaskExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
165 
166 
167 
168  inline const Options& GetOptions() const{ return m_options; }
169 
170 
171  inline void SetOptions(const Options& value) { m_options = value; }
172 
173 
174  inline void SetOptions(Options&& value) { m_options = std::move(value); }
175 
176 
177  inline DescribeTaskExecutionResult& WithOptions(const Options& value) { SetOptions(value); return *this;}
178 
179 
180  inline DescribeTaskExecutionResult& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
181 
182 
189  inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
190 
197  inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludes = value; }
198 
205  inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludes = std::move(value); }
206 
213  inline DescribeTaskExecutionResult& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
214 
221  inline DescribeTaskExecutionResult& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
222 
229  inline DescribeTaskExecutionResult& AddExcludes(const FilterRule& value) { m_excludes.push_back(value); return *this; }
230 
237  inline DescribeTaskExecutionResult& AddExcludes(FilterRule&& value) { m_excludes.push_back(std::move(value)); return *this; }
238 
239 
246  inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
247 
254  inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includes = value; }
255 
262  inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includes = std::move(value); }
263 
270  inline DescribeTaskExecutionResult& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
271 
278  inline DescribeTaskExecutionResult& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
279 
286  inline DescribeTaskExecutionResult& AddIncludes(const FilterRule& value) { m_includes.push_back(value); return *this; }
287 
294  inline DescribeTaskExecutionResult& AddIncludes(FilterRule&& value) { m_includes.push_back(std::move(value)); return *this; }
295 
296 
300  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
301 
305  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
306 
310  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
311 
315  inline DescribeTaskExecutionResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
316 
320  inline DescribeTaskExecutionResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
321 
322 
330  inline long long GetEstimatedFilesToTransfer() const{ return m_estimatedFilesToTransfer; }
331 
339  inline void SetEstimatedFilesToTransfer(long long value) { m_estimatedFilesToTransfer = value; }
340 
348  inline DescribeTaskExecutionResult& WithEstimatedFilesToTransfer(long long value) { SetEstimatedFilesToTransfer(value); return *this;}
349 
350 
355  inline long long GetEstimatedBytesToTransfer() const{ return m_estimatedBytesToTransfer; }
356 
361  inline void SetEstimatedBytesToTransfer(long long value) { m_estimatedBytesToTransfer = value; }
362 
367  inline DescribeTaskExecutionResult& WithEstimatedBytesToTransfer(long long value) { SetEstimatedBytesToTransfer(value); return *this;}
368 
369 
380  inline long long GetFilesTransferred() const{ return m_filesTransferred; }
381 
392  inline void SetFilesTransferred(long long value) { m_filesTransferred = value; }
393 
404  inline DescribeTaskExecutionResult& WithFilesTransferred(long long value) { SetFilesTransferred(value); return *this;}
405 
406 
411  inline long long GetBytesWritten() const{ return m_bytesWritten; }
412 
417  inline void SetBytesWritten(long long value) { m_bytesWritten = value; }
418 
423  inline DescribeTaskExecutionResult& WithBytesWritten(long long value) { SetBytesWritten(value); return *this;}
424 
425 
429  inline long long GetBytesTransferred() const{ return m_bytesTransferred; }
430 
434  inline void SetBytesTransferred(long long value) { m_bytesTransferred = value; }
435 
439  inline DescribeTaskExecutionResult& WithBytesTransferred(long long value) { SetBytesTransferred(value); return *this;}
440 
441 
445  inline const TaskExecutionResultDetail& GetResult() const{ return m_result; }
446 
450  inline void SetResult(const TaskExecutionResultDetail& value) { m_result = value; }
451 
455  inline void SetResult(TaskExecutionResultDetail&& value) { m_result = std::move(value); }
456 
460  inline DescribeTaskExecutionResult& WithResult(const TaskExecutionResultDetail& value) { SetResult(value); return *this;}
461 
465  inline DescribeTaskExecutionResult& WithResult(TaskExecutionResultDetail&& value) { SetResult(std::move(value)); return *this;}
466 
467  private:
468 
469  Aws::String m_taskExecutionArn;
470 
471  TaskExecutionStatus m_status;
472 
473  Options m_options;
474 
475  Aws::Vector<FilterRule> m_excludes;
476 
477  Aws::Vector<FilterRule> m_includes;
478 
479  Aws::Utils::DateTime m_startTime;
480 
481  long long m_estimatedFilesToTransfer;
482 
483  long long m_estimatedBytesToTransfer;
484 
485  long long m_filesTransferred;
486 
487  long long m_bytesWritten;
488 
489  long long m_bytesTransferred;
490 
491  TaskExecutionResultDetail m_result;
492  };
493 
494 } // namespace Model
495 } // namespace DataSync
496 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DataSync::Model::DescribeTaskExecutionResult::WithOptions
DescribeTaskExecutionResult & WithOptions(Options &&value)
Definition: DescribeTaskExecutionResult.h:180
Aws::DataSync::Model::DescribeTaskExecutionResult::SetOptions
void SetOptions(const Options &value)
Definition: DescribeTaskExecutionResult.h:171
Aws::DataSync::Model::DescribeTaskExecutionResult::AddIncludes
DescribeTaskExecutionResult & AddIncludes(FilterRule &&value)
Definition: DescribeTaskExecutionResult.h:294
Aws::DataSync::Model::DescribeTaskExecutionResult::AddExcludes
DescribeTaskExecutionResult & AddExcludes(const FilterRule &value)
Definition: DescribeTaskExecutionResult.h:229
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::DataSync::Model::DescribeTaskExecutionResult::SetIncludes
void SetIncludes(Aws::Vector< FilterRule > &&value)
Definition: DescribeTaskExecutionResult.h:262
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::DescribeTaskExecutionResult::GetEstimatedFilesToTransfer
long long GetEstimatedFilesToTransfer() const
Definition: DescribeTaskExecutionResult.h:330
Aws::DataSync::Model::DescribeTaskExecutionResult::WithExcludes
DescribeTaskExecutionResult & WithExcludes(const Aws::Vector< FilterRule > &value)
Definition: DescribeTaskExecutionResult.h:213
Aws::DataSync::Model::DescribeTaskExecutionResult::GetExcludes
const Aws::Vector< FilterRule > & GetExcludes() const
Definition: DescribeTaskExecutionResult.h:189
Aws::DataSync::Model::DescribeTaskExecutionResult::WithIncludes
DescribeTaskExecutionResult & WithIncludes(const Aws::Vector< FilterRule > &value)
Definition: DescribeTaskExecutionResult.h:270
DateTime.h
Aws::DataSync::Model::DescribeTaskExecutionResult::WithEstimatedFilesToTransfer
DescribeTaskExecutionResult & WithEstimatedFilesToTransfer(long long value)
Definition: DescribeTaskExecutionResult.h:348
Aws::DataSync::Model::DescribeTaskExecutionResult::WithStartTime
DescribeTaskExecutionResult & WithStartTime(const Aws::Utils::DateTime &value)
Definition: DescribeTaskExecutionResult.h:315
Aws::DataSync::Model::DescribeTaskExecutionResult::SetTaskExecutionArn
void SetTaskExecutionArn(const Aws::String &value)
Definition: DescribeTaskExecutionResult.h:68
Aws::DataSync::Model::DescribeTaskExecutionResult::DescribeTaskExecutionResult
DescribeTaskExecutionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DataSync::Model::DescribeTaskExecutionResult::WithTaskExecutionArn
DescribeTaskExecutionResult & WithTaskExecutionArn(const char *value)
Definition: DescribeTaskExecutionResult.h:128
Aws::DataSync::Model::DescribeTaskExecutionResult::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: DescribeTaskExecutionResult.h:310
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
TaskExecutionStatus.h
Aws::DataSync::Model::DescribeTaskExecutionResult::AddExcludes
DescribeTaskExecutionResult & AddExcludes(FilterRule &&value)
Definition: DescribeTaskExecutionResult.h:237
Aws::DataSync::Model::DescribeTaskExecutionResult::SetIncludes
void SetIncludes(const Aws::Vector< FilterRule > &value)
Definition: DescribeTaskExecutionResult.h:254
Aws::DataSync::Model::Options
Definition: Options.h:51
AWSVector.h
Aws::DataSync::Model::DescribeTaskExecutionResult::GetOptions
const Options & GetOptions() const
Definition: DescribeTaskExecutionResult.h:168
Aws::DataSync::Model::DescribeTaskExecutionResult::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: DescribeTaskExecutionResult.h:300
Aws::DataSync::Model::DescribeTaskExecutionResult::GetFilesTransferred
long long GetFilesTransferred() const
Definition: DescribeTaskExecutionResult.h:380
Aws::DataSync::Model::DescribeTaskExecutionResult::WithResult
DescribeTaskExecutionResult & WithResult(const TaskExecutionResultDetail &value)
Definition: DescribeTaskExecutionResult.h:460
Aws::DataSync::Model::DescribeTaskExecutionResult::SetEstimatedBytesToTransfer
void SetEstimatedBytesToTransfer(long long value)
Definition: DescribeTaskExecutionResult.h:361
Aws::DataSync::Model::DescribeTaskExecutionResult::WithEstimatedBytesToTransfer
DescribeTaskExecutionResult & WithEstimatedBytesToTransfer(long long value)
Definition: DescribeTaskExecutionResult.h:367
Aws::DataSync::Model::DescribeTaskExecutionResult::WithTaskExecutionArn
DescribeTaskExecutionResult & WithTaskExecutionArn(Aws::String &&value)
Definition: DescribeTaskExecutionResult.h:116
Aws::DataSync::Model::DescribeTaskExecutionResult::SetStatus
void SetStatus(const TaskExecutionStatus &value)
Definition: DescribeTaskExecutionResult.h:143
Aws::DataSync::Model::DescribeTaskExecutionResult::GetEstimatedBytesToTransfer
long long GetEstimatedBytesToTransfer() const
Definition: DescribeTaskExecutionResult.h:355
AWSString.h
Aws::DataSync::Model::DescribeTaskExecutionResult::SetTaskExecutionArn
void SetTaskExecutionArn(Aws::String &&value)
Definition: DescribeTaskExecutionResult.h:80
Aws::DataSync::Model::DescribeTaskExecutionResult::WithIncludes
DescribeTaskExecutionResult & WithIncludes(Aws::Vector< FilterRule > &&value)
Definition: DescribeTaskExecutionResult.h:278
Aws::DataSync::Model::TaskExecutionStatus
TaskExecutionStatus
Definition: TaskExecutionStatus.h:17
DataSync_EXPORTS.h
Aws::DataSync::Model::DescribeTaskExecutionResult::WithStatus
DescribeTaskExecutionResult & WithStatus(TaskExecutionStatus &&value)
Definition: DescribeTaskExecutionResult.h:164
Aws::DataSync::Model::DescribeTaskExecutionResult::WithBytesTransferred
DescribeTaskExecutionResult & WithBytesTransferred(long long value)
Definition: DescribeTaskExecutionResult.h:439
Aws::DataSync::Model::DescribeTaskExecutionResult::SetResult
void SetResult(const TaskExecutionResultDetail &value)
Definition: DescribeTaskExecutionResult.h:450
Aws::DataSync::Model::FilterRule
Definition: FilterRule.h:34
FilterRule.h
Aws::DataSync::Model::DescribeTaskExecutionResult::SetResult
void SetResult(TaskExecutionResultDetail &&value)
Definition: DescribeTaskExecutionResult.h:455
Aws::DataSync::Model::DescribeTaskExecutionResult::SetEstimatedFilesToTransfer
void SetEstimatedFilesToTransfer(long long value)
Definition: DescribeTaskExecutionResult.h:339
Aws::DataSync::Model::TaskExecutionResultDetail
Definition: TaskExecutionResultDetail.h:35
Aws::DataSync::Model::DescribeTaskExecutionResult::DescribeTaskExecutionResult
DescribeTaskExecutionResult()
Aws::DataSync::Model::DescribeTaskExecutionResult::SetFilesTransferred
void SetFilesTransferred(long long value)
Definition: DescribeTaskExecutionResult.h:392
Aws::DataSync::Model::DescribeTaskExecutionResult::WithResult
DescribeTaskExecutionResult & WithResult(TaskExecutionResultDetail &&value)
Definition: DescribeTaskExecutionResult.h:465
Aws::DataSync::Model::DescribeTaskExecutionResult::WithOptions
DescribeTaskExecutionResult & WithOptions(const Options &value)
Definition: DescribeTaskExecutionResult.h:177
Aws::DataSync::Model::DescribeTaskExecutionResult::WithStatus
DescribeTaskExecutionResult & WithStatus(const TaskExecutionStatus &value)
Definition: DescribeTaskExecutionResult.h:157
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::DescribeTaskExecutionResult::GetBytesWritten
long long GetBytesWritten() const
Definition: DescribeTaskExecutionResult.h:411
Aws::DataSync::Model::DescribeTaskExecutionResult::WithTaskExecutionArn
DescribeTaskExecutionResult & WithTaskExecutionArn(const Aws::String &value)
Definition: DescribeTaskExecutionResult.h:104
Aws::DataSync::Model::DescribeTaskExecutionResult::GetBytesTransferred
long long GetBytesTransferred() const
Definition: DescribeTaskExecutionResult.h:429
Aws::DataSync::Model::DescribeTaskExecutionResult::SetStatus
void SetStatus(TaskExecutionStatus &&value)
Definition: DescribeTaskExecutionResult.h:150
Aws::DataSync::Model::DescribeTaskExecutionResult::SetExcludes
void SetExcludes(Aws::Vector< FilterRule > &&value)
Definition: DescribeTaskExecutionResult.h:205
Aws::DataSync::Model::DescribeTaskExecutionResult::SetOptions
void SetOptions(Options &&value)
Definition: DescribeTaskExecutionResult.h:174
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::DescribeTaskExecutionResult
Definition: DescribeTaskExecutionResult.h:39
Options.h
Aws::DataSync::Model::DescribeTaskExecutionResult::WithFilesTransferred
DescribeTaskExecutionResult & WithFilesTransferred(long long value)
Definition: DescribeTaskExecutionResult.h:404
Aws::DataSync::Model::DescribeTaskExecutionResult::GetStatus
const TaskExecutionStatus & GetStatus() const
Definition: DescribeTaskExecutionResult.h:136
Aws::DataSync::Model::DescribeTaskExecutionResult::WithStartTime
DescribeTaskExecutionResult & WithStartTime(Aws::Utils::DateTime &&value)
Definition: DescribeTaskExecutionResult.h:320
Aws::DataSync::Model::DescribeTaskExecutionResult::WithBytesWritten
DescribeTaskExecutionResult & WithBytesWritten(long long value)
Definition: DescribeTaskExecutionResult.h:423
Aws::DataSync::Model::DescribeTaskExecutionResult::SetExcludes
void SetExcludes(const Aws::Vector< FilterRule > &value)
Definition: DescribeTaskExecutionResult.h:197
TaskExecutionResultDetail.h
Aws::DataSync::Model::DescribeTaskExecutionResult::GetTaskExecutionArn
const Aws::String & GetTaskExecutionArn() const
Definition: DescribeTaskExecutionResult.h:56
Aws::DataSync::Model::DescribeTaskExecutionResult::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: DescribeTaskExecutionResult.h:305
Aws::DataSync::Model::DescribeTaskExecutionResult::WithExcludes
DescribeTaskExecutionResult & WithExcludes(Aws::Vector< FilterRule > &&value)
Definition: DescribeTaskExecutionResult.h:221
Aws::DataSync::Model::DescribeTaskExecutionResult::SetTaskExecutionArn
void SetTaskExecutionArn(const char *value)
Definition: DescribeTaskExecutionResult.h:92
Aws::DataSync::Model::DescribeTaskExecutionResult::SetBytesWritten
void SetBytesWritten(long long value)
Definition: DescribeTaskExecutionResult.h:417
Aws::DataSync::Model::DescribeTaskExecutionResult::operator=
DescribeTaskExecutionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DataSync::Model::DescribeTaskExecutionResult::SetBytesTransferred
void SetBytesTransferred(long long value)
Definition: DescribeTaskExecutionResult.h:434
Aws::DataSync::Model::DescribeTaskExecutionResult::GetResult
const TaskExecutionResultDetail & GetResult() const
Definition: DescribeTaskExecutionResult.h:445
Aws::DataSync::Model::DescribeTaskExecutionResult::AddIncludes
DescribeTaskExecutionResult & AddIncludes(const FilterRule &value)
Definition: DescribeTaskExecutionResult.h:286
Aws::DataSync::Model::DescribeTaskExecutionResult::GetIncludes
const Aws::Vector< FilterRule > & GetIncludes() const
Definition: DescribeTaskExecutionResult.h:246