AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExportTask.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/ExportToS3Task.h>
11#include <aws/ec2/model/InstanceExportDetails.h>
12#include <aws/ec2/model/ExportTaskState.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API ExportTask();
40 AWS_EC2_API ExportTask(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_EC2_API ExportTask& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetDescription() const{ return m_description; }
52 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
54 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
55 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
56 inline ExportTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
57 inline ExportTask& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
58 inline ExportTask& WithDescription(const char* value) { SetDescription(value); return *this;}
60
62
65 inline const Aws::String& GetExportTaskId() const{ return m_exportTaskId; }
66 inline bool ExportTaskIdHasBeenSet() const { return m_exportTaskIdHasBeenSet; }
67 inline void SetExportTaskId(const Aws::String& value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId = value; }
68 inline void SetExportTaskId(Aws::String&& value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId = std::move(value); }
69 inline void SetExportTaskId(const char* value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId.assign(value); }
70 inline ExportTask& WithExportTaskId(const Aws::String& value) { SetExportTaskId(value); return *this;}
71 inline ExportTask& WithExportTaskId(Aws::String&& value) { SetExportTaskId(std::move(value)); return *this;}
72 inline ExportTask& WithExportTaskId(const char* value) { SetExportTaskId(value); return *this;}
74
76
79 inline const ExportToS3Task& GetExportToS3Task() const{ return m_exportToS3Task; }
80 inline bool ExportToS3TaskHasBeenSet() const { return m_exportToS3TaskHasBeenSet; }
81 inline void SetExportToS3Task(const ExportToS3Task& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = value; }
82 inline void SetExportToS3Task(ExportToS3Task&& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = std::move(value); }
83 inline ExportTask& WithExportToS3Task(const ExportToS3Task& value) { SetExportToS3Task(value); return *this;}
84 inline ExportTask& WithExportToS3Task(ExportToS3Task&& value) { SetExportToS3Task(std::move(value)); return *this;}
86
88
91 inline const InstanceExportDetails& GetInstanceExportDetails() const{ return m_instanceExportDetails; }
92 inline bool InstanceExportDetailsHasBeenSet() const { return m_instanceExportDetailsHasBeenSet; }
93 inline void SetInstanceExportDetails(const InstanceExportDetails& value) { m_instanceExportDetailsHasBeenSet = true; m_instanceExportDetails = value; }
94 inline void SetInstanceExportDetails(InstanceExportDetails&& value) { m_instanceExportDetailsHasBeenSet = true; m_instanceExportDetails = std::move(value); }
96 inline ExportTask& WithInstanceExportDetails(InstanceExportDetails&& value) { SetInstanceExportDetails(std::move(value)); return *this;}
98
100
103 inline const ExportTaskState& GetState() const{ return m_state; }
104 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
105 inline void SetState(const ExportTaskState& value) { m_stateHasBeenSet = true; m_state = value; }
106 inline void SetState(ExportTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
107 inline ExportTask& WithState(const ExportTaskState& value) { SetState(value); return *this;}
108 inline ExportTask& WithState(ExportTaskState&& value) { SetState(std::move(value)); return *this;}
110
112
115 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
116 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
117 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
118 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
119 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
120 inline ExportTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
121 inline ExportTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
122 inline ExportTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
124
126
129 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
133 inline ExportTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
134 inline ExportTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
135 inline ExportTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
136 inline ExportTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
138 private:
139
140 Aws::String m_description;
141 bool m_descriptionHasBeenSet = false;
142
143 Aws::String m_exportTaskId;
144 bool m_exportTaskIdHasBeenSet = false;
145
146 ExportToS3Task m_exportToS3Task;
147 bool m_exportToS3TaskHasBeenSet = false;
148
149 InstanceExportDetails m_instanceExportDetails;
150 bool m_instanceExportDetailsHasBeenSet = false;
151
152 ExportTaskState m_state;
153 bool m_stateHasBeenSet = false;
154
155 Aws::String m_statusMessage;
156 bool m_statusMessageHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
ExportTask & WithState(ExportTaskState &&value)
Definition ExportTask.h:108
ExportTask & WithTags(const Aws::Vector< Tag > &value)
Definition ExportTask.h:133
ExportTask & WithState(const ExportTaskState &value)
Definition ExportTask.h:107
void SetExportTaskId(const Aws::String &value)
Definition ExportTask.h:67
void SetInstanceExportDetails(InstanceExportDetails &&value)
Definition ExportTask.h:94
void SetStatusMessage(const Aws::String &value)
Definition ExportTask.h:117
void SetExportToS3Task(ExportToS3Task &&value)
Definition ExportTask.h:82
const InstanceExportDetails & GetInstanceExportDetails() const
Definition ExportTask.h:91
bool InstanceExportDetailsHasBeenSet() const
Definition ExportTask.h:92
ExportTask & WithExportTaskId(const Aws::String &value)
Definition ExportTask.h:70
bool StatusMessageHasBeenSet() const
Definition ExportTask.h:116
ExportTask & WithInstanceExportDetails(const InstanceExportDetails &value)
Definition ExportTask.h:95
const ExportToS3Task & GetExportToS3Task() const
Definition ExportTask.h:79
ExportTask & WithInstanceExportDetails(InstanceExportDetails &&value)
Definition ExportTask.h:96
ExportTask & AddTags(const Tag &value)
Definition ExportTask.h:135
ExportTask & WithDescription(const Aws::String &value)
Definition ExportTask.h:56
const ExportTaskState & GetState() const
Definition ExportTask.h:103
bool ExportToS3TaskHasBeenSet() const
Definition ExportTask.h:80
const Aws::String & GetStatusMessage() const
Definition ExportTask.h:115
void SetInstanceExportDetails(const InstanceExportDetails &value)
Definition ExportTask.h:93
const Aws::String & GetExportTaskId() const
Definition ExportTask.h:65
bool ExportTaskIdHasBeenSet() const
Definition ExportTask.h:66
ExportTask & WithStatusMessage(const char *value)
Definition ExportTask.h:122
ExportTask & WithExportTaskId(const char *value)
Definition ExportTask.h:72
ExportTask & WithExportToS3Task(const ExportToS3Task &value)
Definition ExportTask.h:83
ExportTask & WithExportToS3Task(ExportToS3Task &&value)
Definition ExportTask.h:84
ExportTask & WithDescription(Aws::String &&value)
Definition ExportTask.h:57
ExportTask & WithStatusMessage(Aws::String &&value)
Definition ExportTask.h:121
void SetTags(Aws::Vector< Tag > &&value)
Definition ExportTask.h:132
const Aws::Vector< Tag > & GetTags() const
Definition ExportTask.h:129
AWS_EC2_API ExportTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(const ExportTaskState &value)
Definition ExportTask.h:105
void SetDescription(const Aws::String &value)
Definition ExportTask.h:53
void SetTags(const Aws::Vector< Tag > &value)
Definition ExportTask.h:131
void SetExportTaskId(const char *value)
Definition ExportTask.h:69
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDescription() const
Definition ExportTask.h:51
void SetStatusMessage(const char *value)
Definition ExportTask.h:119
void SetState(ExportTaskState &&value)
Definition ExportTask.h:106
void SetExportToS3Task(const ExportToS3Task &value)
Definition ExportTask.h:81
ExportTask & WithTags(Aws::Vector< Tag > &&value)
Definition ExportTask.h:134
AWS_EC2_API ExportTask(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportTask & WithExportTaskId(Aws::String &&value)
Definition ExportTask.h:71
ExportTask & WithDescription(const char *value)
Definition ExportTask.h:58
void SetStatusMessage(Aws::String &&value)
Definition ExportTask.h:118
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetExportTaskId(Aws::String &&value)
Definition ExportTask.h:68
ExportTask & WithStatusMessage(const Aws::String &value)
Definition ExportTask.h:120
void SetDescription(Aws::String &&value)
Definition ExportTask.h:54
bool DescriptionHasBeenSet() const
Definition ExportTask.h:52
ExportTask & AddTags(Tag &&value)
Definition ExportTask.h:136
void SetDescription(const char *value)
Definition ExportTask.h:55
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