AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ExportImageTask.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/ExportTaskS3Location.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
31 public:
32 AWS_EC2_API ExportImageTask() = default;
33 AWS_EC2_API ExportImageTask(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template <typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) {
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = Aws::String>
51 ExportImageTask& WithDescription(DescriptionT&& value) {
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetExportImageTaskId() const { return m_exportImageTaskId; }
62 inline bool ExportImageTaskIdHasBeenSet() const { return m_exportImageTaskIdHasBeenSet; }
63 template <typename ExportImageTaskIdT = Aws::String>
64 void SetExportImageTaskId(ExportImageTaskIdT&& value) {
65 m_exportImageTaskIdHasBeenSet = true;
66 m_exportImageTaskId = std::forward<ExportImageTaskIdT>(value);
67 }
68 template <typename ExportImageTaskIdT = Aws::String>
69 ExportImageTask& WithExportImageTaskId(ExportImageTaskIdT&& value) {
70 SetExportImageTaskId(std::forward<ExportImageTaskIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetImageId() const { return m_imageId; }
80 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
81 template <typename ImageIdT = Aws::String>
82 void SetImageId(ImageIdT&& value) {
83 m_imageIdHasBeenSet = true;
84 m_imageId = std::forward<ImageIdT>(value);
85 }
86 template <typename ImageIdT = Aws::String>
87 ExportImageTask& WithImageId(ImageIdT&& value) {
88 SetImageId(std::forward<ImageIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetProgress() const { return m_progress; }
98 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
99 template <typename ProgressT = Aws::String>
100 void SetProgress(ProgressT&& value) {
101 m_progressHasBeenSet = true;
102 m_progress = std::forward<ProgressT>(value);
103 }
104 template <typename ProgressT = Aws::String>
105 ExportImageTask& WithProgress(ProgressT&& value) {
106 SetProgress(std::forward<ProgressT>(value));
107 return *this;
108 }
110
112
115 inline const ExportTaskS3Location& GetS3ExportLocation() const { return m_s3ExportLocation; }
116 inline bool S3ExportLocationHasBeenSet() const { return m_s3ExportLocationHasBeenSet; }
117 template <typename S3ExportLocationT = ExportTaskS3Location>
118 void SetS3ExportLocation(S3ExportLocationT&& value) {
119 m_s3ExportLocationHasBeenSet = true;
120 m_s3ExportLocation = std::forward<S3ExportLocationT>(value);
121 }
122 template <typename S3ExportLocationT = ExportTaskS3Location>
123 ExportImageTask& WithS3ExportLocation(S3ExportLocationT&& value) {
124 SetS3ExportLocation(std::forward<S3ExportLocationT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetStatus() const { return m_status; }
136 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 template <typename StatusT = Aws::String>
138 void SetStatus(StatusT&& value) {
139 m_statusHasBeenSet = true;
140 m_status = std::forward<StatusT>(value);
141 }
142 template <typename StatusT = Aws::String>
143 ExportImageTask& WithStatus(StatusT&& value) {
144 SetStatus(std::forward<StatusT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
154 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
155 template <typename StatusMessageT = Aws::String>
156 void SetStatusMessage(StatusMessageT&& value) {
157 m_statusMessageHasBeenSet = true;
158 m_statusMessage = std::forward<StatusMessageT>(value);
159 }
160 template <typename StatusMessageT = Aws::String>
161 ExportImageTask& WithStatusMessage(StatusMessageT&& value) {
162 SetStatusMessage(std::forward<StatusMessageT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template <typename TagsT = Aws::Vector<Tag>>
174 void SetTags(TagsT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags = std::forward<TagsT>(value);
177 }
178 template <typename TagsT = Aws::Vector<Tag>>
179 ExportImageTask& WithTags(TagsT&& value) {
180 SetTags(std::forward<TagsT>(value));
181 return *this;
182 }
183 template <typename TagsT = Tag>
184 ExportImageTask& AddTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags.emplace_back(std::forward<TagsT>(value));
187 return *this;
188 }
190 private:
191 Aws::String m_description;
192
193 Aws::String m_exportImageTaskId;
194
195 Aws::String m_imageId;
196
197 Aws::String m_progress;
198
199 ExportTaskS3Location m_s3ExportLocation;
200
201 Aws::String m_status;
202
203 Aws::String m_statusMessage;
204
205 Aws::Vector<Tag> m_tags;
206 bool m_descriptionHasBeenSet = false;
207 bool m_exportImageTaskIdHasBeenSet = false;
208 bool m_imageIdHasBeenSet = false;
209 bool m_progressHasBeenSet = false;
210 bool m_s3ExportLocationHasBeenSet = false;
211 bool m_statusHasBeenSet = false;
212 bool m_statusMessageHasBeenSet = false;
213 bool m_tagsHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace EC2
218} // namespace Aws
void SetProgress(ProgressT &&value)
ExportImageTask & WithExportImageTaskId(ExportImageTaskIdT &&value)
ExportImageTask & WithStatus(StatusT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ExportImageTask & WithS3ExportLocation(S3ExportLocationT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetStatusMessage(StatusMessageT &&value)
AWS_EC2_API ExportImageTask()=default
ExportImageTask & WithDescription(DescriptionT &&value)
void SetExportImageTaskId(ExportImageTaskIdT &&value)
ExportImageTask & WithImageId(ImageIdT &&value)
void SetImageId(ImageIdT &&value)
ExportImageTask & AddTags(TagsT &&value)
const Aws::String & GetDescription() const
ExportImageTask & WithTags(TagsT &&value)
ExportImageTask & WithStatusMessage(StatusMessageT &&value)
void SetS3ExportLocation(S3ExportLocationT &&value)
const Aws::String & GetProgress() const
const ExportTaskS3Location & GetS3ExportLocation() const
const Aws::String & GetImageId() const
AWS_EC2_API ExportImageTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(DescriptionT &&value)
AWS_EC2_API ExportImageTask(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportImageTask & WithProgress(ProgressT &&value)
const Aws::String & GetStatusMessage() const
const Aws::String & GetExportImageTaskId() const
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetStatus() 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