AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ExportImageTask.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/ExportTaskS3Location.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
35 {
36 public:
37 AWS_EC2_API ExportImageTask() = default;
38 AWS_EC2_API ExportImageTask(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDescription() const { return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 template<typename DescriptionT = Aws::String>
52 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
53 template<typename DescriptionT = Aws::String>
54 ExportImageTask& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_exportImageTaskIdHasBeenSet = true; m_exportImageTaskId = std::forward<ExportImageTaskIdT>(value); }
65 template<typename ExportImageTaskIdT = Aws::String>
66 ExportImageTask& WithExportImageTaskId(ExportImageTaskIdT&& value) { SetExportImageTaskId(std::forward<ExportImageTaskIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetImageId() const { return m_imageId; }
74 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
75 template<typename ImageIdT = Aws::String>
76 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
77 template<typename ImageIdT = Aws::String>
78 ExportImageTask& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetProgress() const { return m_progress; }
86 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
87 template<typename ProgressT = Aws::String>
88 void SetProgress(ProgressT&& value) { m_progressHasBeenSet = true; m_progress = std::forward<ProgressT>(value); }
89 template<typename ProgressT = Aws::String>
90 ExportImageTask& WithProgress(ProgressT&& value) { SetProgress(std::forward<ProgressT>(value)); return *this;}
92
94
97 inline const ExportTaskS3Location& GetS3ExportLocation() const { return m_s3ExportLocation; }
98 inline bool S3ExportLocationHasBeenSet() const { return m_s3ExportLocationHasBeenSet; }
99 template<typename S3ExportLocationT = ExportTaskS3Location>
100 void SetS3ExportLocation(S3ExportLocationT&& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = std::forward<S3ExportLocationT>(value); }
101 template<typename S3ExportLocationT = ExportTaskS3Location>
102 ExportImageTask& WithS3ExportLocation(S3ExportLocationT&& value) { SetS3ExportLocation(std::forward<S3ExportLocationT>(value)); return *this;}
104
106
111 inline const Aws::String& GetStatus() const { return m_status; }
112 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
113 template<typename StatusT = Aws::String>
114 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
115 template<typename StatusT = Aws::String>
116 ExportImageTask& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
118
120
123 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
124 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
125 template<typename StatusMessageT = Aws::String>
126 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
127 template<typename StatusMessageT = Aws::String>
128 ExportImageTask& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
130
132
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template<typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
139 template<typename TagsT = Aws::Vector<Tag>>
140 ExportImageTask& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
141 template<typename TagsT = Tag>
142 ExportImageTask& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
144 private:
145
146 Aws::String m_description;
147 bool m_descriptionHasBeenSet = false;
148
149 Aws::String m_exportImageTaskId;
150 bool m_exportImageTaskIdHasBeenSet = false;
151
152 Aws::String m_imageId;
153 bool m_imageIdHasBeenSet = false;
154
155 Aws::String m_progress;
156 bool m_progressHasBeenSet = false;
157
158 ExportTaskS3Location m_s3ExportLocation;
159 bool m_s3ExportLocationHasBeenSet = false;
160
161 Aws::String m_status;
162 bool m_statusHasBeenSet = false;
163
164 Aws::String m_statusMessage;
165 bool m_statusMessageHasBeenSet = false;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace EC2
173} // 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