AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplaceRootVolumeTask.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ReplaceRootVolumeTaskState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API ReplaceRootVolumeTask();
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetReplaceRootVolumeTaskId() const{ return m_replaceRootVolumeTaskId; }
51 inline bool ReplaceRootVolumeTaskIdHasBeenSet() const { return m_replaceRootVolumeTaskIdHasBeenSet; }
52 inline void SetReplaceRootVolumeTaskId(const Aws::String& value) { m_replaceRootVolumeTaskIdHasBeenSet = true; m_replaceRootVolumeTaskId = value; }
53 inline void SetReplaceRootVolumeTaskId(Aws::String&& value) { m_replaceRootVolumeTaskIdHasBeenSet = true; m_replaceRootVolumeTaskId = std::move(value); }
54 inline void SetReplaceRootVolumeTaskId(const char* value) { m_replaceRootVolumeTaskIdHasBeenSet = true; m_replaceRootVolumeTaskId.assign(value); }
57 inline ReplaceRootVolumeTask& WithReplaceRootVolumeTaskId(const char* value) { SetReplaceRootVolumeTaskId(value); return *this;}
59
61
65 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
66 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
67 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
68 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
69 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
70 inline ReplaceRootVolumeTask& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
71 inline ReplaceRootVolumeTask& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
72 inline ReplaceRootVolumeTask& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
74
76
91 inline const ReplaceRootVolumeTaskState& GetTaskState() const{ return m_taskState; }
92 inline bool TaskStateHasBeenSet() const { return m_taskStateHasBeenSet; }
93 inline void SetTaskState(const ReplaceRootVolumeTaskState& value) { m_taskStateHasBeenSet = true; m_taskState = value; }
94 inline void SetTaskState(ReplaceRootVolumeTaskState&& value) { m_taskStateHasBeenSet = true; m_taskState = std::move(value); }
95 inline ReplaceRootVolumeTask& WithTaskState(const ReplaceRootVolumeTaskState& value) { SetTaskState(value); return *this;}
96 inline ReplaceRootVolumeTask& WithTaskState(ReplaceRootVolumeTaskState&& value) { SetTaskState(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetStartTime() const{ return m_startTime; }
104 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
105 inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
106 inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
107 inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
108 inline ReplaceRootVolumeTask& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
109 inline ReplaceRootVolumeTask& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;}
110 inline ReplaceRootVolumeTask& WithStartTime(const char* value) { SetStartTime(value); return *this;}
112
114
117 inline const Aws::String& GetCompleteTime() const{ return m_completeTime; }
118 inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; }
119 inline void SetCompleteTime(const Aws::String& value) { m_completeTimeHasBeenSet = true; m_completeTime = value; }
120 inline void SetCompleteTime(Aws::String&& value) { m_completeTimeHasBeenSet = true; m_completeTime = std::move(value); }
121 inline void SetCompleteTime(const char* value) { m_completeTimeHasBeenSet = true; m_completeTime.assign(value); }
122 inline ReplaceRootVolumeTask& WithCompleteTime(const Aws::String& value) { SetCompleteTime(value); return *this;}
123 inline ReplaceRootVolumeTask& WithCompleteTime(Aws::String&& value) { SetCompleteTime(std::move(value)); return *this;}
124 inline ReplaceRootVolumeTask& WithCompleteTime(const char* value) { SetCompleteTime(value); return *this;}
126
128
131 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
135 inline ReplaceRootVolumeTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
136 inline ReplaceRootVolumeTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
137 inline ReplaceRootVolumeTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
138 inline ReplaceRootVolumeTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
140
142
145 inline const Aws::String& GetImageId() const{ return m_imageId; }
146 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
147 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
148 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
149 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
150 inline ReplaceRootVolumeTask& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
151 inline ReplaceRootVolumeTask& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
152 inline ReplaceRootVolumeTask& WithImageId(const char* value) { SetImageId(value); return *this;}
154
156
159 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
160 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
161 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
162 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
163 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
164 inline ReplaceRootVolumeTask& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
165 inline ReplaceRootVolumeTask& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
166 inline ReplaceRootVolumeTask& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
168
170
174 inline bool GetDeleteReplacedRootVolume() const{ return m_deleteReplacedRootVolume; }
175 inline bool DeleteReplacedRootVolumeHasBeenSet() const { return m_deleteReplacedRootVolumeHasBeenSet; }
176 inline void SetDeleteReplacedRootVolume(bool value) { m_deleteReplacedRootVolumeHasBeenSet = true; m_deleteReplacedRootVolume = value; }
179 private:
180
181 Aws::String m_replaceRootVolumeTaskId;
182 bool m_replaceRootVolumeTaskIdHasBeenSet = false;
183
184 Aws::String m_instanceId;
185 bool m_instanceIdHasBeenSet = false;
186
187 ReplaceRootVolumeTaskState m_taskState;
188 bool m_taskStateHasBeenSet = false;
189
190 Aws::String m_startTime;
191 bool m_startTimeHasBeenSet = false;
192
193 Aws::String m_completeTime;
194 bool m_completeTimeHasBeenSet = false;
195
196 Aws::Vector<Tag> m_tags;
197 bool m_tagsHasBeenSet = false;
198
199 Aws::String m_imageId;
200 bool m_imageIdHasBeenSet = false;
201
202 Aws::String m_snapshotId;
203 bool m_snapshotIdHasBeenSet = false;
204
205 bool m_deleteReplacedRootVolume;
206 bool m_deleteReplacedRootVolumeHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace EC2
211} // namespace Aws
ReplaceRootVolumeTask & WithReplaceRootVolumeTaskId(const Aws::String &value)
ReplaceRootVolumeTask & WithImageId(const char *value)
ReplaceRootVolumeTask & WithCompleteTime(const Aws::String &value)
ReplaceRootVolumeTask & WithInstanceId(const Aws::String &value)
ReplaceRootVolumeTask & WithSnapshotId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API ReplaceRootVolumeTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReplaceRootVolumeTask & WithReplaceRootVolumeTaskId(Aws::String &&value)
void SetStartTime(const Aws::String &value)
ReplaceRootVolumeTask & WithTaskState(ReplaceRootVolumeTaskState &&value)
ReplaceRootVolumeTask & WithInstanceId(const char *value)
void SetImageId(const Aws::String &value)
void SetReplaceRootVolumeTaskId(Aws::String &&value)
ReplaceRootVolumeTask & WithCompleteTime(Aws::String &&value)
void SetTaskState(ReplaceRootVolumeTaskState &&value)
ReplaceRootVolumeTask & WithCompleteTime(const char *value)
ReplaceRootVolumeTask & WithDeleteReplacedRootVolume(bool value)
ReplaceRootVolumeTask & WithStartTime(const Aws::String &value)
ReplaceRootVolumeTask & WithTags(const Aws::Vector< Tag > &value)
ReplaceRootVolumeTask & WithImageId(Aws::String &&value)
void SetTaskState(const ReplaceRootVolumeTaskState &value)
ReplaceRootVolumeTask & WithStartTime(Aws::String &&value)
const Aws::String & GetReplaceRootVolumeTaskId() const
const ReplaceRootVolumeTaskState & GetTaskState() const
void SetInstanceId(const Aws::String &value)
ReplaceRootVolumeTask & WithSnapshotId(Aws::String &&value)
ReplaceRootVolumeTask & WithInstanceId(Aws::String &&value)
void SetReplaceRootVolumeTaskId(const Aws::String &value)
ReplaceRootVolumeTask & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
ReplaceRootVolumeTask & WithSnapshotId(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
ReplaceRootVolumeTask & WithImageId(const Aws::String &value)
AWS_EC2_API ReplaceRootVolumeTask(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSnapshotId(const Aws::String &value)
ReplaceRootVolumeTask & AddTags(const Tag &value)
const Aws::Vector< Tag > & GetTags() const
ReplaceRootVolumeTask & AddTags(Tag &&value)
ReplaceRootVolumeTask & WithReplaceRootVolumeTaskId(const char *value)
ReplaceRootVolumeTask & WithStartTime(const char *value)
void SetCompleteTime(const Aws::String &value)
ReplaceRootVolumeTask & WithTaskState(const ReplaceRootVolumeTaskState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream