AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
56
57
59
62 inline const Aws::String& GetTaskId() const { return m_taskId; }
63 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
64 template<typename TaskIdT = Aws::String>
65 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
66 template<typename TaskIdT = Aws::String>
67 DataRepositoryTask& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
69
71
89 inline DataRepositoryTaskLifecycle GetLifecycle() const { return m_lifecycle; }
90 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
91 inline void SetLifecycle(DataRepositoryTaskLifecycle value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
94
96
108 inline DataRepositoryTaskType GetType() const { return m_type; }
109 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 inline void SetType(DataRepositoryTaskType value) { m_typeHasBeenSet = true; m_type = value; }
111 inline DataRepositoryTask& WithType(DataRepositoryTaskType value) { SetType(value); return *this;}
113
115
116 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
117 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
118 template<typename CreationTimeT = Aws::Utils::DateTime>
119 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
120 template<typename CreationTimeT = Aws::Utils::DateTime>
121 DataRepositoryTask& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
129 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
130 template<typename StartTimeT = Aws::Utils::DateTime>
131 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
132 template<typename StartTimeT = Aws::Utils::DateTime>
133 DataRepositoryTask& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
135
137
141 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
142 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
143 template<typename EndTimeT = Aws::Utils::DateTime>
144 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
145 template<typename EndTimeT = Aws::Utils::DateTime>
146 DataRepositoryTask& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
148
150
151 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
152 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
153 template<typename ResourceARNT = Aws::String>
154 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::forward<ResourceARNT>(value); }
155 template<typename ResourceARNT = Aws::String>
156 DataRepositoryTask& WithResourceARN(ResourceARNT&& value) { SetResourceARN(std::forward<ResourceARNT>(value)); return *this;}
158
160
161 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template<typename TagsT = Aws::Vector<Tag>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Vector<Tag>>
166 DataRepositoryTask& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsT = Tag>
168 DataRepositoryTask& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
170
172
175 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
176 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
177 template<typename FileSystemIdT = Aws::String>
178 void SetFileSystemId(FileSystemIdT&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
179 template<typename FileSystemIdT = Aws::String>
180 DataRepositoryTask& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
182
184
191 inline const Aws::Vector<Aws::String>& GetPaths() const { return m_paths; }
192 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
193 template<typename PathsT = Aws::Vector<Aws::String>>
194 void SetPaths(PathsT&& value) { m_pathsHasBeenSet = true; m_paths = std::forward<PathsT>(value); }
195 template<typename PathsT = Aws::Vector<Aws::String>>
196 DataRepositoryTask& WithPaths(PathsT&& value) { SetPaths(std::forward<PathsT>(value)); return *this;}
197 template<typename PathsT = Aws::String>
198 DataRepositoryTask& AddPaths(PathsT&& value) { m_pathsHasBeenSet = true; m_paths.emplace_back(std::forward<PathsT>(value)); return *this; }
200
202
206 inline const DataRepositoryTaskFailureDetails& GetFailureDetails() const { return m_failureDetails; }
207 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
208 template<typename FailureDetailsT = DataRepositoryTaskFailureDetails>
209 void SetFailureDetails(FailureDetailsT&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::forward<FailureDetailsT>(value); }
210 template<typename FailureDetailsT = DataRepositoryTaskFailureDetails>
211 DataRepositoryTask& WithFailureDetails(FailureDetailsT&& value) { SetFailureDetails(std::forward<FailureDetailsT>(value)); return *this;}
213
215
219 inline const DataRepositoryTaskStatus& GetStatus() const { return m_status; }
220 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
221 template<typename StatusT = DataRepositoryTaskStatus>
222 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
223 template<typename StatusT = DataRepositoryTaskStatus>
224 DataRepositoryTask& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
226
228
229 inline const CompletionReport& GetReport() const { return m_report; }
230 inline bool ReportHasBeenSet() const { return m_reportHasBeenSet; }
231 template<typename ReportT = CompletionReport>
232 void SetReport(ReportT&& value) { m_reportHasBeenSet = true; m_report = std::forward<ReportT>(value); }
233 template<typename ReportT = CompletionReport>
234 DataRepositoryTask& WithReport(ReportT&& value) { SetReport(std::forward<ReportT>(value)); return *this;}
236
238
242 inline long long GetCapacityToRelease() const { return m_capacityToRelease; }
243 inline bool CapacityToReleaseHasBeenSet() const { return m_capacityToReleaseHasBeenSet; }
244 inline void SetCapacityToRelease(long long value) { m_capacityToReleaseHasBeenSet = true; m_capacityToRelease = value; }
245 inline DataRepositoryTask& WithCapacityToRelease(long long value) { SetCapacityToRelease(value); return *this;}
247
249
252 inline const Aws::String& GetFileCacheId() const { return m_fileCacheId; }
253 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
254 template<typename FileCacheIdT = Aws::String>
255 void SetFileCacheId(FileCacheIdT&& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = std::forward<FileCacheIdT>(value); }
256 template<typename FileCacheIdT = Aws::String>
257 DataRepositoryTask& WithFileCacheId(FileCacheIdT&& value) { SetFileCacheId(std::forward<FileCacheIdT>(value)); return *this;}
259
261
265 inline const ReleaseConfiguration& GetReleaseConfiguration() const { return m_releaseConfiguration; }
266 inline bool ReleaseConfigurationHasBeenSet() const { return m_releaseConfigurationHasBeenSet; }
267 template<typename ReleaseConfigurationT = ReleaseConfiguration>
268 void SetReleaseConfiguration(ReleaseConfigurationT&& value) { m_releaseConfigurationHasBeenSet = true; m_releaseConfiguration = std::forward<ReleaseConfigurationT>(value); }
269 template<typename ReleaseConfigurationT = ReleaseConfiguration>
270 DataRepositoryTask& WithReleaseConfiguration(ReleaseConfigurationT&& value) { SetReleaseConfiguration(std::forward<ReleaseConfigurationT>(value)); return *this;}
272 private:
273
274 Aws::String m_taskId;
275 bool m_taskIdHasBeenSet = false;
276
278 bool m_lifecycleHasBeenSet = false;
279
281 bool m_typeHasBeenSet = false;
282
283 Aws::Utils::DateTime m_creationTime{};
284 bool m_creationTimeHasBeenSet = false;
285
286 Aws::Utils::DateTime m_startTime{};
287 bool m_startTimeHasBeenSet = false;
288
289 Aws::Utils::DateTime m_endTime{};
290 bool m_endTimeHasBeenSet = false;
291
292 Aws::String m_resourceARN;
293 bool m_resourceARNHasBeenSet = false;
294
295 Aws::Vector<Tag> m_tags;
296 bool m_tagsHasBeenSet = false;
297
298 Aws::String m_fileSystemId;
299 bool m_fileSystemIdHasBeenSet = false;
300
302 bool m_pathsHasBeenSet = false;
303
304 DataRepositoryTaskFailureDetails m_failureDetails;
305 bool m_failureDetailsHasBeenSet = false;
306
307 DataRepositoryTaskStatus m_status;
308 bool m_statusHasBeenSet = false;
309
310 CompletionReport m_report;
311 bool m_reportHasBeenSet = false;
312
313 long long m_capacityToRelease{0};
314 bool m_capacityToReleaseHasBeenSet = false;
315
316 Aws::String m_fileCacheId;
317 bool m_fileCacheIdHasBeenSet = false;
318
319 ReleaseConfiguration m_releaseConfiguration;
320 bool m_releaseConfigurationHasBeenSet = false;
321 };
322
323} // namespace Model
324} // namespace FSx
325} // namespace Aws
DataRepositoryTask & WithFileSystemId(FileSystemIdT &&value)
const Aws::Vector< Aws::String > & GetPaths() const
DataRepositoryTask & WithCapacityToRelease(long long value)
DataRepositoryTask & WithCreationTime(CreationTimeT &&value)
const DataRepositoryTaskFailureDetails & GetFailureDetails() const
void SetReleaseConfiguration(ReleaseConfigurationT &&value)
DataRepositoryTask & WithPaths(PathsT &&value)
const Aws::String & GetResourceARN() const
const ReleaseConfiguration & GetReleaseConfiguration() const
void SetFailureDetails(FailureDetailsT &&value)
void SetFileCacheId(FileCacheIdT &&value)
DataRepositoryTask & WithStatus(StatusT &&value)
DataRepositoryTask & WithTags(TagsT &&value)
DataRepositoryTask & AddTags(TagsT &&value)
void SetLifecycle(DataRepositoryTaskLifecycle value)
DataRepositoryTask & WithLifecycle(DataRepositoryTaskLifecycle value)
DataRepositoryTask & WithFileCacheId(FileCacheIdT &&value)
DataRepositoryTask & WithReleaseConfiguration(ReleaseConfigurationT &&value)
DataRepositoryTaskLifecycle GetLifecycle() const
void SetCreationTime(CreationTimeT &&value)
const Aws::String & GetFileSystemId() const
const Aws::Utils::DateTime & GetEndTime() const
AWS_FSX_API DataRepositoryTask(Aws::Utils::Json::JsonView jsonValue)
DataRepositoryTask & WithReport(ReportT &&value)
DataRepositoryTask & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetFileSystemId(FileSystemIdT &&value)
AWS_FSX_API DataRepositoryTask()=default
const CompletionReport & GetReport() const
DataRepositoryTask & WithFailureDetails(FailureDetailsT &&value)
const Aws::Vector< Tag > & GetTags() const
DataRepositoryTask & WithTaskId(TaskIdT &&value)
const Aws::String & GetTaskId() const
const Aws::Utils::DateTime & GetCreationTime() const
DataRepositoryTask & WithType(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
void SetResourceARN(ResourceARNT &&value)
const DataRepositoryTaskStatus & GetStatus() const
DataRepositoryTaskType GetType() const
DataRepositoryTask & AddPaths(PathsT &&value)
void SetType(DataRepositoryTaskType value)
DataRepositoryTask & WithEndTime(EndTimeT &&value)
DataRepositoryTask & WithResourceARN(ResourceARNT &&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