AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ExportTask.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/ExportTaskState.h>
12#include <aws/ec2/model/ExportToS3Task.h>
13#include <aws/ec2/model/InstanceExportDetails.h>
14#include <aws/ec2/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
33 public:
34 AWS_EC2_API ExportTask() = default;
35 AWS_EC2_API ExportTask(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API ExportTask& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetDescription() const { return m_description; }
46 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
47 template <typename DescriptionT = Aws::String>
48 void SetDescription(DescriptionT&& value) {
49 m_descriptionHasBeenSet = true;
50 m_description = std::forward<DescriptionT>(value);
51 }
52 template <typename DescriptionT = Aws::String>
53 ExportTask& WithDescription(DescriptionT&& value) {
54 SetDescription(std::forward<DescriptionT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetExportTaskId() const { return m_exportTaskId; }
64 inline bool ExportTaskIdHasBeenSet() const { return m_exportTaskIdHasBeenSet; }
65 template <typename ExportTaskIdT = Aws::String>
66 void SetExportTaskId(ExportTaskIdT&& value) {
67 m_exportTaskIdHasBeenSet = true;
68 m_exportTaskId = std::forward<ExportTaskIdT>(value);
69 }
70 template <typename ExportTaskIdT = Aws::String>
71 ExportTask& WithExportTaskId(ExportTaskIdT&& value) {
72 SetExportTaskId(std::forward<ExportTaskIdT>(value));
73 return *this;
74 }
76
78
81 inline const ExportToS3Task& GetExportToS3Task() const { return m_exportToS3Task; }
82 inline bool ExportToS3TaskHasBeenSet() const { return m_exportToS3TaskHasBeenSet; }
83 template <typename ExportToS3TaskT = ExportToS3Task>
84 void SetExportToS3Task(ExportToS3TaskT&& value) {
85 m_exportToS3TaskHasBeenSet = true;
86 m_exportToS3Task = std::forward<ExportToS3TaskT>(value);
87 }
88 template <typename ExportToS3TaskT = ExportToS3Task>
89 ExportTask& WithExportToS3Task(ExportToS3TaskT&& value) {
90 SetExportToS3Task(std::forward<ExportToS3TaskT>(value));
91 return *this;
92 }
94
96
99 inline const InstanceExportDetails& GetInstanceExportDetails() const { return m_instanceExportDetails; }
100 inline bool InstanceExportDetailsHasBeenSet() const { return m_instanceExportDetailsHasBeenSet; }
101 template <typename InstanceExportDetailsT = InstanceExportDetails>
102 void SetInstanceExportDetails(InstanceExportDetailsT&& value) {
103 m_instanceExportDetailsHasBeenSet = true;
104 m_instanceExportDetails = std::forward<InstanceExportDetailsT>(value);
105 }
106 template <typename InstanceExportDetailsT = InstanceExportDetails>
107 ExportTask& WithInstanceExportDetails(InstanceExportDetailsT&& value) {
108 SetInstanceExportDetails(std::forward<InstanceExportDetailsT>(value));
109 return *this;
110 }
112
114
117 inline ExportTaskState GetState() const { return m_state; }
118 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
119 inline void SetState(ExportTaskState value) {
120 m_stateHasBeenSet = true;
121 m_state = value;
122 }
124 SetState(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
134 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
135 template <typename StatusMessageT = Aws::String>
136 void SetStatusMessage(StatusMessageT&& value) {
137 m_statusMessageHasBeenSet = true;
138 m_statusMessage = std::forward<StatusMessageT>(value);
139 }
140 template <typename StatusMessageT = Aws::String>
141 ExportTask& WithStatusMessage(StatusMessageT&& value) {
142 SetStatusMessage(std::forward<StatusMessageT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template <typename TagsT = Aws::Vector<Tag>>
154 void SetTags(TagsT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags = std::forward<TagsT>(value);
157 }
158 template <typename TagsT = Aws::Vector<Tag>>
159 ExportTask& WithTags(TagsT&& value) {
160 SetTags(std::forward<TagsT>(value));
161 return *this;
162 }
163 template <typename TagsT = Tag>
164 ExportTask& AddTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags.emplace_back(std::forward<TagsT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_description;
172
173 Aws::String m_exportTaskId;
174
175 ExportToS3Task m_exportToS3Task;
176
177 InstanceExportDetails m_instanceExportDetails;
178
180
181 Aws::String m_statusMessage;
182
183 Aws::Vector<Tag> m_tags;
184 bool m_descriptionHasBeenSet = false;
185 bool m_exportTaskIdHasBeenSet = false;
186 bool m_exportToS3TaskHasBeenSet = false;
187 bool m_instanceExportDetailsHasBeenSet = false;
188 bool m_stateHasBeenSet = false;
189 bool m_statusMessageHasBeenSet = false;
190 bool m_tagsHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace EC2
195} // namespace Aws
const InstanceExportDetails & GetInstanceExportDetails() const
Definition ExportTask.h:99
bool InstanceExportDetailsHasBeenSet() const
Definition ExportTask.h:100
ExportTask & WithState(ExportTaskState value)
Definition ExportTask.h:123
bool StatusMessageHasBeenSet() const
Definition ExportTask.h:134
void SetExportTaskId(ExportTaskIdT &&value)
Definition ExportTask.h:66
void SetState(ExportTaskState value)
Definition ExportTask.h:119
const ExportToS3Task & GetExportToS3Task() const
Definition ExportTask.h:81
bool ExportToS3TaskHasBeenSet() const
Definition ExportTask.h:82
void SetStatusMessage(StatusMessageT &&value)
Definition ExportTask.h:136
ExportTask & WithTags(TagsT &&value)
Definition ExportTask.h:159
const Aws::String & GetStatusMessage() const
Definition ExportTask.h:133
const Aws::String & GetExportTaskId() const
Definition ExportTask.h:63
bool ExportTaskIdHasBeenSet() const
Definition ExportTask.h:64
AWS_EC2_API ExportTask()=default
ExportTask & WithInstanceExportDetails(InstanceExportDetailsT &&value)
Definition ExportTask.h:107
void SetExportToS3Task(ExportToS3TaskT &&value)
Definition ExportTask.h:84
ExportTaskState GetState() const
Definition ExportTask.h:117
const Aws::Vector< Tag > & GetTags() const
Definition ExportTask.h:151
ExportTask & WithExportTaskId(ExportTaskIdT &&value)
Definition ExportTask.h:71
AWS_EC2_API ExportTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportTask & WithExportToS3Task(ExportToS3TaskT &&value)
Definition ExportTask.h:89
void SetInstanceExportDetails(InstanceExportDetailsT &&value)
Definition ExportTask.h:102
ExportTask & AddTags(TagsT &&value)
Definition ExportTask.h:164
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDescription(DescriptionT &&value)
Definition ExportTask.h:48
const Aws::String & GetDescription() const
Definition ExportTask.h:45
ExportTask & WithDescription(DescriptionT &&value)
Definition ExportTask.h:53
void SetTags(TagsT &&value)
Definition ExportTask.h:154
AWS_EC2_API ExportTask(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool DescriptionHasBeenSet() const
Definition ExportTask.h:46
ExportTask & WithStatusMessage(StatusMessageT &&value)
Definition ExportTask.h:141
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