AWS SDK for C++  1.9.73
AWS SDK for C++
BundleTask.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <aws/ec2/model/Storage.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
29 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
50 
54  inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
55 
59  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
60 
64  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
65 
69  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
70 
74  inline BundleTask& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
75 
79  inline BundleTask& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
80 
84  inline BundleTask& WithBundleId(const char* value) { SetBundleId(value); return *this;}
85 
86 
90  inline const BundleTaskError& GetBundleTaskError() const{ return m_bundleTaskError; }
91 
95  inline bool BundleTaskErrorHasBeenSet() const { return m_bundleTaskErrorHasBeenSet; }
96 
100  inline void SetBundleTaskError(const BundleTaskError& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = value; }
101 
105  inline void SetBundleTaskError(BundleTaskError&& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = std::move(value); }
106 
110  inline BundleTask& WithBundleTaskError(const BundleTaskError& value) { SetBundleTaskError(value); return *this;}
111 
115  inline BundleTask& WithBundleTaskError(BundleTaskError&& value) { SetBundleTaskError(std::move(value)); return *this;}
116 
117 
121  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
122 
126  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
127 
131  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
132 
136  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
137 
141  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
142 
146  inline BundleTask& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
147 
151  inline BundleTask& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
152 
156  inline BundleTask& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
157 
158 
162  inline const Aws::String& GetProgress() const{ return m_progress; }
163 
167  inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
168 
172  inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
173 
177  inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
178 
182  inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
183 
187  inline BundleTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
188 
192  inline BundleTask& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
193 
197  inline BundleTask& WithProgress(const char* value) { SetProgress(value); return *this;}
198 
199 
203  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
204 
208  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
209 
213  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
214 
218  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
219 
223  inline BundleTask& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
224 
228  inline BundleTask& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
229 
230 
234  inline const BundleTaskState& GetState() const{ return m_state; }
235 
239  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
240 
244  inline void SetState(const BundleTaskState& value) { m_stateHasBeenSet = true; m_state = value; }
245 
249  inline void SetState(BundleTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
250 
254  inline BundleTask& WithState(const BundleTaskState& value) { SetState(value); return *this;}
255 
259  inline BundleTask& WithState(BundleTaskState&& value) { SetState(std::move(value)); return *this;}
260 
261 
265  inline const Storage& GetStorage() const{ return m_storage; }
266 
270  inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
271 
275  inline void SetStorage(const Storage& value) { m_storageHasBeenSet = true; m_storage = value; }
276 
280  inline void SetStorage(Storage&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); }
281 
285  inline BundleTask& WithStorage(const Storage& value) { SetStorage(value); return *this;}
286 
290  inline BundleTask& WithStorage(Storage&& value) { SetStorage(std::move(value)); return *this;}
291 
292 
296  inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
297 
301  inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
302 
306  inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
307 
311  inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
312 
316  inline BundleTask& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
317 
321  inline BundleTask& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
322 
323  private:
324 
325  Aws::String m_bundleId;
326  bool m_bundleIdHasBeenSet;
327 
328  BundleTaskError m_bundleTaskError;
329  bool m_bundleTaskErrorHasBeenSet;
330 
331  Aws::String m_instanceId;
332  bool m_instanceIdHasBeenSet;
333 
334  Aws::String m_progress;
335  bool m_progressHasBeenSet;
336 
337  Aws::Utils::DateTime m_startTime;
338  bool m_startTimeHasBeenSet;
339 
340  BundleTaskState m_state;
341  bool m_stateHasBeenSet;
342 
343  Storage m_storage;
344  bool m_storageHasBeenSet;
345 
346  Aws::Utils::DateTime m_updateTime;
347  bool m_updateTimeHasBeenSet;
348  };
349 
350 } // namespace Model
351 } // namespace EC2
352 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::BundleTask::SetState
void SetState(BundleTaskState &&value)
Definition: BundleTask.h:249
Aws::EC2::Model::BundleTask::WithBundleTaskError
BundleTask & WithBundleTaskError(const BundleTaskError &value)
Definition: BundleTask.h:110
Aws::EC2::Model::BundleTask::SetBundleTaskError
void SetBundleTaskError(BundleTaskError &&value)
Definition: BundleTask.h:105
Aws::EC2::Model::BundleTask::WithUpdateTime
BundleTask & WithUpdateTime(Aws::Utils::DateTime &&value)
Definition: BundleTask.h:321
Aws::EC2::Model::BundleTask::SetUpdateTime
void SetUpdateTime(const Aws::Utils::DateTime &value)
Definition: BundleTask.h:306
Aws::EC2::Model::BundleTask::BundleTask
BundleTask()
Aws::EC2::Model::BundleTask::WithProgress
BundleTask & WithProgress(const char *value)
Definition: BundleTask.h:197
Aws::EC2::Model::BundleTask::GetState
const BundleTaskState & GetState() const
Definition: BundleTask.h:234
Aws::EC2::Model::BundleTask::SetInstanceId
void SetInstanceId(const char *value)
Definition: BundleTask.h:141
Aws::EC2::Model::BundleTask::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: BundleTask.h:136
Aws::EC2::Model::BundleTask::GetUpdateTime
const Aws::Utils::DateTime & GetUpdateTime() const
Definition: BundleTask.h:296
DateTime.h
Aws::EC2::Model::BundleTask::GetBundleTaskError
const BundleTaskError & GetBundleTaskError() const
Definition: BundleTask.h:90
Aws::EC2::Model::BundleTask::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: BundleTask.h:208
Aws::EC2::Model::BundleTask::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::BundleTask::SetProgress
void SetProgress(const char *value)
Definition: BundleTask.h:182
Aws::EC2::Model::BundleTask::ProgressHasBeenSet
bool ProgressHasBeenSet() const
Definition: BundleTask.h:167
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Storage.h
Aws::EC2::Model::BundleTask::WithInstanceId
BundleTask & WithInstanceId(const Aws::String &value)
Definition: BundleTask.h:146
BundleTaskState.h
AWSStreamFwd.h
Aws::EC2::Model::BundleTask::SetStorage
void SetStorage(const Storage &value)
Definition: BundleTask.h:275
Aws::EC2::Model::BundleTask::SetState
void SetState(const BundleTaskState &value)
Definition: BundleTask.h:244
Aws::EC2::Model::BundleTask::WithProgress
BundleTask & WithProgress(const Aws::String &value)
Definition: BundleTask.h:187
Aws::EC2::Model::BundleTask::WithInstanceId
BundleTask & WithInstanceId(Aws::String &&value)
Definition: BundleTask.h:151
Aws::EC2::Model::BundleTask::UpdateTimeHasBeenSet
bool UpdateTimeHasBeenSet() const
Definition: BundleTask.h:301
Aws::EC2::Model::Storage
Definition: Storage.h:33
Aws::EC2::Model::BundleTask::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::BundleTask::BundleTaskErrorHasBeenSet
bool BundleTaskErrorHasBeenSet() const
Definition: BundleTask.h:95
Aws::EC2::Model::BundleTask::GetStorage
const Storage & GetStorage() const
Definition: BundleTask.h:265
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::BundleTask::WithBundleId
BundleTask & WithBundleId(const Aws::String &value)
Definition: BundleTask.h:74
Aws::EC2::Model::BundleTask::GetProgress
const Aws::String & GetProgress() const
Definition: BundleTask.h:162
Aws::EC2::Model::BundleTaskState
BundleTaskState
Definition: BundleTaskState.h:17
Aws::EC2::Model::BundleTask::WithStartTime
BundleTask & WithStartTime(const Aws::Utils::DateTime &value)
Definition: BundleTask.h:223
Aws::EC2::Model::BundleTask::WithInstanceId
BundleTask & WithInstanceId(const char *value)
Definition: BundleTask.h:156
Aws::EC2::Model::BundleTask::operator=
BundleTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::BundleTask::SetBundleId
void SetBundleId(const char *value)
Definition: BundleTask.h:69
Aws::EC2::Model::BundleTask::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: BundleTask.h:218
Aws::EC2::Model::BundleTask::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: BundleTask.h:213
Aws::EC2::Model::BundleTask::WithBundleTaskError
BundleTask & WithBundleTaskError(BundleTaskError &&value)
Definition: BundleTask.h:115
AWSString.h
Aws::EC2::Model::BundleTask::WithState
BundleTask & WithState(const BundleTaskState &value)
Definition: BundleTask.h:254
Aws::EC2::Model::BundleTask::StorageHasBeenSet
bool StorageHasBeenSet() const
Definition: BundleTask.h:270
Aws::EC2::Model::BundleTask::WithState
BundleTask & WithState(BundleTaskState &&value)
Definition: BundleTask.h:259
Aws::EC2::Model::BundleTask
Definition: BundleTask.h:36
Aws::EC2::Model::BundleTask::GetBundleId
const Aws::String & GetBundleId() const
Definition: BundleTask.h:49
BundleTaskError.h
Aws::EC2::Model::BundleTask::WithBundleId
BundleTask & WithBundleId(Aws::String &&value)
Definition: BundleTask.h:79
Aws::EC2::Model::BundleTask::SetProgress
void SetProgress(const Aws::String &value)
Definition: BundleTask.h:172
Aws::EC2::Model::BundleTask::SetBundleId
void SetBundleId(const Aws::String &value)
Definition: BundleTask.h:59
Aws::EC2::Model::BundleTask::WithBundleId
BundleTask & WithBundleId(const char *value)
Definition: BundleTask.h:84
Aws::EC2::Model::BundleTask::WithProgress
BundleTask & WithProgress(Aws::String &&value)
Definition: BundleTask.h:192
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::BundleTask::WithStorage
BundleTask & WithStorage(Storage &&value)
Definition: BundleTask.h:290
Aws::EC2::Model::BundleTask::SetUpdateTime
void SetUpdateTime(Aws::Utils::DateTime &&value)
Definition: BundleTask.h:311
Aws::EC2::Model::BundleTaskError
Definition: BundleTaskError.h:32
Aws::EC2::Model::BundleTask::StateHasBeenSet
bool StateHasBeenSet() const
Definition: BundleTask.h:239
Aws::EC2::Model::BundleTask::BundleIdHasBeenSet
bool BundleIdHasBeenSet() const
Definition: BundleTask.h:54
Aws::EC2::Model::BundleTask::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: BundleTask.h:131
Aws::EC2::Model::BundleTask::SetProgress
void SetProgress(Aws::String &&value)
Definition: BundleTask.h:177
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::BundleTask::SetStorage
void SetStorage(Storage &&value)
Definition: BundleTask.h:280
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::BundleTask::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: BundleTask.h:121
Aws::EC2::Model::BundleTask::WithStorage
BundleTask & WithStorage(const Storage &value)
Definition: BundleTask.h:285
Aws::EC2::Model::BundleTask::SetBundleId
void SetBundleId(Aws::String &&value)
Definition: BundleTask.h:64
Aws::EC2::Model::BundleTask::WithUpdateTime
BundleTask & WithUpdateTime(const Aws::Utils::DateTime &value)
Definition: BundleTask.h:316
Aws::EC2::Model::BundleTask::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: BundleTask.h:203
Aws::EC2::Model::BundleTask::WithStartTime
BundleTask & WithStartTime(Aws::Utils::DateTime &&value)
Definition: BundleTask.h:228
EC2_EXPORTS.h
Aws::EC2::Model::BundleTask::BundleTask
BundleTask(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::BundleTask::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: BundleTask.h:126
Aws::EC2::Model::BundleTask::SetBundleTaskError
void SetBundleTaskError(const BundleTaskError &value)
Definition: BundleTask.h:100