AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ReplaceRootVolumeTask.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ReplaceRootVolumeTaskState.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API ReplaceRootVolumeTask() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetReplaceRootVolumeTaskId() const { return m_replaceRootVolumeTaskId; }
45 inline bool ReplaceRootVolumeTaskIdHasBeenSet() const { return m_replaceRootVolumeTaskIdHasBeenSet; }
46 template <typename ReplaceRootVolumeTaskIdT = Aws::String>
47 void SetReplaceRootVolumeTaskId(ReplaceRootVolumeTaskIdT&& value) {
48 m_replaceRootVolumeTaskIdHasBeenSet = true;
49 m_replaceRootVolumeTaskId = std::forward<ReplaceRootVolumeTaskIdT>(value);
50 }
51 template <typename ReplaceRootVolumeTaskIdT = Aws::String>
52 ReplaceRootVolumeTask& WithReplaceRootVolumeTaskId(ReplaceRootVolumeTaskIdT&& value) {
53 SetReplaceRootVolumeTaskId(std::forward<ReplaceRootVolumeTaskIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
64 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
65 template <typename InstanceIdT = Aws::String>
66 void SetInstanceId(InstanceIdT&& value) {
67 m_instanceIdHasBeenSet = true;
68 m_instanceId = std::forward<InstanceIdT>(value);
69 }
70 template <typename InstanceIdT = Aws::String>
71 ReplaceRootVolumeTask& WithInstanceId(InstanceIdT&& value) {
72 SetInstanceId(std::forward<InstanceIdT>(value));
73 return *this;
74 }
76
78
93 inline ReplaceRootVolumeTaskState GetTaskState() const { return m_taskState; }
94 inline bool TaskStateHasBeenSet() const { return m_taskStateHasBeenSet; }
96 m_taskStateHasBeenSet = true;
97 m_taskState = value;
98 }
100 SetTaskState(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetStartTime() const { return m_startTime; }
110 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
111 template <typename StartTimeT = Aws::String>
112 void SetStartTime(StartTimeT&& value) {
113 m_startTimeHasBeenSet = true;
114 m_startTime = std::forward<StartTimeT>(value);
115 }
116 template <typename StartTimeT = Aws::String>
118 SetStartTime(std::forward<StartTimeT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetCompleteTime() const { return m_completeTime; }
128 inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; }
129 template <typename CompleteTimeT = Aws::String>
130 void SetCompleteTime(CompleteTimeT&& value) {
131 m_completeTimeHasBeenSet = true;
132 m_completeTime = std::forward<CompleteTimeT>(value);
133 }
134 template <typename CompleteTimeT = Aws::String>
135 ReplaceRootVolumeTask& WithCompleteTime(CompleteTimeT&& value) {
136 SetCompleteTime(std::forward<CompleteTimeT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template <typename TagsT = Aws::Vector<Tag>>
148 void SetTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags = std::forward<TagsT>(value);
151 }
152 template <typename TagsT = Aws::Vector<Tag>>
154 SetTags(std::forward<TagsT>(value));
155 return *this;
156 }
157 template <typename TagsT = Tag>
159 m_tagsHasBeenSet = true;
160 m_tags.emplace_back(std::forward<TagsT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetImageId() const { return m_imageId; }
170 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
171 template <typename ImageIdT = Aws::String>
172 void SetImageId(ImageIdT&& value) {
173 m_imageIdHasBeenSet = true;
174 m_imageId = std::forward<ImageIdT>(value);
175 }
176 template <typename ImageIdT = Aws::String>
178 SetImageId(std::forward<ImageIdT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
188 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
189 template <typename SnapshotIdT = Aws::String>
190 void SetSnapshotId(SnapshotIdT&& value) {
191 m_snapshotIdHasBeenSet = true;
192 m_snapshotId = std::forward<SnapshotIdT>(value);
193 }
194 template <typename SnapshotIdT = Aws::String>
195 ReplaceRootVolumeTask& WithSnapshotId(SnapshotIdT&& value) {
196 SetSnapshotId(std::forward<SnapshotIdT>(value));
197 return *this;
198 }
200
202
206 inline bool GetDeleteReplacedRootVolume() const { return m_deleteReplacedRootVolume; }
207 inline bool DeleteReplacedRootVolumeHasBeenSet() const { return m_deleteReplacedRootVolumeHasBeenSet; }
208 inline void SetDeleteReplacedRootVolume(bool value) {
209 m_deleteReplacedRootVolumeHasBeenSet = true;
210 m_deleteReplacedRootVolume = value;
211 }
214 return *this;
215 }
217 private:
218 Aws::String m_replaceRootVolumeTaskId;
219
220 Aws::String m_instanceId;
221
223
224 Aws::String m_startTime;
225
226 Aws::String m_completeTime;
227
228 Aws::Vector<Tag> m_tags;
229
230 Aws::String m_imageId;
231
232 Aws::String m_snapshotId;
233
234 bool m_deleteReplacedRootVolume{false};
235 bool m_replaceRootVolumeTaskIdHasBeenSet = false;
236 bool m_instanceIdHasBeenSet = false;
237 bool m_taskStateHasBeenSet = false;
238 bool m_startTimeHasBeenSet = false;
239 bool m_completeTimeHasBeenSet = false;
240 bool m_tagsHasBeenSet = false;
241 bool m_imageIdHasBeenSet = false;
242 bool m_snapshotIdHasBeenSet = false;
243 bool m_deleteReplacedRootVolumeHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace EC2
248} // namespace Aws
AWS_EC2_API ReplaceRootVolumeTask()=default
ReplaceRootVolumeTask & AddTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API ReplaceRootVolumeTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplaceRootVolumeTaskState GetTaskState() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReplaceRootVolumeTask & WithDeleteReplacedRootVolume(bool value)
ReplaceRootVolumeTask & WithInstanceId(InstanceIdT &&value)
const Aws::String & GetReplaceRootVolumeTaskId() const
ReplaceRootVolumeTask & WithTags(TagsT &&value)
void SetReplaceRootVolumeTaskId(ReplaceRootVolumeTaskIdT &&value)
ReplaceRootVolumeTask & WithTaskState(ReplaceRootVolumeTaskState value)
ReplaceRootVolumeTask & WithStartTime(StartTimeT &&value)
ReplaceRootVolumeTask & WithReplaceRootVolumeTaskId(ReplaceRootVolumeTaskIdT &&value)
ReplaceRootVolumeTask & WithImageId(ImageIdT &&value)
void SetTaskState(ReplaceRootVolumeTaskState value)
ReplaceRootVolumeTask & WithSnapshotId(SnapshotIdT &&value)
AWS_EC2_API ReplaceRootVolumeTask(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplaceRootVolumeTask & WithCompleteTime(CompleteTimeT &&value)
const Aws::Vector< Tag > & GetTags() const
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