AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BundleTask.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/BundleTaskState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/Storage.h>
13#include <aws/ec2/model/BundleTaskError.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_EC2_API BundleTask() = default;
39 AWS_EC2_API BundleTask(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_EC2_API BundleTask& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
51 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
52 template<typename InstanceIdT = Aws::String>
53 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
54 template<typename InstanceIdT = Aws::String>
55 BundleTask& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetBundleId() const { return m_bundleId; }
63 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
64 template<typename BundleIdT = Aws::String>
65 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
66 template<typename BundleIdT = Aws::String>
67 BundleTask& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
69
71
74 inline BundleTaskState GetState() const { return m_state; }
75 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
76 inline void SetState(BundleTaskState value) { m_stateHasBeenSet = true; m_state = value; }
77 inline BundleTask& WithState(BundleTaskState value) { SetState(value); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
85 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
86 template<typename StartTimeT = Aws::Utils::DateTime>
87 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
88 template<typename StartTimeT = Aws::Utils::DateTime>
89 BundleTask& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
97 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
98 template<typename UpdateTimeT = Aws::Utils::DateTime>
99 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
100 template<typename UpdateTimeT = Aws::Utils::DateTime>
101 BundleTask& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
103
105
108 inline const Storage& GetStorage() const { return m_storage; }
109 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
110 template<typename StorageT = Storage>
111 void SetStorage(StorageT&& value) { m_storageHasBeenSet = true; m_storage = std::forward<StorageT>(value); }
112 template<typename StorageT = Storage>
113 BundleTask& WithStorage(StorageT&& value) { SetStorage(std::forward<StorageT>(value)); return *this;}
115
117
120 inline const Aws::String& GetProgress() const { return m_progress; }
121 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
122 template<typename ProgressT = Aws::String>
123 void SetProgress(ProgressT&& value) { m_progressHasBeenSet = true; m_progress = std::forward<ProgressT>(value); }
124 template<typename ProgressT = Aws::String>
125 BundleTask& WithProgress(ProgressT&& value) { SetProgress(std::forward<ProgressT>(value)); return *this;}
127
129
132 inline const BundleTaskError& GetBundleTaskError() const { return m_bundleTaskError; }
133 inline bool BundleTaskErrorHasBeenSet() const { return m_bundleTaskErrorHasBeenSet; }
134 template<typename BundleTaskErrorT = BundleTaskError>
135 void SetBundleTaskError(BundleTaskErrorT&& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = std::forward<BundleTaskErrorT>(value); }
136 template<typename BundleTaskErrorT = BundleTaskError>
137 BundleTask& WithBundleTaskError(BundleTaskErrorT&& value) { SetBundleTaskError(std::forward<BundleTaskErrorT>(value)); return *this;}
139 private:
140
141 Aws::String m_instanceId;
142 bool m_instanceIdHasBeenSet = false;
143
144 Aws::String m_bundleId;
145 bool m_bundleIdHasBeenSet = false;
146
148 bool m_stateHasBeenSet = false;
149
150 Aws::Utils::DateTime m_startTime{};
151 bool m_startTimeHasBeenSet = false;
152
153 Aws::Utils::DateTime m_updateTime{};
154 bool m_updateTimeHasBeenSet = false;
155
156 Storage m_storage;
157 bool m_storageHasBeenSet = false;
158
159 Aws::String m_progress;
160 bool m_progressHasBeenSet = false;
161
162 BundleTaskError m_bundleTaskError;
163 bool m_bundleTaskErrorHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
bool UpdateTimeHasBeenSet() const
Definition BundleTask.h:97
BundleTask & WithState(BundleTaskState value)
Definition BundleTask.h:77
BundleTask & WithStorage(StorageT &&value)
Definition BundleTask.h:113
void SetBundleTaskError(BundleTaskErrorT &&value)
Definition BundleTask.h:135
const Aws::String & GetBundleId() const
Definition BundleTask.h:62
const Aws::Utils::DateTime & GetStartTime() const
Definition BundleTask.h:84
void SetState(BundleTaskState value)
Definition BundleTask.h:76
void SetProgress(ProgressT &&value)
Definition BundleTask.h:123
const Aws::String & GetInstanceId() const
Definition BundleTask.h:50
bool InstanceIdHasBeenSet() const
Definition BundleTask.h:51
const Aws::String & GetProgress() const
Definition BundleTask.h:120
const BundleTaskError & GetBundleTaskError() const
Definition BundleTask.h:132
void SetUpdateTime(UpdateTimeT &&value)
Definition BundleTask.h:99
BundleTask & WithUpdateTime(UpdateTimeT &&value)
Definition BundleTask.h:101
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BundleTask & WithInstanceId(InstanceIdT &&value)
Definition BundleTask.h:55
void SetStorage(StorageT &&value)
Definition BundleTask.h:111
AWS_EC2_API BundleTask(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API BundleTask()=default
bool StartTimeHasBeenSet() const
Definition BundleTask.h:85
BundleTask & WithStartTime(StartTimeT &&value)
Definition BundleTask.h:89
const Storage & GetStorage() const
Definition BundleTask.h:108
void SetBundleId(BundleIdT &&value)
Definition BundleTask.h:65
BundleTask & WithBundleId(BundleIdT &&value)
Definition BundleTask.h:67
BundleTaskState GetState() const
Definition BundleTask.h:74
bool BundleTaskErrorHasBeenSet() const
Definition BundleTask.h:133
const Aws::Utils::DateTime & GetUpdateTime() const
Definition BundleTask.h:96
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BundleTask & WithProgress(ProgressT &&value)
Definition BundleTask.h:125
AWS_EC2_API BundleTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool BundleIdHasBeenSet() const
Definition BundleTask.h:63
void SetInstanceId(InstanceIdT &&value)
Definition BundleTask.h:53
void SetStartTime(StartTimeT &&value)
Definition BundleTask.h:87
bool ProgressHasBeenSet() const
Definition BundleTask.h:121
BundleTask & WithBundleTaskError(BundleTaskErrorT &&value)
Definition BundleTask.h:137
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream