AWS SDK for C++  1.9.132
AWS SDK for C++
ReplaceRootVolumeTask.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetReplaceRootVolumeTaskId() const{ return m_replaceRootVolumeTaskId; }
50 
54  inline bool ReplaceRootVolumeTaskIdHasBeenSet() const { return m_replaceRootVolumeTaskIdHasBeenSet; }
55 
59  inline void SetReplaceRootVolumeTaskId(const Aws::String& value) { m_replaceRootVolumeTaskIdHasBeenSet = true; m_replaceRootVolumeTaskId = value; }
60 
64  inline void SetReplaceRootVolumeTaskId(Aws::String&& value) { m_replaceRootVolumeTaskIdHasBeenSet = true; m_replaceRootVolumeTaskId = std::move(value); }
65 
69  inline void SetReplaceRootVolumeTaskId(const char* value) { m_replaceRootVolumeTaskIdHasBeenSet = true; m_replaceRootVolumeTaskId.assign(value); }
70 
74  inline ReplaceRootVolumeTask& WithReplaceRootVolumeTaskId(const Aws::String& value) { SetReplaceRootVolumeTaskId(value); return *this;}
75 
79  inline ReplaceRootVolumeTask& WithReplaceRootVolumeTaskId(Aws::String&& value) { SetReplaceRootVolumeTaskId(std::move(value)); return *this;}
80 
84  inline ReplaceRootVolumeTask& WithReplaceRootVolumeTaskId(const char* value) { SetReplaceRootVolumeTaskId(value); return *this;}
85 
86 
91  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
92 
97  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
98 
103  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
104 
109  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
110 
115  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
116 
121  inline ReplaceRootVolumeTask& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
122 
127  inline ReplaceRootVolumeTask& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
128 
133  inline ReplaceRootVolumeTask& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
134 
135 
151  inline const ReplaceRootVolumeTaskState& GetTaskState() const{ return m_taskState; }
152 
168  inline bool TaskStateHasBeenSet() const { return m_taskStateHasBeenSet; }
169 
185  inline void SetTaskState(const ReplaceRootVolumeTaskState& value) { m_taskStateHasBeenSet = true; m_taskState = value; }
186 
202  inline void SetTaskState(ReplaceRootVolumeTaskState&& value) { m_taskStateHasBeenSet = true; m_taskState = std::move(value); }
203 
219  inline ReplaceRootVolumeTask& WithTaskState(const ReplaceRootVolumeTaskState& value) { SetTaskState(value); return *this;}
220 
236  inline ReplaceRootVolumeTask& WithTaskState(ReplaceRootVolumeTaskState&& value) { SetTaskState(std::move(value)); return *this;}
237 
238 
242  inline const Aws::String& GetStartTime() const{ return m_startTime; }
243 
247  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
248 
252  inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
253 
257  inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
258 
262  inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
263 
267  inline ReplaceRootVolumeTask& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
268 
272  inline ReplaceRootVolumeTask& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;}
273 
277  inline ReplaceRootVolumeTask& WithStartTime(const char* value) { SetStartTime(value); return *this;}
278 
279 
283  inline const Aws::String& GetCompleteTime() const{ return m_completeTime; }
284 
288  inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; }
289 
293  inline void SetCompleteTime(const Aws::String& value) { m_completeTimeHasBeenSet = true; m_completeTime = value; }
294 
298  inline void SetCompleteTime(Aws::String&& value) { m_completeTimeHasBeenSet = true; m_completeTime = std::move(value); }
299 
303  inline void SetCompleteTime(const char* value) { m_completeTimeHasBeenSet = true; m_completeTime.assign(value); }
304 
308  inline ReplaceRootVolumeTask& WithCompleteTime(const Aws::String& value) { SetCompleteTime(value); return *this;}
309 
313  inline ReplaceRootVolumeTask& WithCompleteTime(Aws::String&& value) { SetCompleteTime(std::move(value)); return *this;}
314 
318  inline ReplaceRootVolumeTask& WithCompleteTime(const char* value) { SetCompleteTime(value); return *this;}
319 
320 
324  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
325 
329  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
330 
334  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
335 
339  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
340 
344  inline ReplaceRootVolumeTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
345 
349  inline ReplaceRootVolumeTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
350 
354  inline ReplaceRootVolumeTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
355 
359  inline ReplaceRootVolumeTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
360 
361  private:
362 
363  Aws::String m_replaceRootVolumeTaskId;
364  bool m_replaceRootVolumeTaskIdHasBeenSet;
365 
366  Aws::String m_instanceId;
367  bool m_instanceIdHasBeenSet;
368 
369  ReplaceRootVolumeTaskState m_taskState;
370  bool m_taskStateHasBeenSet;
371 
372  Aws::String m_startTime;
373  bool m_startTimeHasBeenSet;
374 
375  Aws::String m_completeTime;
376  bool m_completeTimeHasBeenSet;
377 
378  Aws::Vector<Tag> m_tags;
379  bool m_tagsHasBeenSet;
380  };
381 
382 } // namespace Model
383 } // namespace EC2
384 } // namespace Aws
Aws::EC2::Model::ReplaceRootVolumeTask::WithStartTime
ReplaceRootVolumeTask & WithStartTime(const Aws::String &value)
Definition: ReplaceRootVolumeTask.h:267
Aws::EC2::Model::ReplaceRootVolumeTask::GetStartTime
const Aws::String & GetStartTime() const
Definition: ReplaceRootVolumeTask.h:242
Aws::EC2::Model::ReplaceRootVolumeTask::WithCompleteTime
ReplaceRootVolumeTask & WithCompleteTime(Aws::String &&value)
Definition: ReplaceRootVolumeTask.h:313
Aws::EC2::Model::ReplaceRootVolumeTask::SetReplaceRootVolumeTaskId
void SetReplaceRootVolumeTaskId(const Aws::String &value)
Definition: ReplaceRootVolumeTask.h:59
Aws::EC2::Model::ReplaceRootVolumeTask::WithTags
ReplaceRootVolumeTask & WithTags(const Aws::Vector< Tag > &value)
Definition: ReplaceRootVolumeTask.h:344
Aws::EC2::Model::ReplaceRootVolumeTask::SetInstanceId
void SetInstanceId(const char *value)
Definition: ReplaceRootVolumeTask.h:115
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::ReplaceRootVolumeTask::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ReplaceRootVolumeTask.h:334
Aws::EC2::Model::ReplaceRootVolumeTask::ReplaceRootVolumeTask
ReplaceRootVolumeTask(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ReplaceRootVolumeTask::SetReplaceRootVolumeTaskId
void SetReplaceRootVolumeTaskId(Aws::String &&value)
Definition: ReplaceRootVolumeTask.h:64
Aws::EC2::Model::ReplaceRootVolumeTaskState
ReplaceRootVolumeTaskState
Definition: ReplaceRootVolumeTaskState.h:17
Aws::EC2::Model::ReplaceRootVolumeTask::SetCompleteTime
void SetCompleteTime(Aws::String &&value)
Definition: ReplaceRootVolumeTask.h:298
Aws::EC2::Model::ReplaceRootVolumeTask::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ReplaceRootVolumeTask.h:109
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ReplaceRootVolumeTask::GetReplaceRootVolumeTaskId
const Aws::String & GetReplaceRootVolumeTaskId() const
Definition: ReplaceRootVolumeTask.h:49
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ReplaceRootVolumeTask::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ReplaceRootVolumeTask.h:324
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::ReplaceRootVolumeTask::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ReplaceRootVolumeTask::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ReplaceRootVolumeTask.h:91
Aws::EC2::Model::ReplaceRootVolumeTask::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ReplaceRootVolumeTask.h:339
Aws::EC2::Model::ReplaceRootVolumeTask::TaskStateHasBeenSet
bool TaskStateHasBeenSet() const
Definition: ReplaceRootVolumeTask.h:168
Aws::EC2::Model::ReplaceRootVolumeTask::SetReplaceRootVolumeTaskId
void SetReplaceRootVolumeTaskId(const char *value)
Definition: ReplaceRootVolumeTask.h:69
Aws::EC2::Model::ReplaceRootVolumeTask::WithStartTime
ReplaceRootVolumeTask & WithStartTime(Aws::String &&value)
Definition: ReplaceRootVolumeTask.h:272
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ReplaceRootVolumeTask::GetCompleteTime
const Aws::String & GetCompleteTime() const
Definition: ReplaceRootVolumeTask.h:283
Aws::EC2::Model::ReplaceRootVolumeTask::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ReplaceRootVolumeTask.h:329
Aws::EC2::Model::ReplaceRootVolumeTask::WithReplaceRootVolumeTaskId
ReplaceRootVolumeTask & WithReplaceRootVolumeTaskId(const Aws::String &value)
Definition: ReplaceRootVolumeTask.h:74
Aws::EC2::Model::ReplaceRootVolumeTask::WithTags
ReplaceRootVolumeTask & WithTags(Aws::Vector< Tag > &&value)
Definition: ReplaceRootVolumeTask.h:349
Aws::EC2::Model::ReplaceRootVolumeTask::ReplaceRootVolumeTask
ReplaceRootVolumeTask()
Aws::EC2::Model::ReplaceRootVolumeTask::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ReplaceRootVolumeTask.h:97
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ReplaceRootVolumeTask::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: ReplaceRootVolumeTask.h:247
Aws::EC2::Model::ReplaceRootVolumeTask::GetTaskState
const ReplaceRootVolumeTaskState & GetTaskState() const
Definition: ReplaceRootVolumeTask.h:151
Aws::EC2::Model::ReplaceRootVolumeTask::AddTags
ReplaceRootVolumeTask & AddTags(const Tag &value)
Definition: ReplaceRootVolumeTask.h:354
Aws::EC2::Model::ReplaceRootVolumeTask::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ReplaceRootVolumeTask::WithStartTime
ReplaceRootVolumeTask & WithStartTime(const char *value)
Definition: ReplaceRootVolumeTask.h:277
AWSString.h
Aws::EC2::Model::ReplaceRootVolumeTask::WithCompleteTime
ReplaceRootVolumeTask & WithCompleteTime(const char *value)
Definition: ReplaceRootVolumeTask.h:318
ReplaceRootVolumeTaskState.h
Aws::EC2::Model::ReplaceRootVolumeTask::SetStartTime
void SetStartTime(const Aws::String &value)
Definition: ReplaceRootVolumeTask.h:252
Aws::EC2::Model::ReplaceRootVolumeTask::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ReplaceRootVolumeTask.h:103
Aws::EC2::Model::ReplaceRootVolumeTask::AddTags
ReplaceRootVolumeTask & AddTags(Tag &&value)
Definition: ReplaceRootVolumeTask.h:359
Aws::EC2::Model::ReplaceRootVolumeTask::WithInstanceId
ReplaceRootVolumeTask & WithInstanceId(const char *value)
Definition: ReplaceRootVolumeTask.h:133
Aws::EC2::Model::ReplaceRootVolumeTask::operator=
ReplaceRootVolumeTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ReplaceRootVolumeTask::WithCompleteTime
ReplaceRootVolumeTask & WithCompleteTime(const Aws::String &value)
Definition: ReplaceRootVolumeTask.h:308
Aws::EC2::Model::ReplaceRootVolumeTask::WithReplaceRootVolumeTaskId
ReplaceRootVolumeTask & WithReplaceRootVolumeTaskId(Aws::String &&value)
Definition: ReplaceRootVolumeTask.h:79
Aws::EC2::Model::ReplaceRootVolumeTask::WithInstanceId
ReplaceRootVolumeTask & WithInstanceId(const Aws::String &value)
Definition: ReplaceRootVolumeTask.h:121
Aws::EC2::Model::ReplaceRootVolumeTask::SetStartTime
void SetStartTime(Aws::String &&value)
Definition: ReplaceRootVolumeTask.h:257
Aws::EC2::Model::ReplaceRootVolumeTask::SetCompleteTime
void SetCompleteTime(const char *value)
Definition: ReplaceRootVolumeTask.h:303
Aws::EC2::Model::ReplaceRootVolumeTask::WithInstanceId
ReplaceRootVolumeTask & WithInstanceId(Aws::String &&value)
Definition: ReplaceRootVolumeTask.h:127
Aws::EC2::Model::ReplaceRootVolumeTask::WithTaskState
ReplaceRootVolumeTask & WithTaskState(ReplaceRootVolumeTaskState &&value)
Definition: ReplaceRootVolumeTask.h:236
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ReplaceRootVolumeTask::CompleteTimeHasBeenSet
bool CompleteTimeHasBeenSet() const
Definition: ReplaceRootVolumeTask.h:288
Aws::EC2::Model::ReplaceRootVolumeTask::ReplaceRootVolumeTaskIdHasBeenSet
bool ReplaceRootVolumeTaskIdHasBeenSet() const
Definition: ReplaceRootVolumeTask.h:54
Aws::EC2::Model::ReplaceRootVolumeTask::SetTaskState
void SetTaskState(const ReplaceRootVolumeTaskState &value)
Definition: ReplaceRootVolumeTask.h:185
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::ReplaceRootVolumeTask::SetCompleteTime
void SetCompleteTime(const Aws::String &value)
Definition: ReplaceRootVolumeTask.h:293
Aws::EC2::Model::ReplaceRootVolumeTask
Definition: ReplaceRootVolumeTask.h:36
Aws::EC2::Model::ReplaceRootVolumeTask::SetStartTime
void SetStartTime(const char *value)
Definition: ReplaceRootVolumeTask.h:262
EC2_EXPORTS.h
Aws::EC2::Model::ReplaceRootVolumeTask::SetTaskState
void SetTaskState(ReplaceRootVolumeTaskState &&value)
Definition: ReplaceRootVolumeTask.h:202
Aws::EC2::Model::ReplaceRootVolumeTask::WithTaskState
ReplaceRootVolumeTask & WithTaskState(const ReplaceRootVolumeTaskState &value)
Definition: ReplaceRootVolumeTask.h:219
Aws::EC2::Model::ReplaceRootVolumeTask::WithReplaceRootVolumeTaskId
ReplaceRootVolumeTask & WithReplaceRootVolumeTaskId(const char *value)
Definition: ReplaceRootVolumeTask.h:84