AWS SDK for C++  1.9.68
AWS SDK for C++
ExportTask.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
14 #include <aws/ec2/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
30 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::String& GetDescription() const{ return m_description; }
51 
55  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 
60  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 
65  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 
70  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
71 
75  inline ExportTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 
80  inline ExportTask& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 
85  inline ExportTask& WithDescription(const char* value) { SetDescription(value); return *this;}
86 
87 
91  inline const Aws::String& GetExportTaskId() const{ return m_exportTaskId; }
92 
96  inline bool ExportTaskIdHasBeenSet() const { return m_exportTaskIdHasBeenSet; }
97 
101  inline void SetExportTaskId(const Aws::String& value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId = value; }
102 
106  inline void SetExportTaskId(Aws::String&& value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId = std::move(value); }
107 
111  inline void SetExportTaskId(const char* value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId.assign(value); }
112 
116  inline ExportTask& WithExportTaskId(const Aws::String& value) { SetExportTaskId(value); return *this;}
117 
121  inline ExportTask& WithExportTaskId(Aws::String&& value) { SetExportTaskId(std::move(value)); return *this;}
122 
126  inline ExportTask& WithExportTaskId(const char* value) { SetExportTaskId(value); return *this;}
127 
128 
132  inline const ExportToS3Task& GetExportToS3Task() const{ return m_exportToS3Task; }
133 
137  inline bool ExportToS3TaskHasBeenSet() const { return m_exportToS3TaskHasBeenSet; }
138 
142  inline void SetExportToS3Task(const ExportToS3Task& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = value; }
143 
147  inline void SetExportToS3Task(ExportToS3Task&& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = std::move(value); }
148 
152  inline ExportTask& WithExportToS3Task(const ExportToS3Task& value) { SetExportToS3Task(value); return *this;}
153 
157  inline ExportTask& WithExportToS3Task(ExportToS3Task&& value) { SetExportToS3Task(std::move(value)); return *this;}
158 
159 
163  inline const InstanceExportDetails& GetInstanceExportDetails() const{ return m_instanceExportDetails; }
164 
168  inline bool InstanceExportDetailsHasBeenSet() const { return m_instanceExportDetailsHasBeenSet; }
169 
173  inline void SetInstanceExportDetails(const InstanceExportDetails& value) { m_instanceExportDetailsHasBeenSet = true; m_instanceExportDetails = value; }
174 
178  inline void SetInstanceExportDetails(InstanceExportDetails&& value) { m_instanceExportDetailsHasBeenSet = true; m_instanceExportDetails = std::move(value); }
179 
183  inline ExportTask& WithInstanceExportDetails(const InstanceExportDetails& value) { SetInstanceExportDetails(value); return *this;}
184 
188  inline ExportTask& WithInstanceExportDetails(InstanceExportDetails&& value) { SetInstanceExportDetails(std::move(value)); return *this;}
189 
190 
194  inline const ExportTaskState& GetState() const{ return m_state; }
195 
199  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
200 
204  inline void SetState(const ExportTaskState& value) { m_stateHasBeenSet = true; m_state = value; }
205 
209  inline void SetState(ExportTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
210 
214  inline ExportTask& WithState(const ExportTaskState& value) { SetState(value); return *this;}
215 
219  inline ExportTask& WithState(ExportTaskState&& value) { SetState(std::move(value)); return *this;}
220 
221 
225  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
226 
230  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
231 
235  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
236 
240  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
241 
245  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
246 
250  inline ExportTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
251 
255  inline ExportTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
256 
260  inline ExportTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
261 
262 
266  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
267 
271  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
272 
276  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
277 
281  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
282 
286  inline ExportTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
287 
291  inline ExportTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
292 
296  inline ExportTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
297 
301  inline ExportTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
302 
303  private:
304 
305  Aws::String m_description;
306  bool m_descriptionHasBeenSet;
307 
308  Aws::String m_exportTaskId;
309  bool m_exportTaskIdHasBeenSet;
310 
311  ExportToS3Task m_exportToS3Task;
312  bool m_exportToS3TaskHasBeenSet;
313 
314  InstanceExportDetails m_instanceExportDetails;
315  bool m_instanceExportDetailsHasBeenSet;
316 
317  ExportTaskState m_state;
318  bool m_stateHasBeenSet;
319 
320  Aws::String m_statusMessage;
321  bool m_statusMessageHasBeenSet;
322 
323  Aws::Vector<Tag> m_tags;
324  bool m_tagsHasBeenSet;
325  };
326 
327 } // namespace Model
328 } // namespace EC2
329 } // namespace Aws
InstanceExportDetails.h
Aws::EC2::Model::ExportTask::WithStatusMessage
ExportTask & WithStatusMessage(const Aws::String &value)
Definition: ExportTask.h:250
Aws::EC2::Model::ExportTask::WithTags
ExportTask & WithTags(const Aws::Vector< Tag > &value)
Definition: ExportTask.h:286
Aws::EC2::Model::ExportTask::WithExportTaskId
ExportTask & WithExportTaskId(const char *value)
Definition: ExportTask.h:126
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::ExportTask::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: ExportTask.h:225
Aws::EC2::Model::ExportTask::SetDescription
void SetDescription(Aws::String &&value)
Definition: ExportTask.h:65
Aws::EC2::Model::ExportTask::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ExportTask.h:281
Aws::EC2::Model::ExportTask::WithTags
ExportTask & WithTags(Aws::Vector< Tag > &&value)
Definition: ExportTask.h:291
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ExportTaskState
ExportTaskState
Definition: ExportTaskState.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ExportTask::SetExportTaskId
void SetExportTaskId(const Aws::String &value)
Definition: ExportTask.h:101
Aws::EC2::Model::ExportTask::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ExportTask.h:271
AWSStreamFwd.h
Aws::EC2::Model::ExportTask::InstanceExportDetailsHasBeenSet
bool InstanceExportDetailsHasBeenSet() const
Definition: ExportTask.h:168
ExportToS3Task.h
AWSVector.h
Tag.h
Aws::EC2::Model::ExportTask::WithState
ExportTask & WithState(ExportTaskState &&value)
Definition: ExportTask.h:219
Aws::EC2::Model::InstanceExportDetails
Definition: InstanceExportDetails.h:33
Aws::EC2::Model::ExportTask::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: ExportTask.h:245
Aws::EC2::Model::ExportTask::SetExportTaskId
void SetExportTaskId(Aws::String &&value)
Definition: ExportTask.h:106
Aws::EC2::Model::ExportTask::GetExportTaskId
const Aws::String & GetExportTaskId() const
Definition: ExportTask.h:91
Aws::EC2::Model::ExportTask::SetInstanceExportDetails
void SetInstanceExportDetails(const InstanceExportDetails &value)
Definition: ExportTask.h:173
Aws::EC2::Model::ExportTask::WithStatusMessage
ExportTask & WithStatusMessage(const char *value)
Definition: ExportTask.h:260
Aws::EC2::Model::ExportTask::StatusMessageHasBeenSet
bool StatusMessageHasBeenSet() const
Definition: ExportTask.h:230
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ExportTask::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ExportTask.h:55
Aws::EC2::Model::ExportTask::GetInstanceExportDetails
const InstanceExportDetails & GetInstanceExportDetails() const
Definition: ExportTask.h:163
Aws::EC2::Model::ExportTask::WithExportToS3Task
ExportTask & WithExportToS3Task(ExportToS3Task &&value)
Definition: ExportTask.h:157
Aws::EC2::Model::ExportToS3Task
Definition: ExportToS3Task.h:35
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ExportTask::GetExportToS3Task
const ExportToS3Task & GetExportToS3Task() const
Definition: ExportTask.h:132
Aws::EC2::Model::ExportTask::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ExportTask::WithDescription
ExportTask & WithDescription(const char *value)
Definition: ExportTask.h:85
Aws::EC2::Model::ExportTask::WithInstanceExportDetails
ExportTask & WithInstanceExportDetails(InstanceExportDetails &&value)
Definition: ExportTask.h:188
Aws::EC2::Model::ExportTask::GetState
const ExportTaskState & GetState() const
Definition: ExportTask.h:194
Aws::EC2::Model::ExportTask::AddTags
ExportTask & AddTags(Tag &&value)
Definition: ExportTask.h:301
Aws::EC2::Model::ExportTask::SetInstanceExportDetails
void SetInstanceExportDetails(InstanceExportDetails &&value)
Definition: ExportTask.h:178
Aws::EC2::Model::ExportTask::WithExportToS3Task
ExportTask & WithExportToS3Task(const ExportToS3Task &value)
Definition: ExportTask.h:152
Aws::EC2::Model::ExportTask::GetDescription
const Aws::String & GetDescription() const
Definition: ExportTask.h:50
Aws::EC2::Model::ExportTask::WithDescription
ExportTask & WithDescription(Aws::String &&value)
Definition: ExportTask.h:80
Aws::EC2::Model::ExportTask::ExportTaskIdHasBeenSet
bool ExportTaskIdHasBeenSet() const
Definition: ExportTask.h:96
AWSString.h
Aws::EC2::Model::ExportTask::SetExportToS3Task
void SetExportToS3Task(ExportToS3Task &&value)
Definition: ExportTask.h:147
Aws::EC2::Model::ExportTask::AddTags
ExportTask & AddTags(const Tag &value)
Definition: ExportTask.h:296
ExportTaskState.h
Aws::EC2::Model::ExportTask::SetExportToS3Task
void SetExportToS3Task(const ExportToS3Task &value)
Definition: ExportTask.h:142
Aws::EC2::Model::ExportTask::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ExportTask.h:276
Aws::EC2::Model::ExportTask::SetState
void SetState(ExportTaskState &&value)
Definition: ExportTask.h:209
Aws::EC2::Model::ExportTask::StateHasBeenSet
bool StateHasBeenSet() const
Definition: ExportTask.h:199
Aws::EC2::Model::ExportTask::WithExportTaskId
ExportTask & WithExportTaskId(Aws::String &&value)
Definition: ExportTask.h:121
Aws::EC2::Model::ExportTask::SetDescription
void SetDescription(const char *value)
Definition: ExportTask.h:70
Aws::EC2::Model::ExportTask::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: ExportTask.h:240
Aws::EC2::Model::ExportTask::ExportTask
ExportTask(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ExportTask::SetState
void SetState(const ExportTaskState &value)
Definition: ExportTask.h:204
Aws::EC2::Model::ExportTask::ExportTask
ExportTask()
Aws::EC2::Model::ExportTask::operator=
ExportTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ExportTask::WithDescription
ExportTask & WithDescription(const Aws::String &value)
Definition: ExportTask.h:75
Aws::EC2::Model::ExportTask::SetExportTaskId
void SetExportTaskId(const char *value)
Definition: ExportTask.h:111
Aws::EC2::Model::ExportTask::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: ExportTask.h:235
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ExportTask::WithExportTaskId
ExportTask & WithExportTaskId(const Aws::String &value)
Definition: ExportTask.h:116
Aws::EC2::Model::ExportTask::WithState
ExportTask & WithState(const ExportTaskState &value)
Definition: ExportTask.h:214
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ExportTask
Definition: ExportTask.h:37
Aws::EC2::Model::ExportTask::ExportToS3TaskHasBeenSet
bool ExportToS3TaskHasBeenSet() const
Definition: ExportTask.h:137
Aws::EC2::Model::ExportTask::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ExportTask.h:266
Aws::EC2::Model::ExportTask::SetDescription
void SetDescription(const Aws::String &value)
Definition: ExportTask.h:60
Aws::EC2::Model::ExportTask::WithInstanceExportDetails
ExportTask & WithInstanceExportDetails(const InstanceExportDetails &value)
Definition: ExportTask.h:183
Aws::EC2::Model::ExportTask::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::ExportTask::WithStatusMessage
ExportTask & WithStatusMessage(Aws::String &&value)
Definition: ExportTask.h:255