AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataRepositoryTask.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/model/DataRepositoryTaskLifecycle.h>
10#include <aws/fsx/model/DataRepositoryTaskType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/fsx/model/DataRepositoryTaskFailureDetails.h>
14#include <aws/fsx/model/DataRepositoryTaskStatus.h>
15#include <aws/fsx/model/CompletionReport.h>
16#include <aws/fsx/model/ReleaseConfiguration.h>
17#include <aws/fsx/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace FSx
31{
32namespace Model
33{
34
50 {
51 public:
52 AWS_FSX_API DataRepositoryTask();
56
57
59
62 inline const Aws::String& GetTaskId() const{ return m_taskId; }
63 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
64 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
65 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
66 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
67 inline DataRepositoryTask& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
68 inline DataRepositoryTask& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
69 inline DataRepositoryTask& WithTaskId(const char* value) { SetTaskId(value); return *this;}
71
73
91 inline const DataRepositoryTaskLifecycle& GetLifecycle() const{ return m_lifecycle; }
92 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
93 inline void SetLifecycle(const DataRepositoryTaskLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
94 inline void SetLifecycle(DataRepositoryTaskLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
95 inline DataRepositoryTask& WithLifecycle(const DataRepositoryTaskLifecycle& value) { SetLifecycle(value); return *this;}
96 inline DataRepositoryTask& WithLifecycle(DataRepositoryTaskLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
98
100
112 inline const DataRepositoryTaskType& GetType() const{ return m_type; }
113 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
114 inline void SetType(const DataRepositoryTaskType& value) { m_typeHasBeenSet = true; m_type = value; }
115 inline void SetType(DataRepositoryTaskType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
116 inline DataRepositoryTask& WithType(const DataRepositoryTaskType& value) { SetType(value); return *this;}
117 inline DataRepositoryTask& WithType(DataRepositoryTaskType&& value) { SetType(std::move(value)); return *this;}
119
121
122 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
123 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
124 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
125 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
126 inline DataRepositoryTask& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
127 inline DataRepositoryTask& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
135 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
136 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
137 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
138 inline DataRepositoryTask& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
139 inline DataRepositoryTask& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
141
143
147 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
148 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
149 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
150 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
151 inline DataRepositoryTask& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
152 inline DataRepositoryTask& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
154
156
157 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
158 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
159 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
160 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
161 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
162 inline DataRepositoryTask& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
163 inline DataRepositoryTask& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
164 inline DataRepositoryTask& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
166
168
169 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
170 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
172 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
173 inline DataRepositoryTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
174 inline DataRepositoryTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
175 inline DataRepositoryTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
176 inline DataRepositoryTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
178
180
183 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
184 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
185 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
186 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
187 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
188 inline DataRepositoryTask& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
189 inline DataRepositoryTask& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
190 inline DataRepositoryTask& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
192
194
201 inline const Aws::Vector<Aws::String>& GetPaths() const{ return m_paths; }
202 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
203 inline void SetPaths(const Aws::Vector<Aws::String>& value) { m_pathsHasBeenSet = true; m_paths = value; }
204 inline void SetPaths(Aws::Vector<Aws::String>&& value) { m_pathsHasBeenSet = true; m_paths = std::move(value); }
205 inline DataRepositoryTask& WithPaths(const Aws::Vector<Aws::String>& value) { SetPaths(value); return *this;}
206 inline DataRepositoryTask& WithPaths(Aws::Vector<Aws::String>&& value) { SetPaths(std::move(value)); return *this;}
207 inline DataRepositoryTask& AddPaths(const Aws::String& value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; }
208 inline DataRepositoryTask& AddPaths(Aws::String&& value) { m_pathsHasBeenSet = true; m_paths.push_back(std::move(value)); return *this; }
209 inline DataRepositoryTask& AddPaths(const char* value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; }
211
213
217 inline const DataRepositoryTaskFailureDetails& GetFailureDetails() const{ return m_failureDetails; }
218 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
219 inline void SetFailureDetails(const DataRepositoryTaskFailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
220 inline void SetFailureDetails(DataRepositoryTaskFailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::move(value); }
224
226
230 inline const DataRepositoryTaskStatus& GetStatus() const{ return m_status; }
231 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
232 inline void SetStatus(const DataRepositoryTaskStatus& value) { m_statusHasBeenSet = true; m_status = value; }
233 inline void SetStatus(DataRepositoryTaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
234 inline DataRepositoryTask& WithStatus(const DataRepositoryTaskStatus& value) { SetStatus(value); return *this;}
235 inline DataRepositoryTask& WithStatus(DataRepositoryTaskStatus&& value) { SetStatus(std::move(value)); return *this;}
237
239
240 inline const CompletionReport& GetReport() const{ return m_report; }
241 inline bool ReportHasBeenSet() const { return m_reportHasBeenSet; }
242 inline void SetReport(const CompletionReport& value) { m_reportHasBeenSet = true; m_report = value; }
243 inline void SetReport(CompletionReport&& value) { m_reportHasBeenSet = true; m_report = std::move(value); }
244 inline DataRepositoryTask& WithReport(const CompletionReport& value) { SetReport(value); return *this;}
245 inline DataRepositoryTask& WithReport(CompletionReport&& value) { SetReport(std::move(value)); return *this;}
247
249
253 inline long long GetCapacityToRelease() const{ return m_capacityToRelease; }
254 inline bool CapacityToReleaseHasBeenSet() const { return m_capacityToReleaseHasBeenSet; }
255 inline void SetCapacityToRelease(long long value) { m_capacityToReleaseHasBeenSet = true; m_capacityToRelease = value; }
256 inline DataRepositoryTask& WithCapacityToRelease(long long value) { SetCapacityToRelease(value); return *this;}
258
260
263 inline const Aws::String& GetFileCacheId() const{ return m_fileCacheId; }
264 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
265 inline void SetFileCacheId(const Aws::String& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = value; }
266 inline void SetFileCacheId(Aws::String&& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = std::move(value); }
267 inline void SetFileCacheId(const char* value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId.assign(value); }
268 inline DataRepositoryTask& WithFileCacheId(const Aws::String& value) { SetFileCacheId(value); return *this;}
269 inline DataRepositoryTask& WithFileCacheId(Aws::String&& value) { SetFileCacheId(std::move(value)); return *this;}
270 inline DataRepositoryTask& WithFileCacheId(const char* value) { SetFileCacheId(value); return *this;}
272
274
278 inline const ReleaseConfiguration& GetReleaseConfiguration() const{ return m_releaseConfiguration; }
279 inline bool ReleaseConfigurationHasBeenSet() const { return m_releaseConfigurationHasBeenSet; }
280 inline void SetReleaseConfiguration(const ReleaseConfiguration& value) { m_releaseConfigurationHasBeenSet = true; m_releaseConfiguration = value; }
281 inline void SetReleaseConfiguration(ReleaseConfiguration&& value) { m_releaseConfigurationHasBeenSet = true; m_releaseConfiguration = std::move(value); }
285 private:
286
287 Aws::String m_taskId;
288 bool m_taskIdHasBeenSet = false;
289
290 DataRepositoryTaskLifecycle m_lifecycle;
291 bool m_lifecycleHasBeenSet = false;
292
294 bool m_typeHasBeenSet = false;
295
296 Aws::Utils::DateTime m_creationTime;
297 bool m_creationTimeHasBeenSet = false;
298
299 Aws::Utils::DateTime m_startTime;
300 bool m_startTimeHasBeenSet = false;
301
302 Aws::Utils::DateTime m_endTime;
303 bool m_endTimeHasBeenSet = false;
304
305 Aws::String m_resourceARN;
306 bool m_resourceARNHasBeenSet = false;
307
308 Aws::Vector<Tag> m_tags;
309 bool m_tagsHasBeenSet = false;
310
311 Aws::String m_fileSystemId;
312 bool m_fileSystemIdHasBeenSet = false;
313
315 bool m_pathsHasBeenSet = false;
316
317 DataRepositoryTaskFailureDetails m_failureDetails;
318 bool m_failureDetailsHasBeenSet = false;
319
321 bool m_statusHasBeenSet = false;
322
323 CompletionReport m_report;
324 bool m_reportHasBeenSet = false;
325
326 long long m_capacityToRelease;
327 bool m_capacityToReleaseHasBeenSet = false;
328
329 Aws::String m_fileCacheId;
330 bool m_fileCacheIdHasBeenSet = false;
331
332 ReleaseConfiguration m_releaseConfiguration;
333 bool m_releaseConfigurationHasBeenSet = false;
334 };
335
336} // namespace Model
337} // namespace FSx
338} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Aws::String > & GetPaths() const
void SetFileCacheId(Aws::String &&value)
DataRepositoryTask & AddTags(const Tag &value)
void SetFileCacheId(const Aws::String &value)
DataRepositoryTask & WithCapacityToRelease(long long value)
DataRepositoryTask & WithFileCacheId(const char *value)
const DataRepositoryTaskFailureDetails & GetFailureDetails() const
void SetEndTime(Aws::Utils::DateTime &&value)
const DataRepositoryTaskLifecycle & GetLifecycle() const
DataRepositoryTask & WithResourceARN(const Aws::String &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
const Aws::String & GetResourceARN() const
const ReleaseConfiguration & GetReleaseConfiguration() const
DataRepositoryTask & WithTaskId(Aws::String &&value)
DataRepositoryTask & WithTaskId(const Aws::String &value)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetReport(const CompletionReport &value)
DataRepositoryTask & WithPaths(const Aws::Vector< Aws::String > &value)
void SetFailureDetails(const DataRepositoryTaskFailureDetails &value)
DataRepositoryTask & WithCreationTime(const Aws::Utils::DateTime &value)
DataRepositoryTask & WithCreationTime(Aws::Utils::DateTime &&value)
DataRepositoryTask & WithFileCacheId(Aws::String &&value)
DataRepositoryTask & WithFileCacheId(const Aws::String &value)
DataRepositoryTask & AddPaths(const Aws::String &value)
DataRepositoryTask & WithReleaseConfiguration(const ReleaseConfiguration &value)
void SetLifecycle(DataRepositoryTaskLifecycle &&value)
void SetLifecycle(const DataRepositoryTaskLifecycle &value)
void SetPaths(const Aws::Vector< Aws::String > &value)
DataRepositoryTask & WithType(DataRepositoryTaskType &&value)
DataRepositoryTask & WithFileSystemId(const char *value)
void SetFileSystemId(Aws::String &&value)
void SetReleaseConfiguration(const ReleaseConfiguration &value)
void SetStatus(DataRepositoryTaskStatus &&value)
const Aws::String & GetFileSystemId() const
const Aws::Utils::DateTime & GetEndTime() const
DataRepositoryTask & WithFailureDetails(DataRepositoryTaskFailureDetails &&value)
DataRepositoryTask & WithTags(const Aws::Vector< Tag > &value)
DataRepositoryTask & WithResourceARN(const char *value)
void SetReleaseConfiguration(ReleaseConfiguration &&value)
AWS_FSX_API DataRepositoryTask(Aws::Utils::Json::JsonView jsonValue)
DataRepositoryTask & WithReleaseConfiguration(ReleaseConfiguration &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
DataRepositoryTask & WithFailureDetails(const DataRepositoryTaskFailureDetails &value)
DataRepositoryTask & WithEndTime(const Aws::Utils::DateTime &value)
DataRepositoryTask & WithPaths(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetReport(CompletionReport &&value)
const DataRepositoryTaskType & GetType() const
void SetStatus(const DataRepositoryTaskStatus &value)
DataRepositoryTask & WithStartTime(const Aws::Utils::DateTime &value)
DataRepositoryTask & WithTags(Aws::Vector< Tag > &&value)
DataRepositoryTask & WithTaskId(const char *value)
void SetTaskId(const Aws::String &value)
DataRepositoryTask & WithEndTime(Aws::Utils::DateTime &&value)
DataRepositoryTask & WithStartTime(Aws::Utils::DateTime &&value)
DataRepositoryTask & WithType(const DataRepositoryTaskType &value)
DataRepositoryTask & WithReport(CompletionReport &&value)
const CompletionReport & GetReport() const
DataRepositoryTask & WithStatus(DataRepositoryTaskStatus &&value)
DataRepositoryTask & WithResourceARN(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
DataRepositoryTask & WithStatus(const DataRepositoryTaskStatus &value)
void SetTaskId(Aws::String &&value)
void SetPaths(Aws::Vector< Aws::String > &&value)
const Aws::String & GetTaskId() const
void SetType(const DataRepositoryTaskType &value)
DataRepositoryTask & AddPaths(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetFailureDetails(DataRepositoryTaskFailureDetails &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetType(DataRepositoryTaskType &&value)
const Aws::String & GetFileCacheId() const
AWS_FSX_API DataRepositoryTask & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
const DataRepositoryTaskStatus & GetStatus() const
void SetResourceARN(Aws::String &&value)
DataRepositoryTask & WithLifecycle(DataRepositoryTaskLifecycle &&value)
void SetResourceARN(const Aws::String &value)
DataRepositoryTask & AddTags(Tag &&value)
DataRepositoryTask & WithReport(const CompletionReport &value)
DataRepositoryTask & WithFileSystemId(const Aws::String &value)
DataRepositoryTask & WithFileSystemId(Aws::String &&value)
DataRepositoryTask & WithLifecycle(const DataRepositoryTaskLifecycle &value)
void SetFileSystemId(const Aws::String &value)
DataRepositoryTask & AddPaths(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