AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ExportImageResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/model/DiskImageFormat.h>
10#include <aws/ec2/model/ExportTaskS3Location.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/ResponseMetadata.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Xml
24{
25 class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace EC2
29{
30namespace Model
31{
33 {
34 public:
35 AWS_EC2_API ExportImageResponse() = default;
38
39
41
44 inline const Aws::String& GetDescription() const { return m_description; }
45 template<typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
47 template<typename DescriptionT = Aws::String>
48 ExportImageResponse& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
50
52
55 inline DiskImageFormat GetDiskImageFormat() const { return m_diskImageFormat; }
56 inline void SetDiskImageFormat(DiskImageFormat value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
59
61
64 inline const Aws::String& GetExportImageTaskId() const { return m_exportImageTaskId; }
65 template<typename ExportImageTaskIdT = Aws::String>
66 void SetExportImageTaskId(ExportImageTaskIdT&& value) { m_exportImageTaskIdHasBeenSet = true; m_exportImageTaskId = std::forward<ExportImageTaskIdT>(value); }
67 template<typename ExportImageTaskIdT = Aws::String>
68 ExportImageResponse& WithExportImageTaskId(ExportImageTaskIdT&& value) { SetExportImageTaskId(std::forward<ExportImageTaskIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetImageId() const { return m_imageId; }
76 template<typename ImageIdT = Aws::String>
77 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
78 template<typename ImageIdT = Aws::String>
79 ExportImageResponse& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
81
83
87 inline const Aws::String& GetRoleName() const { return m_roleName; }
88 template<typename RoleNameT = Aws::String>
89 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
90 template<typename RoleNameT = Aws::String>
91 ExportImageResponse& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
93
95
98 inline const Aws::String& GetProgress() const { return m_progress; }
99 template<typename ProgressT = Aws::String>
100 void SetProgress(ProgressT&& value) { m_progressHasBeenSet = true; m_progress = std::forward<ProgressT>(value); }
101 template<typename ProgressT = Aws::String>
102 ExportImageResponse& WithProgress(ProgressT&& value) { SetProgress(std::forward<ProgressT>(value)); return *this;}
104
106
109 inline const ExportTaskS3Location& GetS3ExportLocation() const { return m_s3ExportLocation; }
110 template<typename S3ExportLocationT = ExportTaskS3Location>
111 void SetS3ExportLocation(S3ExportLocationT&& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = std::forward<S3ExportLocationT>(value); }
112 template<typename S3ExportLocationT = ExportTaskS3Location>
113 ExportImageResponse& WithS3ExportLocation(S3ExportLocationT&& value) { SetS3ExportLocation(std::forward<S3ExportLocationT>(value)); return *this;}
115
117
122 inline const Aws::String& GetStatus() const { return m_status; }
123 template<typename StatusT = Aws::String>
124 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
125 template<typename StatusT = Aws::String>
126 ExportImageResponse& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
128
130
133 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
134 template<typename StatusMessageT = Aws::String>
135 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
136 template<typename StatusMessageT = Aws::String>
137 ExportImageResponse& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
139
141
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 template<typename TagsT = Aws::Vector<Tag>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
147 template<typename TagsT = Aws::Vector<Tag>>
148 ExportImageResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
149 template<typename TagsT = Tag>
150 ExportImageResponse& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
152
154
155 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
156 template<typename ResponseMetadataT = ResponseMetadata>
157 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
158 template<typename ResponseMetadataT = ResponseMetadata>
159 ExportImageResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
161 private:
162
163 Aws::String m_description;
164 bool m_descriptionHasBeenSet = false;
165
166 DiskImageFormat m_diskImageFormat{DiskImageFormat::NOT_SET};
167 bool m_diskImageFormatHasBeenSet = false;
168
169 Aws::String m_exportImageTaskId;
170 bool m_exportImageTaskIdHasBeenSet = false;
171
172 Aws::String m_imageId;
173 bool m_imageIdHasBeenSet = false;
174
175 Aws::String m_roleName;
176 bool m_roleNameHasBeenSet = false;
177
178 Aws::String m_progress;
179 bool m_progressHasBeenSet = false;
180
181 ExportTaskS3Location m_s3ExportLocation;
182 bool m_s3ExportLocationHasBeenSet = false;
183
184 Aws::String m_status;
185 bool m_statusHasBeenSet = false;
186
187 Aws::String m_statusMessage;
188 bool m_statusMessageHasBeenSet = false;
189
190 Aws::Vector<Tag> m_tags;
191 bool m_tagsHasBeenSet = false;
192
193 ResponseMetadata m_responseMetadata;
194 bool m_responseMetadataHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace EC2
199} // namespace Aws
const ExportTaskS3Location & GetS3ExportLocation() const
ExportImageResponse & WithStatus(StatusT &&value)
ExportImageResponse & WithS3ExportLocation(S3ExportLocationT &&value)
AWS_EC2_API ExportImageResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const ResponseMetadata & GetResponseMetadata() const
ExportImageResponse & WithResponseMetadata(ResponseMetadataT &&value)
const Aws::String & GetExportImageTaskId() const
const Aws::String & GetDescription() const
const Aws::String & GetStatus() const
ExportImageResponse & WithExportImageTaskId(ExportImageTaskIdT &&value)
void SetExportImageTaskId(ExportImageTaskIdT &&value)
ExportImageResponse & WithDiskImageFormat(DiskImageFormat value)
AWS_EC2_API ExportImageResponse()=default
const Aws::String & GetStatusMessage() const
ExportImageResponse & WithDescription(DescriptionT &&value)
ExportImageResponse & WithRoleName(RoleNameT &&value)
void SetS3ExportLocation(S3ExportLocationT &&value)
void SetDiskImageFormat(DiskImageFormat value)
const Aws::String & GetProgress() const
ExportImageResponse & WithProgress(ProgressT &&value)
ExportImageResponse & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
ExportImageResponse & AddTags(TagsT &&value)
AWS_EC2_API ExportImageResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetStatusMessage(StatusMessageT &&value)
ExportImageResponse & WithStatusMessage(StatusMessageT &&value)
const Aws::String & GetRoleName() const
ExportImageResponse & WithImageId(ImageIdT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetImageId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument