AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeTaskResult.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datasync/model/TaskStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/model/Options.h>
12#include <aws/datasync/model/TaskSchedule.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/datasync/model/ManifestConfig.h>
15#include <aws/datasync/model/TaskReportConfig.h>
16#include <aws/datasync/model/TaskScheduleDetails.h>
17#include <aws/datasync/model/TaskMode.h>
18#include <aws/datasync/model/FilterRule.h>
19#include <utility>
20
21namespace Aws
22{
23template<typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace DataSync
34{
35namespace Model
36{
43 {
44 public:
45 AWS_DATASYNC_API DescribeTaskResult();
48
49
51
54 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
55 inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; }
56 inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); }
57 inline void SetTaskArn(const char* value) { m_taskArn.assign(value); }
58 inline DescribeTaskResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
59 inline DescribeTaskResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
60 inline DescribeTaskResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
62
64
69 inline const TaskStatus& GetStatus() const{ return m_status; }
70 inline void SetStatus(const TaskStatus& value) { m_status = value; }
71 inline void SetStatus(TaskStatus&& value) { m_status = std::move(value); }
72 inline DescribeTaskResult& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;}
73 inline DescribeTaskResult& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;}
75
77
80 inline const Aws::String& GetName() const{ return m_name; }
81 inline void SetName(const Aws::String& value) { m_name = value; }
82 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
83 inline void SetName(const char* value) { m_name.assign(value); }
84 inline DescribeTaskResult& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline DescribeTaskResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline DescribeTaskResult& WithName(const char* value) { SetName(value); return *this;}
88
90
93 inline const Aws::String& GetCurrentTaskExecutionArn() const{ return m_currentTaskExecutionArn; }
94 inline void SetCurrentTaskExecutionArn(const Aws::String& value) { m_currentTaskExecutionArn = value; }
95 inline void SetCurrentTaskExecutionArn(Aws::String&& value) { m_currentTaskExecutionArn = std::move(value); }
96 inline void SetCurrentTaskExecutionArn(const char* value) { m_currentTaskExecutionArn.assign(value); }
98 inline DescribeTaskResult& WithCurrentTaskExecutionArn(Aws::String&& value) { SetCurrentTaskExecutionArn(std::move(value)); return *this;}
99 inline DescribeTaskResult& WithCurrentTaskExecutionArn(const char* value) { SetCurrentTaskExecutionArn(value); return *this;}
101
103
106 inline const Aws::String& GetSourceLocationArn() const{ return m_sourceLocationArn; }
107 inline void SetSourceLocationArn(const Aws::String& value) { m_sourceLocationArn = value; }
108 inline void SetSourceLocationArn(Aws::String&& value) { m_sourceLocationArn = std::move(value); }
109 inline void SetSourceLocationArn(const char* value) { m_sourceLocationArn.assign(value); }
110 inline DescribeTaskResult& WithSourceLocationArn(const Aws::String& value) { SetSourceLocationArn(value); return *this;}
111 inline DescribeTaskResult& WithSourceLocationArn(Aws::String&& value) { SetSourceLocationArn(std::move(value)); return *this;}
112 inline DescribeTaskResult& WithSourceLocationArn(const char* value) { SetSourceLocationArn(value); return *this;}
114
116
119 inline const Aws::String& GetDestinationLocationArn() const{ return m_destinationLocationArn; }
120 inline void SetDestinationLocationArn(const Aws::String& value) { m_destinationLocationArn = value; }
121 inline void SetDestinationLocationArn(Aws::String&& value) { m_destinationLocationArn = std::move(value); }
122 inline void SetDestinationLocationArn(const char* value) { m_destinationLocationArn.assign(value); }
124 inline DescribeTaskResult& WithDestinationLocationArn(Aws::String&& value) { SetDestinationLocationArn(std::move(value)); return *this;}
125 inline DescribeTaskResult& WithDestinationLocationArn(const char* value) { SetDestinationLocationArn(value); return *this;}
127
129
135 inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
136 inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArn = value; }
137 inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArn = std::move(value); }
138 inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArn.assign(value); }
140 inline DescribeTaskResult& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;}
141 inline DescribeTaskResult& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
143
145
150 inline const Aws::Vector<Aws::String>& GetSourceNetworkInterfaceArns() const{ return m_sourceNetworkInterfaceArns; }
151 inline void SetSourceNetworkInterfaceArns(const Aws::Vector<Aws::String>& value) { m_sourceNetworkInterfaceArns = value; }
152 inline void SetSourceNetworkInterfaceArns(Aws::Vector<Aws::String>&& value) { m_sourceNetworkInterfaceArns = std::move(value); }
155 inline DescribeTaskResult& AddSourceNetworkInterfaceArns(const Aws::String& value) { m_sourceNetworkInterfaceArns.push_back(value); return *this; }
156 inline DescribeTaskResult& AddSourceNetworkInterfaceArns(Aws::String&& value) { m_sourceNetworkInterfaceArns.push_back(std::move(value)); return *this; }
157 inline DescribeTaskResult& AddSourceNetworkInterfaceArns(const char* value) { m_sourceNetworkInterfaceArns.push_back(value); return *this; }
159
161
166 inline const Aws::Vector<Aws::String>& GetDestinationNetworkInterfaceArns() const{ return m_destinationNetworkInterfaceArns; }
167 inline void SetDestinationNetworkInterfaceArns(const Aws::Vector<Aws::String>& value) { m_destinationNetworkInterfaceArns = value; }
168 inline void SetDestinationNetworkInterfaceArns(Aws::Vector<Aws::String>&& value) { m_destinationNetworkInterfaceArns = std::move(value); }
171 inline DescribeTaskResult& AddDestinationNetworkInterfaceArns(const Aws::String& value) { m_destinationNetworkInterfaceArns.push_back(value); return *this; }
172 inline DescribeTaskResult& AddDestinationNetworkInterfaceArns(Aws::String&& value) { m_destinationNetworkInterfaceArns.push_back(std::move(value)); return *this; }
173 inline DescribeTaskResult& AddDestinationNetworkInterfaceArns(const char* value) { m_destinationNetworkInterfaceArns.push_back(value); return *this; }
175
177
182 inline const Options& GetOptions() const{ return m_options; }
183 inline void SetOptions(const Options& value) { m_options = value; }
184 inline void SetOptions(Options&& value) { m_options = std::move(value); }
185 inline DescribeTaskResult& WithOptions(const Options& value) { SetOptions(value); return *this;}
186 inline DescribeTaskResult& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
188
190
197 inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
198 inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludes = value; }
199 inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludes = std::move(value); }
200 inline DescribeTaskResult& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
201 inline DescribeTaskResult& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
202 inline DescribeTaskResult& AddExcludes(const FilterRule& value) { m_excludes.push_back(value); return *this; }
203 inline DescribeTaskResult& AddExcludes(FilterRule&& value) { m_excludes.push_back(std::move(value)); return *this; }
205
207
212 inline const TaskSchedule& GetSchedule() const{ return m_schedule; }
213 inline void SetSchedule(const TaskSchedule& value) { m_schedule = value; }
214 inline void SetSchedule(TaskSchedule&& value) { m_schedule = std::move(value); }
215 inline DescribeTaskResult& WithSchedule(const TaskSchedule& value) { SetSchedule(value); return *this;}
216 inline DescribeTaskResult& WithSchedule(TaskSchedule&& value) { SetSchedule(std::move(value)); return *this;}
218
220
226 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
227 inline void SetErrorCode(const Aws::String& value) { m_errorCode = value; }
228 inline void SetErrorCode(Aws::String&& value) { m_errorCode = std::move(value); }
229 inline void SetErrorCode(const char* value) { m_errorCode.assign(value); }
230 inline DescribeTaskResult& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
231 inline DescribeTaskResult& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
232 inline DescribeTaskResult& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
234
236
242 inline const Aws::String& GetErrorDetail() const{ return m_errorDetail; }
243 inline void SetErrorDetail(const Aws::String& value) { m_errorDetail = value; }
244 inline void SetErrorDetail(Aws::String&& value) { m_errorDetail = std::move(value); }
245 inline void SetErrorDetail(const char* value) { m_errorDetail.assign(value); }
246 inline DescribeTaskResult& WithErrorDetail(const Aws::String& value) { SetErrorDetail(value); return *this;}
247 inline DescribeTaskResult& WithErrorDetail(Aws::String&& value) { SetErrorDetail(std::move(value)); return *this;}
248 inline DescribeTaskResult& WithErrorDetail(const char* value) { SetErrorDetail(value); return *this;}
250
252
255 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
256 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
257 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
258 inline DescribeTaskResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
259 inline DescribeTaskResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
261
263
270 inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
271 inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includes = value; }
272 inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includes = std::move(value); }
273 inline DescribeTaskResult& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
274 inline DescribeTaskResult& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
275 inline DescribeTaskResult& AddIncludes(const FilterRule& value) { m_includes.push_back(value); return *this; }
276 inline DescribeTaskResult& AddIncludes(FilterRule&& value) { m_includes.push_back(std::move(value)); return *this; }
278
280
286 inline const ManifestConfig& GetManifestConfig() const{ return m_manifestConfig; }
287 inline void SetManifestConfig(const ManifestConfig& value) { m_manifestConfig = value; }
288 inline void SetManifestConfig(ManifestConfig&& value) { m_manifestConfig = std::move(value); }
289 inline DescribeTaskResult& WithManifestConfig(const ManifestConfig& value) { SetManifestConfig(value); return *this;}
290 inline DescribeTaskResult& WithManifestConfig(ManifestConfig&& value) { SetManifestConfig(std::move(value)); return *this;}
292
294
300 inline const TaskReportConfig& GetTaskReportConfig() const{ return m_taskReportConfig; }
301 inline void SetTaskReportConfig(const TaskReportConfig& value) { m_taskReportConfig = value; }
302 inline void SetTaskReportConfig(TaskReportConfig&& value) { m_taskReportConfig = std::move(value); }
304 inline DescribeTaskResult& WithTaskReportConfig(TaskReportConfig&& value) { SetTaskReportConfig(std::move(value)); return *this;}
306
308
313 inline const TaskScheduleDetails& GetScheduleDetails() const{ return m_scheduleDetails; }
314 inline void SetScheduleDetails(const TaskScheduleDetails& value) { m_scheduleDetails = value; }
315 inline void SetScheduleDetails(TaskScheduleDetails&& value) { m_scheduleDetails = std::move(value); }
317 inline DescribeTaskResult& WithScheduleDetails(TaskScheduleDetails&& value) { SetScheduleDetails(std::move(value)); return *this;}
319
321
326 inline const TaskMode& GetTaskMode() const{ return m_taskMode; }
327 inline void SetTaskMode(const TaskMode& value) { m_taskMode = value; }
328 inline void SetTaskMode(TaskMode&& value) { m_taskMode = std::move(value); }
329 inline DescribeTaskResult& WithTaskMode(const TaskMode& value) { SetTaskMode(value); return *this;}
330 inline DescribeTaskResult& WithTaskMode(TaskMode&& value) { SetTaskMode(std::move(value)); return *this;}
332
334
335 inline const Aws::String& GetRequestId() const{ return m_requestId; }
336 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
337 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
338 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
339 inline DescribeTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
340 inline DescribeTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
341 inline DescribeTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
343 private:
344
345 Aws::String m_taskArn;
346
347 TaskStatus m_status;
348
349 Aws::String m_name;
350
351 Aws::String m_currentTaskExecutionArn;
352
353 Aws::String m_sourceLocationArn;
354
355 Aws::String m_destinationLocationArn;
356
357 Aws::String m_cloudWatchLogGroupArn;
358
359 Aws::Vector<Aws::String> m_sourceNetworkInterfaceArns;
360
361 Aws::Vector<Aws::String> m_destinationNetworkInterfaceArns;
362
363 Options m_options;
364
365 Aws::Vector<FilterRule> m_excludes;
366
367 TaskSchedule m_schedule;
368
369 Aws::String m_errorCode;
370
371 Aws::String m_errorDetail;
372
373 Aws::Utils::DateTime m_creationTime;
374
375 Aws::Vector<FilterRule> m_includes;
376
377 ManifestConfig m_manifestConfig;
378
379 TaskReportConfig m_taskReportConfig;
380
381 TaskScheduleDetails m_scheduleDetails;
382
383 TaskMode m_taskMode;
384
385 Aws::String m_requestId;
386 };
387
388} // namespace Model
389} // namespace DataSync
390} // namespace Aws
void SetName(const Aws::String &value)
void SetCurrentTaskExecutionArn(const Aws::String &value)
DescribeTaskResult & AddExcludes(FilterRule &&value)
const Aws::Vector< FilterRule > & GetExcludes() const
void SetIncludes(const Aws::Vector< FilterRule > &value)
void SetManifestConfig(const ManifestConfig &value)
const Aws::String & GetDestinationLocationArn() const
const Aws::Vector< Aws::String > & GetDestinationNetworkInterfaceArns() const
void SetScheduleDetails(const TaskScheduleDetails &value)
void SetManifestConfig(ManifestConfig &&value)
void SetCloudWatchLogGroupArn(const Aws::String &value)
DescribeTaskResult & WithDestinationLocationArn(const char *value)
DescribeTaskResult & WithName(const char *value)
DescribeTaskResult & WithRequestId(const Aws::String &value)
DescribeTaskResult & WithCloudWatchLogGroupArn(Aws::String &&value)
DescribeTaskResult & AddSourceNetworkInterfaceArns(Aws::String &&value)
DescribeTaskResult & WithErrorCode(const char *value)
void SetDestinationNetworkInterfaceArns(const Aws::Vector< Aws::String > &value)
DescribeTaskResult & AddDestinationNetworkInterfaceArns(Aws::String &&value)
DescribeTaskResult & WithOptions(const Options &value)
DescribeTaskResult & WithName(const Aws::String &value)
DescribeTaskResult & WithStatus(TaskStatus &&value)
void SetCurrentTaskExecutionArn(Aws::String &&value)
DescribeTaskResult & WithTaskArn(const Aws::String &value)
DescribeTaskResult & AddDestinationNetworkInterfaceArns(const Aws::String &value)
void SetDestinationLocationArn(const Aws::String &value)
DescribeTaskResult & WithScheduleDetails(const TaskScheduleDetails &value)
DescribeTaskResult & WithTaskArn(Aws::String &&value)
DescribeTaskResult & WithSchedule(TaskSchedule &&value)
void SetTaskReportConfig(TaskReportConfig &&value)
DescribeTaskResult & WithCurrentTaskExecutionArn(const Aws::String &value)
void SetErrorCode(const Aws::String &value)
const TaskScheduleDetails & GetScheduleDetails() const
DescribeTaskResult & WithSchedule(const TaskSchedule &value)
DescribeTaskResult & WithIncludes(const Aws::Vector< FilterRule > &value)
DescribeTaskResult & WithCreationTime(Aws::Utils::DateTime &&value)
DescribeTaskResult & WithOptions(Options &&value)
DescribeTaskResult & WithDestinationLocationArn(Aws::String &&value)
DescribeTaskResult & AddExcludes(const FilterRule &value)
DescribeTaskResult & WithErrorDetail(const char *value)
DescribeTaskResult & WithSourceLocationArn(Aws::String &&value)
DescribeTaskResult & WithCurrentTaskExecutionArn(const char *value)
void SetErrorDetail(const Aws::String &value)
DescribeTaskResult & WithScheduleDetails(TaskScheduleDetails &&value)
DescribeTaskResult & WithTaskReportConfig(const TaskReportConfig &value)
DescribeTaskResult & WithDestinationLocationArn(const Aws::String &value)
void SetScheduleDetails(TaskScheduleDetails &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
DescribeTaskResult & WithSourceNetworkInterfaceArns(const Aws::Vector< Aws::String > &value)
void SetCurrentTaskExecutionArn(const char *value)
const Aws::Vector< Aws::String > & GetSourceNetworkInterfaceArns() const
void SetStatus(const TaskStatus &value)
DescribeTaskResult & AddSourceNetworkInterfaceArns(const char *value)
DescribeTaskResult & WithCurrentTaskExecutionArn(Aws::String &&value)
DescribeTaskResult & WithRequestId(const char *value)
DescribeTaskResult & WithExcludes(Aws::Vector< FilterRule > &&value)
DescribeTaskResult & WithErrorDetail(Aws::String &&value)
void SetSourceNetworkInterfaceArns(Aws::Vector< Aws::String > &&value)
void SetIncludes(Aws::Vector< FilterRule > &&value)
void SetExcludes(const Aws::Vector< FilterRule > &value)
DescribeTaskResult & WithTaskArn(const char *value)
DescribeTaskResult & WithErrorCode(Aws::String &&value)
AWS_DATASYNC_API DescribeTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskResult & WithCloudWatchLogGroupArn(const char *value)
const ManifestConfig & GetManifestConfig() const
const Aws::String & GetCurrentTaskExecutionArn() const
void SetExcludes(Aws::Vector< FilterRule > &&value)
DescribeTaskResult & AddIncludes(const FilterRule &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetDestinationNetworkInterfaceArns(Aws::Vector< Aws::String > &&value)
DescribeTaskResult & WithExcludes(const Aws::Vector< FilterRule > &value)
void SetCloudWatchLogGroupArn(Aws::String &&value)
void SetTaskArn(const Aws::String &value)
DescribeTaskResult & WithName(Aws::String &&value)
DescribeTaskResult & WithTaskReportConfig(TaskReportConfig &&value)
const Aws::Vector< FilterRule > & GetIncludes() const
DescribeTaskResult & AddIncludes(FilterRule &&value)
DescribeTaskResult & WithErrorCode(const Aws::String &value)
const Aws::String & GetCloudWatchLogGroupArn() const
DescribeTaskResult & WithSourceLocationArn(const char *value)
void SetDestinationLocationArn(Aws::String &&value)
void SetSchedule(const TaskSchedule &value)
AWS_DATASYNC_API DescribeTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskResult & WithStatus(const TaskStatus &value)
DescribeTaskResult & WithSourceLocationArn(const Aws::String &value)
const TaskReportConfig & GetTaskReportConfig() const
DescribeTaskResult & WithDestinationNetworkInterfaceArns(const Aws::Vector< Aws::String > &value)
void SetSourceNetworkInterfaceArns(const Aws::Vector< Aws::String > &value)
DescribeTaskResult & WithErrorDetail(const Aws::String &value)
DescribeTaskResult & WithTaskMode(const TaskMode &value)
DescribeTaskResult & AddDestinationNetworkInterfaceArns(const char *value)
DescribeTaskResult & WithCloudWatchLogGroupArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetTaskReportConfig(const TaskReportConfig &value)
DescribeTaskResult & WithManifestConfig(const ManifestConfig &value)
DescribeTaskResult & WithRequestId(Aws::String &&value)
DescribeTaskResult & WithDestinationNetworkInterfaceArns(Aws::Vector< Aws::String > &&value)
DescribeTaskResult & WithIncludes(Aws::Vector< FilterRule > &&value)
void SetSourceLocationArn(const Aws::String &value)
const Aws::String & GetSourceLocationArn() const
DescribeTaskResult & WithManifestConfig(ManifestConfig &&value)
DescribeTaskResult & WithCreationTime(const Aws::Utils::DateTime &value)
DescribeTaskResult & WithTaskMode(TaskMode &&value)
DescribeTaskResult & AddSourceNetworkInterfaceArns(const Aws::String &value)
void SetRequestId(const Aws::String &value)
DescribeTaskResult & WithSourceNetworkInterfaceArns(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue