AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ReplaceRootVolumeTaskIdT = Aws::String>
53 void SetReplaceRootVolumeTaskId(ReplaceRootVolumeTaskIdT&& value) { m_replaceRootVolumeTaskIdHasBeenSet = true; m_replaceRootVolumeTaskId = std::forward<ReplaceRootVolumeTaskIdT>(value); }
54 template<typename ReplaceRootVolumeTaskIdT = Aws::String>
55 ReplaceRootVolumeTask& WithReplaceRootVolumeTaskId(ReplaceRootVolumeTaskIdT&& value) { SetReplaceRootVolumeTaskId(std::forward<ReplaceRootVolumeTaskIdT>(value)); return *this;}
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) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
67 template<typename InstanceIdT = Aws::String>
68 ReplaceRootVolumeTask& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
70
72
87 inline ReplaceRootVolumeTaskState GetTaskState() const { return m_taskState; }
88 inline bool TaskStateHasBeenSet() const { return m_taskStateHasBeenSet; }
89 inline void SetTaskState(ReplaceRootVolumeTaskState value) { m_taskStateHasBeenSet = true; m_taskState = value; }
92
94
97 inline const Aws::String& GetStartTime() const { return m_startTime; }
98 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
99 template<typename StartTimeT = Aws::String>
100 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
101 template<typename StartTimeT = Aws::String>
102 ReplaceRootVolumeTask& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
104
106
109 inline const Aws::String& GetCompleteTime() const { return m_completeTime; }
110 inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; }
111 template<typename CompleteTimeT = Aws::String>
112 void SetCompleteTime(CompleteTimeT&& value) { m_completeTimeHasBeenSet = true; m_completeTime = std::forward<CompleteTimeT>(value); }
113 template<typename CompleteTimeT = Aws::String>
114 ReplaceRootVolumeTask& WithCompleteTime(CompleteTimeT&& value) { SetCompleteTime(std::forward<CompleteTimeT>(value)); return *this;}
116
118
121 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template<typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
125 template<typename TagsT = Aws::Vector<Tag>>
126 ReplaceRootVolumeTask& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
127 template<typename TagsT = Tag>
128 ReplaceRootVolumeTask& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
130
132
135 inline const Aws::String& GetImageId() const { return m_imageId; }
136 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
137 template<typename ImageIdT = Aws::String>
138 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
139 template<typename ImageIdT = Aws::String>
140 ReplaceRootVolumeTask& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
142
144
147 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
148 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
149 template<typename SnapshotIdT = Aws::String>
150 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
151 template<typename SnapshotIdT = Aws::String>
152 ReplaceRootVolumeTask& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
154
156
160 inline bool GetDeleteReplacedRootVolume() const { return m_deleteReplacedRootVolume; }
161 inline bool DeleteReplacedRootVolumeHasBeenSet() const { return m_deleteReplacedRootVolumeHasBeenSet; }
162 inline void SetDeleteReplacedRootVolume(bool value) { m_deleteReplacedRootVolumeHasBeenSet = true; m_deleteReplacedRootVolume = value; }
165 private:
166
167 Aws::String m_replaceRootVolumeTaskId;
168 bool m_replaceRootVolumeTaskIdHasBeenSet = false;
169
170 Aws::String m_instanceId;
171 bool m_instanceIdHasBeenSet = false;
172
174 bool m_taskStateHasBeenSet = false;
175
176 Aws::String m_startTime;
177 bool m_startTimeHasBeenSet = false;
178
179 Aws::String m_completeTime;
180 bool m_completeTimeHasBeenSet = false;
181
182 Aws::Vector<Tag> m_tags;
183 bool m_tagsHasBeenSet = false;
184
185 Aws::String m_imageId;
186 bool m_imageIdHasBeenSet = false;
187
188 Aws::String m_snapshotId;
189 bool m_snapshotIdHasBeenSet = false;
190
191 bool m_deleteReplacedRootVolume{false};
192 bool m_deleteReplacedRootVolumeHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace EC2
197} // 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