AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportTask.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/ImportStatus.h>
11#include <aws/mgn/model/ImportTaskSummary.h>
12#include <aws/mgn/model/S3BucketSource.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace mgn {
24namespace Model {
25
32 public:
33 AWS_MGN_API ImportTask() = default;
34 AWS_MGN_API ImportTask(Aws::Utils::Json::JsonView jsonValue);
37
39
42 inline const Aws::String& GetImportID() const { return m_importID; }
43 inline bool ImportIDHasBeenSet() const { return m_importIDHasBeenSet; }
44 template <typename ImportIDT = Aws::String>
45 void SetImportID(ImportIDT&& value) {
46 m_importIDHasBeenSet = true;
47 m_importID = std::forward<ImportIDT>(value);
48 }
49 template <typename ImportIDT = Aws::String>
50 ImportTask& WithImportID(ImportIDT&& value) {
51 SetImportID(std::forward<ImportIDT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 ImportTask& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const S3BucketSource& GetS3BucketSource() const { return m_s3BucketSource; }
79 inline bool S3BucketSourceHasBeenSet() const { return m_s3BucketSourceHasBeenSet; }
80 template <typename S3BucketSourceT = S3BucketSource>
81 void SetS3BucketSource(S3BucketSourceT&& value) {
82 m_s3BucketSourceHasBeenSet = true;
83 m_s3BucketSource = std::forward<S3BucketSourceT>(value);
84 }
85 template <typename S3BucketSourceT = S3BucketSource>
86 ImportTask& WithS3BucketSource(S3BucketSourceT&& value) {
87 SetS3BucketSource(std::forward<S3BucketSourceT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
97 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
98 template <typename CreationDateTimeT = Aws::String>
99 void SetCreationDateTime(CreationDateTimeT&& value) {
100 m_creationDateTimeHasBeenSet = true;
101 m_creationDateTime = std::forward<CreationDateTimeT>(value);
102 }
103 template <typename CreationDateTimeT = Aws::String>
104 ImportTask& WithCreationDateTime(CreationDateTimeT&& value) {
105 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
115 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
116 template <typename EndDateTimeT = Aws::String>
117 void SetEndDateTime(EndDateTimeT&& value) {
118 m_endDateTimeHasBeenSet = true;
119 m_endDateTime = std::forward<EndDateTimeT>(value);
120 }
121 template <typename EndDateTimeT = Aws::String>
122 ImportTask& WithEndDateTime(EndDateTimeT&& value) {
123 SetEndDateTime(std::forward<EndDateTimeT>(value));
124 return *this;
125 }
127
129
132 inline ImportStatus GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(ImportStatus value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
148 inline double GetProgressPercentage() const { return m_progressPercentage; }
149 inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; }
150 inline void SetProgressPercentage(double value) {
151 m_progressPercentageHasBeenSet = true;
152 m_progressPercentage = value;
153 }
154 inline ImportTask& WithProgressPercentage(double value) {
156 return *this;
157 }
159
161
164 inline const ImportTaskSummary& GetSummary() const { return m_summary; }
165 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
166 template <typename SummaryT = ImportTaskSummary>
167 void SetSummary(SummaryT&& value) {
168 m_summaryHasBeenSet = true;
169 m_summary = std::forward<SummaryT>(value);
170 }
171 template <typename SummaryT = ImportTaskSummary>
172 ImportTask& WithSummary(SummaryT&& value) {
173 SetSummary(std::forward<SummaryT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
185 void SetTags(TagsT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags = std::forward<TagsT>(value);
188 }
189 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
190 ImportTask& WithTags(TagsT&& value) {
191 SetTags(std::forward<TagsT>(value));
192 return *this;
193 }
194 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
195 ImportTask& AddTags(TagsKeyT&& key, TagsValueT&& value) {
196 m_tagsHasBeenSet = true;
197 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_importID;
203
204 Aws::String m_arn;
205
206 S3BucketSource m_s3BucketSource;
207
208 Aws::String m_creationDateTime;
209
210 Aws::String m_endDateTime;
211
213
214 double m_progressPercentage{0.0};
215
216 ImportTaskSummary m_summary;
217
219 bool m_importIDHasBeenSet = false;
220 bool m_arnHasBeenSet = false;
221 bool m_s3BucketSourceHasBeenSet = false;
222 bool m_creationDateTimeHasBeenSet = false;
223 bool m_endDateTimeHasBeenSet = false;
224 bool m_statusHasBeenSet = false;
225 bool m_progressPercentageHasBeenSet = false;
226 bool m_summaryHasBeenSet = false;
227 bool m_tagsHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace mgn
232} // namespace Aws
ImportStatus GetStatus() const
Definition ImportTask.h:132
const ImportTaskSummary & GetSummary() const
Definition ImportTask.h:164
const Aws::String & GetCreationDateTime() const
Definition ImportTask.h:96
ImportTask & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition ImportTask.h:195
AWS_MGN_API ImportTask()=default
double GetProgressPercentage() const
Definition ImportTask.h:148
const Aws::String & GetEndDateTime() const
Definition ImportTask.h:114
void SetS3BucketSource(S3BucketSourceT &&value)
Definition ImportTask.h:81
const Aws::String & GetArn() const
Definition ImportTask.h:60
ImportTask & WithTags(TagsT &&value)
Definition ImportTask.h:190
void SetTags(TagsT &&value)
Definition ImportTask.h:185
const Aws::String & GetImportID() const
Definition ImportTask.h:42
ImportTask & WithSummary(SummaryT &&value)
Definition ImportTask.h:172
bool EndDateTimeHasBeenSet() const
Definition ImportTask.h:115
ImportTask & WithS3BucketSource(S3BucketSourceT &&value)
Definition ImportTask.h:86
void SetSummary(SummaryT &&value)
Definition ImportTask.h:167
void SetImportID(ImportIDT &&value)
Definition ImportTask.h:45
ImportTask & WithArn(ArnT &&value)
Definition ImportTask.h:68
AWS_MGN_API ImportTask & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ImportStatus value)
Definition ImportTask.h:134
ImportTask & WithCreationDateTime(CreationDateTimeT &&value)
Definition ImportTask.h:104
void SetEndDateTime(EndDateTimeT &&value)
Definition ImportTask.h:117
ImportTask & WithEndDateTime(EndDateTimeT &&value)
Definition ImportTask.h:122
ImportTask & WithImportID(ImportIDT &&value)
Definition ImportTask.h:50
bool ImportIDHasBeenSet() const
Definition ImportTask.h:43
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition ImportTask.h:182
bool S3BucketSourceHasBeenSet() const
Definition ImportTask.h:79
void SetCreationDateTime(CreationDateTimeT &&value)
Definition ImportTask.h:99
AWS_MGN_API ImportTask(Aws::Utils::Json::JsonView jsonValue)
void SetProgressPercentage(double value)
Definition ImportTask.h:150
bool ProgressPercentageHasBeenSet() const
Definition ImportTask.h:149
bool CreationDateTimeHasBeenSet() const
Definition ImportTask.h:97
const S3BucketSource & GetS3BucketSource() const
Definition ImportTask.h:78
ImportTask & WithProgressPercentage(double value)
Definition ImportTask.h:154
void SetArn(ArnT &&value)
Definition ImportTask.h:63
ImportTask & WithStatus(ImportStatus value)
Definition ImportTask.h:138
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue