AWS SDK for C++  1.9.72
AWS SDK for C++
ConversionTask.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& GetConversionTaskId() const{ return m_conversionTaskId; }
51 
55  inline bool ConversionTaskIdHasBeenSet() const { return m_conversionTaskIdHasBeenSet; }
56 
60  inline void SetConversionTaskId(const Aws::String& value) { m_conversionTaskIdHasBeenSet = true; m_conversionTaskId = value; }
61 
65  inline void SetConversionTaskId(Aws::String&& value) { m_conversionTaskIdHasBeenSet = true; m_conversionTaskId = std::move(value); }
66 
70  inline void SetConversionTaskId(const char* value) { m_conversionTaskIdHasBeenSet = true; m_conversionTaskId.assign(value); }
71 
75  inline ConversionTask& WithConversionTaskId(const Aws::String& value) { SetConversionTaskId(value); return *this;}
76 
80  inline ConversionTask& WithConversionTaskId(Aws::String&& value) { SetConversionTaskId(std::move(value)); return *this;}
81 
85  inline ConversionTask& WithConversionTaskId(const char* value) { SetConversionTaskId(value); return *this;}
86 
87 
92  inline const Aws::String& GetExpirationTime() const{ return m_expirationTime; }
93 
98  inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
99 
104  inline void SetExpirationTime(const Aws::String& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
105 
110  inline void SetExpirationTime(Aws::String&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
111 
116  inline void SetExpirationTime(const char* value) { m_expirationTimeHasBeenSet = true; m_expirationTime.assign(value); }
117 
122  inline ConversionTask& WithExpirationTime(const Aws::String& value) { SetExpirationTime(value); return *this;}
123 
128  inline ConversionTask& WithExpirationTime(Aws::String&& value) { SetExpirationTime(std::move(value)); return *this;}
129 
134  inline ConversionTask& WithExpirationTime(const char* value) { SetExpirationTime(value); return *this;}
135 
136 
141  inline const ImportInstanceTaskDetails& GetImportInstance() const{ return m_importInstance; }
142 
147  inline bool ImportInstanceHasBeenSet() const { return m_importInstanceHasBeenSet; }
148 
153  inline void SetImportInstance(const ImportInstanceTaskDetails& value) { m_importInstanceHasBeenSet = true; m_importInstance = value; }
154 
159  inline void SetImportInstance(ImportInstanceTaskDetails&& value) { m_importInstanceHasBeenSet = true; m_importInstance = std::move(value); }
160 
165  inline ConversionTask& WithImportInstance(const ImportInstanceTaskDetails& value) { SetImportInstance(value); return *this;}
166 
171  inline ConversionTask& WithImportInstance(ImportInstanceTaskDetails&& value) { SetImportInstance(std::move(value)); return *this;}
172 
173 
178  inline const ImportVolumeTaskDetails& GetImportVolume() const{ return m_importVolume; }
179 
184  inline bool ImportVolumeHasBeenSet() const { return m_importVolumeHasBeenSet; }
185 
190  inline void SetImportVolume(const ImportVolumeTaskDetails& value) { m_importVolumeHasBeenSet = true; m_importVolume = value; }
191 
196  inline void SetImportVolume(ImportVolumeTaskDetails&& value) { m_importVolumeHasBeenSet = true; m_importVolume = std::move(value); }
197 
202  inline ConversionTask& WithImportVolume(const ImportVolumeTaskDetails& value) { SetImportVolume(value); return *this;}
203 
208  inline ConversionTask& WithImportVolume(ImportVolumeTaskDetails&& value) { SetImportVolume(std::move(value)); return *this;}
209 
210 
214  inline const ConversionTaskState& GetState() const{ return m_state; }
215 
219  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
220 
224  inline void SetState(const ConversionTaskState& value) { m_stateHasBeenSet = true; m_state = value; }
225 
229  inline void SetState(ConversionTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
230 
234  inline ConversionTask& WithState(const ConversionTaskState& value) { SetState(value); return *this;}
235 
239  inline ConversionTask& WithState(ConversionTaskState&& value) { SetState(std::move(value)); return *this;}
240 
241 
245  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
246 
250  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
251 
255  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
256 
260  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
261 
265  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
266 
270  inline ConversionTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
271 
275  inline ConversionTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
276 
280  inline ConversionTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
281 
282 
286  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
287 
291  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
292 
296  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
297 
301  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
302 
306  inline ConversionTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
307 
311  inline ConversionTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
312 
316  inline ConversionTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
317 
321  inline ConversionTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
322 
323  private:
324 
325  Aws::String m_conversionTaskId;
326  bool m_conversionTaskIdHasBeenSet;
327 
328  Aws::String m_expirationTime;
329  bool m_expirationTimeHasBeenSet;
330 
331  ImportInstanceTaskDetails m_importInstance;
332  bool m_importInstanceHasBeenSet;
333 
334  ImportVolumeTaskDetails m_importVolume;
335  bool m_importVolumeHasBeenSet;
336 
337  ConversionTaskState m_state;
338  bool m_stateHasBeenSet;
339 
340  Aws::String m_statusMessage;
341  bool m_statusMessageHasBeenSet;
342 
343  Aws::Vector<Tag> m_tags;
344  bool m_tagsHasBeenSet;
345  };
346 
347 } // namespace Model
348 } // namespace EC2
349 } // namespace Aws
Aws::EC2::Model::ConversionTask::WithConversionTaskId
ConversionTask & WithConversionTaskId(const Aws::String &value)
Definition: ConversionTask.h:75
Aws::EC2::Model::ConversionTask::WithImportVolume
ConversionTask & WithImportVolume(ImportVolumeTaskDetails &&value)
Definition: ConversionTask.h:208
Aws::EC2::Model::ConversionTask::ExpirationTimeHasBeenSet
bool ExpirationTimeHasBeenSet() const
Definition: ConversionTask.h:98
Aws::EC2::Model::ConversionTask::WithStatusMessage
ConversionTask & WithStatusMessage(const Aws::String &value)
Definition: ConversionTask.h:270
Aws::EC2::Model::ConversionTask::ConversionTask
ConversionTask()
Aws::EC2::Model::ConversionTaskState
ConversionTaskState
Definition: ConversionTaskState.h:17
Aws::EC2::Model::ConversionTask::GetImportVolume
const ImportVolumeTaskDetails & GetImportVolume() const
Definition: ConversionTask.h:178
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::ConversionTask::GetConversionTaskId
const Aws::String & GetConversionTaskId() const
Definition: ConversionTask.h:50
Aws::EC2::Model::ConversionTask::SetExpirationTime
void SetExpirationTime(const char *value)
Definition: ConversionTask.h:116
Aws::EC2::Model::ConversionTask::WithImportInstance
ConversionTask & WithImportInstance(ImportInstanceTaskDetails &&value)
Definition: ConversionTask.h:171
ImportVolumeTaskDetails.h
Aws::EC2::Model::ConversionTask::SetState
void SetState(ConversionTaskState &&value)
Definition: ConversionTask.h:229
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ConversionTask::SetExpirationTime
void SetExpirationTime(Aws::String &&value)
Definition: ConversionTask.h:110
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ConversionTask::WithExpirationTime
ConversionTask & WithExpirationTime(const Aws::String &value)
Definition: ConversionTask.h:122
AWSStreamFwd.h
Aws::EC2::Model::ConversionTask::SetConversionTaskId
void SetConversionTaskId(const char *value)
Definition: ConversionTask.h:70
AWSVector.h
Aws::EC2::Model::ConversionTask::StateHasBeenSet
bool StateHasBeenSet() const
Definition: ConversionTask.h:219
Tag.h
ConversionTaskState.h
Aws::EC2::Model::ConversionTask::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ConversionTask.h:301
Aws::EC2::Model::ConversionTask::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: ConversionTask.h:245
Aws::EC2::Model::ConversionTask::WithTags
ConversionTask & WithTags(const Aws::Vector< Tag > &value)
Definition: ConversionTask.h:306
Aws::EC2::Model::ConversionTask::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: ConversionTask.h:265
Aws::EC2::Model::ConversionTask::WithStatusMessage
ConversionTask & WithStatusMessage(const char *value)
Definition: ConversionTask.h:280
Aws::EC2::Model::ConversionTask::WithConversionTaskId
ConversionTask & WithConversionTaskId(const char *value)
Definition: ConversionTask.h:85
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ConversionTask::operator=
ConversionTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ConversionTask::SetImportVolume
void SetImportVolume(const ImportVolumeTaskDetails &value)
Definition: ConversionTask.h:190
Aws::EC2::Model::ConversionTask::SetConversionTaskId
void SetConversionTaskId(const Aws::String &value)
Definition: ConversionTask.h:60
Aws::EC2::Model::ConversionTask::WithImportInstance
ConversionTask & WithImportInstance(const ImportInstanceTaskDetails &value)
Definition: ConversionTask.h:165
Aws::EC2::Model::ConversionTask::GetExpirationTime
const Aws::String & GetExpirationTime() const
Definition: ConversionTask.h:92
Aws::EC2::Model::ConversionTask
Definition: ConversionTask.h:37
Aws::EC2::Model::ImportVolumeTaskDetails
Definition: ImportVolumeTaskDetails.h:34
Aws::EC2::Model::ConversionTask::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ConversionTask.h:291
Aws::EC2::Model::ConversionTask::SetState
void SetState(const ConversionTaskState &value)
Definition: ConversionTask.h:224
Aws::EC2::Model::ConversionTask::SetConversionTaskId
void SetConversionTaskId(Aws::String &&value)
Definition: ConversionTask.h:65
AWSString.h
Aws::EC2::Model::ConversionTask::ConversionTaskIdHasBeenSet
bool ConversionTaskIdHasBeenSet() const
Definition: ConversionTask.h:55
Aws::EC2::Model::ConversionTask::ConversionTask
ConversionTask(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ConversionTask::WithState
ConversionTask & WithState(const ConversionTaskState &value)
Definition: ConversionTask.h:234
Aws::EC2::Model::ConversionTask::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ConversionTask.h:286
Aws::EC2::Model::ConversionTask::AddTags
ConversionTask & AddTags(Tag &&value)
Definition: ConversionTask.h:321
Aws::EC2::Model::ConversionTask::WithExpirationTime
ConversionTask & WithExpirationTime(Aws::String &&value)
Definition: ConversionTask.h:128
Aws::EC2::Model::ConversionTask::WithConversionTaskId
ConversionTask & WithConversionTaskId(Aws::String &&value)
Definition: ConversionTask.h:80
Aws::EC2::Model::ConversionTask::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: ConversionTask.h:255
Aws::EC2::Model::ConversionTask::SetImportInstance
void SetImportInstance(ImportInstanceTaskDetails &&value)
Definition: ConversionTask.h:159
Aws::EC2::Model::ConversionTask::WithStatusMessage
ConversionTask & WithStatusMessage(Aws::String &&value)
Definition: ConversionTask.h:275
Aws::EC2::Model::ConversionTask::WithTags
ConversionTask & WithTags(Aws::Vector< Tag > &&value)
Definition: ConversionTask.h:311
Aws::EC2::Model::ConversionTask::SetImportInstance
void SetImportInstance(const ImportInstanceTaskDetails &value)
Definition: ConversionTask.h:153
Aws::EC2::Model::ConversionTask::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
ImportInstanceTaskDetails.h
Aws::EC2::Model::ConversionTask::AddTags
ConversionTask & AddTags(const Tag &value)
Definition: ConversionTask.h:316
Aws::EC2::Model::ConversionTask::ImportVolumeHasBeenSet
bool ImportVolumeHasBeenSet() const
Definition: ConversionTask.h:184
Aws::EC2::Model::ConversionTask::WithImportVolume
ConversionTask & WithImportVolume(const ImportVolumeTaskDetails &value)
Definition: ConversionTask.h:202
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ConversionTask::GetImportInstance
const ImportInstanceTaskDetails & GetImportInstance() const
Definition: ConversionTask.h:141
Aws::EC2::Model::ConversionTask::WithState
ConversionTask & WithState(ConversionTaskState &&value)
Definition: ConversionTask.h:239
Aws::EC2::Model::ImportInstanceTaskDetails
Definition: ImportInstanceTaskDetails.h:35
Aws::EC2::Model::ConversionTask::StatusMessageHasBeenSet
bool StatusMessageHasBeenSet() const
Definition: ConversionTask.h:250
Aws::EC2::Model::ConversionTask::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: ConversionTask.h:260
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ConversionTask::SetExpirationTime
void SetExpirationTime(const Aws::String &value)
Definition: ConversionTask.h:104
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ConversionTask::ImportInstanceHasBeenSet
bool ImportInstanceHasBeenSet() const
Definition: ConversionTask.h:147
Aws::EC2::Model::ConversionTask::GetState
const ConversionTaskState & GetState() const
Definition: ConversionTask.h:214
Aws::EC2::Model::ConversionTask::WithExpirationTime
ConversionTask & WithExpirationTime(const char *value)
Definition: ConversionTask.h:134
Aws::EC2::Model::ConversionTask::SetImportVolume
void SetImportVolume(ImportVolumeTaskDetails &&value)
Definition: ConversionTask.h:196
EC2_EXPORTS.h
Aws::EC2::Model::ConversionTask::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ConversionTask::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ConversionTask.h:296