AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BundleTask.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/BundleTaskError.h>
12#include <aws/ec2/model/BundleTaskState.h>
13#include <aws/ec2/model/Storage.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
25
32 public:
33 AWS_EC2_API BundleTask() = default;
34 AWS_EC2_API BundleTask(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_EC2_API BundleTask& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 template <typename InstanceIdT = Aws::String>
47 void SetInstanceId(InstanceIdT&& value) {
48 m_instanceIdHasBeenSet = true;
49 m_instanceId = std::forward<InstanceIdT>(value);
50 }
51 template <typename InstanceIdT = Aws::String>
52 BundleTask& WithInstanceId(InstanceIdT&& value) {
53 SetInstanceId(std::forward<InstanceIdT>(value));
54 return *this;
55 }
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) {
66 m_bundleIdHasBeenSet = true;
67 m_bundleId = std::forward<BundleIdT>(value);
68 }
69 template <typename BundleIdT = Aws::String>
70 BundleTask& WithBundleId(BundleIdT&& value) {
71 SetBundleId(std::forward<BundleIdT>(value));
72 return *this;
73 }
75
77
80 inline BundleTaskState GetState() const { return m_state; }
81 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
82 inline void SetState(BundleTaskState value) {
83 m_stateHasBeenSet = true;
84 m_state = value;
85 }
87 SetState(value);
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
97 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
98 template <typename StartTimeT = Aws::Utils::DateTime>
99 void SetStartTime(StartTimeT&& value) {
100 m_startTimeHasBeenSet = true;
101 m_startTime = std::forward<StartTimeT>(value);
102 }
103 template <typename StartTimeT = Aws::Utils::DateTime>
104 BundleTask& WithStartTime(StartTimeT&& value) {
105 SetStartTime(std::forward<StartTimeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
115 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
116 template <typename UpdateTimeT = Aws::Utils::DateTime>
117 void SetUpdateTime(UpdateTimeT&& value) {
118 m_updateTimeHasBeenSet = true;
119 m_updateTime = std::forward<UpdateTimeT>(value);
120 }
121 template <typename UpdateTimeT = Aws::Utils::DateTime>
122 BundleTask& WithUpdateTime(UpdateTimeT&& value) {
123 SetUpdateTime(std::forward<UpdateTimeT>(value));
124 return *this;
125 }
127
129
132 inline const Storage& GetStorage() const { return m_storage; }
133 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
134 template <typename StorageT = Storage>
135 void SetStorage(StorageT&& value) {
136 m_storageHasBeenSet = true;
137 m_storage = std::forward<StorageT>(value);
138 }
139 template <typename StorageT = Storage>
140 BundleTask& WithStorage(StorageT&& value) {
141 SetStorage(std::forward<StorageT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetProgress() const { return m_progress; }
151 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
152 template <typename ProgressT = Aws::String>
153 void SetProgress(ProgressT&& value) {
154 m_progressHasBeenSet = true;
155 m_progress = std::forward<ProgressT>(value);
156 }
157 template <typename ProgressT = Aws::String>
158 BundleTask& WithProgress(ProgressT&& value) {
159 SetProgress(std::forward<ProgressT>(value));
160 return *this;
161 }
163
165
168 inline const BundleTaskError& GetBundleTaskError() const { return m_bundleTaskError; }
169 inline bool BundleTaskErrorHasBeenSet() const { return m_bundleTaskErrorHasBeenSet; }
170 template <typename BundleTaskErrorT = BundleTaskError>
171 void SetBundleTaskError(BundleTaskErrorT&& value) {
172 m_bundleTaskErrorHasBeenSet = true;
173 m_bundleTaskError = std::forward<BundleTaskErrorT>(value);
174 }
175 template <typename BundleTaskErrorT = BundleTaskError>
176 BundleTask& WithBundleTaskError(BundleTaskErrorT&& value) {
177 SetBundleTaskError(std::forward<BundleTaskErrorT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_instanceId;
183
184 Aws::String m_bundleId;
185
187
188 Aws::Utils::DateTime m_startTime{};
189
190 Aws::Utils::DateTime m_updateTime{};
191
192 Storage m_storage;
193
194 Aws::String m_progress;
195
196 BundleTaskError m_bundleTaskError;
197 bool m_instanceIdHasBeenSet = false;
198 bool m_bundleIdHasBeenSet = false;
199 bool m_stateHasBeenSet = false;
200 bool m_startTimeHasBeenSet = false;
201 bool m_updateTimeHasBeenSet = false;
202 bool m_storageHasBeenSet = false;
203 bool m_progressHasBeenSet = false;
204 bool m_bundleTaskErrorHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace EC2
209} // namespace Aws
bool UpdateTimeHasBeenSet() const
Definition BundleTask.h:115
BundleTask & WithState(BundleTaskState value)
Definition BundleTask.h:86
BundleTask & WithStorage(StorageT &&value)
Definition BundleTask.h:140
void SetBundleTaskError(BundleTaskErrorT &&value)
Definition BundleTask.h:171
const Aws::String & GetBundleId() const
Definition BundleTask.h:62
const Aws::Utils::DateTime & GetStartTime() const
Definition BundleTask.h:96
void SetState(BundleTaskState value)
Definition BundleTask.h:82
void SetProgress(ProgressT &&value)
Definition BundleTask.h:153
const Aws::String & GetInstanceId() const
Definition BundleTask.h:44
bool InstanceIdHasBeenSet() const
Definition BundleTask.h:45
const Aws::String & GetProgress() const
Definition BundleTask.h:150
const BundleTaskError & GetBundleTaskError() const
Definition BundleTask.h:168
void SetUpdateTime(UpdateTimeT &&value)
Definition BundleTask.h:117
BundleTask & WithUpdateTime(UpdateTimeT &&value)
Definition BundleTask.h:122
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BundleTask & WithInstanceId(InstanceIdT &&value)
Definition BundleTask.h:52
void SetStorage(StorageT &&value)
Definition BundleTask.h:135
AWS_EC2_API BundleTask(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API BundleTask()=default
bool StartTimeHasBeenSet() const
Definition BundleTask.h:97
BundleTask & WithStartTime(StartTimeT &&value)
Definition BundleTask.h:104
const Storage & GetStorage() const
Definition BundleTask.h:132
void SetBundleId(BundleIdT &&value)
Definition BundleTask.h:65
BundleTask & WithBundleId(BundleIdT &&value)
Definition BundleTask.h:70
BundleTaskState GetState() const
Definition BundleTask.h:80
bool BundleTaskErrorHasBeenSet() const
Definition BundleTask.h:169
const Aws::Utils::DateTime & GetUpdateTime() const
Definition BundleTask.h:114
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BundleTask & WithProgress(ProgressT &&value)
Definition BundleTask.h:158
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:47
void SetStartTime(StartTimeT &&value)
Definition BundleTask.h:99
bool ProgressHasBeenSet() const
Definition BundleTask.h:151
BundleTask & WithBundleTaskError(BundleTaskErrorT &&value)
Definition BundleTask.h:176
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream