AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
48
49
51
54 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
55 template<typename TaskArnT = Aws::String>
56 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::forward<TaskArnT>(value); }
57 template<typename TaskArnT = Aws::String>
58 DescribeTaskResult& WithTaskArn(TaskArnT&& value) { SetTaskArn(std::forward<TaskArnT>(value)); return *this;}
60
62
67 inline TaskStatus GetStatus() const { return m_status; }
68 inline void SetStatus(TaskStatus value) { m_statusHasBeenSet = true; m_status = value; }
69 inline DescribeTaskResult& WithStatus(TaskStatus value) { SetStatus(value); return *this;}
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 template<typename NameT = Aws::String>
78 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
79 template<typename NameT = Aws::String>
80 DescribeTaskResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
82
84
87 inline const Aws::String& GetCurrentTaskExecutionArn() const { return m_currentTaskExecutionArn; }
88 template<typename CurrentTaskExecutionArnT = Aws::String>
89 void SetCurrentTaskExecutionArn(CurrentTaskExecutionArnT&& value) { m_currentTaskExecutionArnHasBeenSet = true; m_currentTaskExecutionArn = std::forward<CurrentTaskExecutionArnT>(value); }
90 template<typename CurrentTaskExecutionArnT = Aws::String>
91 DescribeTaskResult& WithCurrentTaskExecutionArn(CurrentTaskExecutionArnT&& value) { SetCurrentTaskExecutionArn(std::forward<CurrentTaskExecutionArnT>(value)); return *this;}
93
95
98 inline const Aws::String& GetSourceLocationArn() const { return m_sourceLocationArn; }
99 template<typename SourceLocationArnT = Aws::String>
100 void SetSourceLocationArn(SourceLocationArnT&& value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn = std::forward<SourceLocationArnT>(value); }
101 template<typename SourceLocationArnT = Aws::String>
102 DescribeTaskResult& WithSourceLocationArn(SourceLocationArnT&& value) { SetSourceLocationArn(std::forward<SourceLocationArnT>(value)); return *this;}
104
106
109 inline const Aws::String& GetDestinationLocationArn() const { return m_destinationLocationArn; }
110 template<typename DestinationLocationArnT = Aws::String>
111 void SetDestinationLocationArn(DestinationLocationArnT&& value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn = std::forward<DestinationLocationArnT>(value); }
112 template<typename DestinationLocationArnT = Aws::String>
113 DescribeTaskResult& WithDestinationLocationArn(DestinationLocationArnT&& value) { SetDestinationLocationArn(std::forward<DestinationLocationArnT>(value)); return *this;}
115
117
123 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
124 template<typename CloudWatchLogGroupArnT = Aws::String>
125 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value); }
126 template<typename CloudWatchLogGroupArnT = Aws::String>
127 DescribeTaskResult& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value)); return *this;}
129
131
136 inline const Aws::Vector<Aws::String>& GetSourceNetworkInterfaceArns() const { return m_sourceNetworkInterfaceArns; }
137 template<typename SourceNetworkInterfaceArnsT = Aws::Vector<Aws::String>>
138 void SetSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT&& value) { m_sourceNetworkInterfaceArnsHasBeenSet = true; m_sourceNetworkInterfaceArns = std::forward<SourceNetworkInterfaceArnsT>(value); }
139 template<typename SourceNetworkInterfaceArnsT = Aws::Vector<Aws::String>>
140 DescribeTaskResult& WithSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT&& value) { SetSourceNetworkInterfaceArns(std::forward<SourceNetworkInterfaceArnsT>(value)); return *this;}
141 template<typename SourceNetworkInterfaceArnsT = Aws::String>
142 DescribeTaskResult& AddSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT&& value) { m_sourceNetworkInterfaceArnsHasBeenSet = true; m_sourceNetworkInterfaceArns.emplace_back(std::forward<SourceNetworkInterfaceArnsT>(value)); return *this; }
144
146
151 inline const Aws::Vector<Aws::String>& GetDestinationNetworkInterfaceArns() const { return m_destinationNetworkInterfaceArns; }
152 template<typename DestinationNetworkInterfaceArnsT = Aws::Vector<Aws::String>>
153 void SetDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT&& value) { m_destinationNetworkInterfaceArnsHasBeenSet = true; m_destinationNetworkInterfaceArns = std::forward<DestinationNetworkInterfaceArnsT>(value); }
154 template<typename DestinationNetworkInterfaceArnsT = Aws::Vector<Aws::String>>
155 DescribeTaskResult& WithDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT&& value) { SetDestinationNetworkInterfaceArns(std::forward<DestinationNetworkInterfaceArnsT>(value)); return *this;}
156 template<typename DestinationNetworkInterfaceArnsT = Aws::String>
157 DescribeTaskResult& AddDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT&& value) { m_destinationNetworkInterfaceArnsHasBeenSet = true; m_destinationNetworkInterfaceArns.emplace_back(std::forward<DestinationNetworkInterfaceArnsT>(value)); return *this; }
159
161
166 inline const Options& GetOptions() const { return m_options; }
167 template<typename OptionsT = Options>
168 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
169 template<typename OptionsT = Options>
170 DescribeTaskResult& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
172
174
181 inline const Aws::Vector<FilterRule>& GetExcludes() const { return m_excludes; }
182 template<typename ExcludesT = Aws::Vector<FilterRule>>
183 void SetExcludes(ExcludesT&& value) { m_excludesHasBeenSet = true; m_excludes = std::forward<ExcludesT>(value); }
184 template<typename ExcludesT = Aws::Vector<FilterRule>>
185 DescribeTaskResult& WithExcludes(ExcludesT&& value) { SetExcludes(std::forward<ExcludesT>(value)); return *this;}
186 template<typename ExcludesT = FilterRule>
187 DescribeTaskResult& AddExcludes(ExcludesT&& value) { m_excludesHasBeenSet = true; m_excludes.emplace_back(std::forward<ExcludesT>(value)); return *this; }
189
191
196 inline const TaskSchedule& GetSchedule() const { return m_schedule; }
197 template<typename ScheduleT = TaskSchedule>
198 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
199 template<typename ScheduleT = TaskSchedule>
200 DescribeTaskResult& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
202
204
210 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
211 template<typename ErrorCodeT = Aws::String>
212 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
213 template<typename ErrorCodeT = Aws::String>
214 DescribeTaskResult& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
216
218
224 inline const Aws::String& GetErrorDetail() const { return m_errorDetail; }
225 template<typename ErrorDetailT = Aws::String>
226 void SetErrorDetail(ErrorDetailT&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::forward<ErrorDetailT>(value); }
227 template<typename ErrorDetailT = Aws::String>
228 DescribeTaskResult& WithErrorDetail(ErrorDetailT&& value) { SetErrorDetail(std::forward<ErrorDetailT>(value)); return *this;}
230
232
235 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
236 template<typename CreationTimeT = Aws::Utils::DateTime>
237 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
238 template<typename CreationTimeT = Aws::Utils::DateTime>
239 DescribeTaskResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
241
243
250 inline const Aws::Vector<FilterRule>& GetIncludes() const { return m_includes; }
251 template<typename IncludesT = Aws::Vector<FilterRule>>
252 void SetIncludes(IncludesT&& value) { m_includesHasBeenSet = true; m_includes = std::forward<IncludesT>(value); }
253 template<typename IncludesT = Aws::Vector<FilterRule>>
254 DescribeTaskResult& WithIncludes(IncludesT&& value) { SetIncludes(std::forward<IncludesT>(value)); return *this;}
255 template<typename IncludesT = FilterRule>
256 DescribeTaskResult& AddIncludes(IncludesT&& value) { m_includesHasBeenSet = true; m_includes.emplace_back(std::forward<IncludesT>(value)); return *this; }
258
260
266 inline const ManifestConfig& GetManifestConfig() const { return m_manifestConfig; }
267 template<typename ManifestConfigT = ManifestConfig>
268 void SetManifestConfig(ManifestConfigT&& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = std::forward<ManifestConfigT>(value); }
269 template<typename ManifestConfigT = ManifestConfig>
270 DescribeTaskResult& WithManifestConfig(ManifestConfigT&& value) { SetManifestConfig(std::forward<ManifestConfigT>(value)); return *this;}
272
274
280 inline const TaskReportConfig& GetTaskReportConfig() const { return m_taskReportConfig; }
281 template<typename TaskReportConfigT = TaskReportConfig>
282 void SetTaskReportConfig(TaskReportConfigT&& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = std::forward<TaskReportConfigT>(value); }
283 template<typename TaskReportConfigT = TaskReportConfig>
284 DescribeTaskResult& WithTaskReportConfig(TaskReportConfigT&& value) { SetTaskReportConfig(std::forward<TaskReportConfigT>(value)); return *this;}
286
288
293 inline const TaskScheduleDetails& GetScheduleDetails() const { return m_scheduleDetails; }
294 template<typename ScheduleDetailsT = TaskScheduleDetails>
295 void SetScheduleDetails(ScheduleDetailsT&& value) { m_scheduleDetailsHasBeenSet = true; m_scheduleDetails = std::forward<ScheduleDetailsT>(value); }
296 template<typename ScheduleDetailsT = TaskScheduleDetails>
297 DescribeTaskResult& WithScheduleDetails(ScheduleDetailsT&& value) { SetScheduleDetails(std::forward<ScheduleDetailsT>(value)); return *this;}
299
301
306 inline TaskMode GetTaskMode() const { return m_taskMode; }
307 inline void SetTaskMode(TaskMode value) { m_taskModeHasBeenSet = true; m_taskMode = value; }
308 inline DescribeTaskResult& WithTaskMode(TaskMode value) { SetTaskMode(value); return *this;}
310
312
313 inline const Aws::String& GetRequestId() const { return m_requestId; }
314 template<typename RequestIdT = Aws::String>
315 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
316 template<typename RequestIdT = Aws::String>
317 DescribeTaskResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
319 private:
320
321 Aws::String m_taskArn;
322 bool m_taskArnHasBeenSet = false;
323
325 bool m_statusHasBeenSet = false;
326
327 Aws::String m_name;
328 bool m_nameHasBeenSet = false;
329
330 Aws::String m_currentTaskExecutionArn;
331 bool m_currentTaskExecutionArnHasBeenSet = false;
332
333 Aws::String m_sourceLocationArn;
334 bool m_sourceLocationArnHasBeenSet = false;
335
336 Aws::String m_destinationLocationArn;
337 bool m_destinationLocationArnHasBeenSet = false;
338
339 Aws::String m_cloudWatchLogGroupArn;
340 bool m_cloudWatchLogGroupArnHasBeenSet = false;
341
342 Aws::Vector<Aws::String> m_sourceNetworkInterfaceArns;
343 bool m_sourceNetworkInterfaceArnsHasBeenSet = false;
344
345 Aws::Vector<Aws::String> m_destinationNetworkInterfaceArns;
346 bool m_destinationNetworkInterfaceArnsHasBeenSet = false;
347
348 Options m_options;
349 bool m_optionsHasBeenSet = false;
350
351 Aws::Vector<FilterRule> m_excludes;
352 bool m_excludesHasBeenSet = false;
353
354 TaskSchedule m_schedule;
355 bool m_scheduleHasBeenSet = false;
356
357 Aws::String m_errorCode;
358 bool m_errorCodeHasBeenSet = false;
359
360 Aws::String m_errorDetail;
361 bool m_errorDetailHasBeenSet = false;
362
363 Aws::Utils::DateTime m_creationTime{};
364 bool m_creationTimeHasBeenSet = false;
365
366 Aws::Vector<FilterRule> m_includes;
367 bool m_includesHasBeenSet = false;
368
369 ManifestConfig m_manifestConfig;
370 bool m_manifestConfigHasBeenSet = false;
371
372 TaskReportConfig m_taskReportConfig;
373 bool m_taskReportConfigHasBeenSet = false;
374
375 TaskScheduleDetails m_scheduleDetails;
376 bool m_scheduleDetailsHasBeenSet = false;
377
378 TaskMode m_taskMode{TaskMode::NOT_SET};
379 bool m_taskModeHasBeenSet = false;
380
381 Aws::String m_requestId;
382 bool m_requestIdHasBeenSet = false;
383 };
384
385} // namespace Model
386} // namespace DataSync
387} // namespace Aws
DescribeTaskResult & WithDestinationLocationArn(DestinationLocationArnT &&value)
void SetDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT &&value)
const Aws::Vector< FilterRule > & GetExcludes() const
DescribeTaskResult & AddSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT &&value)
DescribeTaskResult & WithTaskReportConfig(TaskReportConfigT &&value)
DescribeTaskResult & WithOptions(OptionsT &&value)
DescribeTaskResult & WithManifestConfig(ManifestConfigT &&value)
const Aws::String & GetDestinationLocationArn() const
const Aws::Vector< Aws::String > & GetDestinationNetworkInterfaceArns() const
DescribeTaskResult & WithName(NameT &&value)
DescribeTaskResult & AddExcludes(ExcludesT &&value)
DescribeTaskResult & WithErrorCode(ErrorCodeT &&value)
void SetSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT &&value)
const TaskScheduleDetails & GetScheduleDetails() const
DescribeTaskResult & WithSourceLocationArn(SourceLocationArnT &&value)
DescribeTaskResult & WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
void SetTaskReportConfig(TaskReportConfigT &&value)
AWS_DATASYNC_API DescribeTaskResult()=default
DescribeTaskResult & WithExcludes(ExcludesT &&value)
DescribeTaskResult & WithStatus(TaskStatus value)
const Aws::Vector< Aws::String > & GetSourceNetworkInterfaceArns() const
DescribeTaskResult & WithCurrentTaskExecutionArn(CurrentTaskExecutionArnT &&value)
void SetScheduleDetails(ScheduleDetailsT &&value)
AWS_DATASYNC_API DescribeTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskResult & WithScheduleDetails(ScheduleDetailsT &&value)
DescribeTaskResult & WithErrorDetail(ErrorDetailT &&value)
const ManifestConfig & GetManifestConfig() const
const Aws::String & GetCurrentTaskExecutionArn() const
DescribeTaskResult & WithIncludes(IncludesT &&value)
DescribeTaskResult & WithCreationTime(CreationTimeT &&value)
void SetManifestConfig(ManifestConfigT &&value)
void SetDestinationLocationArn(DestinationLocationArnT &&value)
void SetCurrentTaskExecutionArn(CurrentTaskExecutionArnT &&value)
void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
void SetSourceLocationArn(SourceLocationArnT &&value)
void SetCreationTime(CreationTimeT &&value)
DescribeTaskResult & WithSchedule(ScheduleT &&value)
const Aws::Vector< FilterRule > & GetIncludes() const
const Aws::String & GetCloudWatchLogGroupArn() const
DescribeTaskResult & WithDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT &&value)
DescribeTaskResult & AddIncludes(IncludesT &&value)
AWS_DATASYNC_API DescribeTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskResult & WithRequestId(RequestIdT &&value)
const TaskReportConfig & GetTaskReportConfig() const
DescribeTaskResult & WithSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeTaskResult & AddDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT &&value)
const Aws::String & GetSourceLocationArn() const
DescribeTaskResult & WithTaskMode(TaskMode value)
DescribeTaskResult & WithTaskArn(TaskArnT &&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