AWS SDK for C++  0.12.9
AWS SDK for C++
BundleTask.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
21 #include <aws/ec2/model/Storage.h>
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlNode;
31 } // namespace Xml
32 } // namespace Utils
33 namespace EC2
34 {
35 namespace Model
36 {
37 
42  {
43  public:
44  BundleTask();
45  BundleTask(const Aws::Utils::Xml::XmlNode& xmlNode);
46  BundleTask& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
54  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
55 
59  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
60 
64  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
65 
69  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
70 
74  inline BundleTask& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
75 
79  inline BundleTask& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
80 
84  inline BundleTask& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
85 
89  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
90 
94  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
95 
99  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
100 
104  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
105 
109  inline BundleTask& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
110 
114  inline BundleTask& WithBundleId(Aws::String&& value) { SetBundleId(value); return *this;}
115 
119  inline BundleTask& WithBundleId(const char* value) { SetBundleId(value); return *this;}
120 
124  inline const BundleTaskState& GetState() const{ return m_state; }
125 
129  inline void SetState(const BundleTaskState& value) { m_stateHasBeenSet = true; m_state = value; }
130 
134  inline void SetState(BundleTaskState&& value) { m_stateHasBeenSet = true; m_state = value; }
135 
139  inline BundleTask& WithState(const BundleTaskState& value) { SetState(value); return *this;}
140 
144  inline BundleTask& WithState(BundleTaskState&& value) { SetState(value); return *this;}
145 
149  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
150 
154  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
155 
159  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
160 
164  inline BundleTask& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
165 
169  inline BundleTask& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
170 
174  inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
175 
179  inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
180 
184  inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
185 
189  inline BundleTask& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
190 
194  inline BundleTask& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(value); return *this;}
195 
199  inline const Storage& GetStorage() const{ return m_storage; }
200 
204  inline void SetStorage(const Storage& value) { m_storageHasBeenSet = true; m_storage = value; }
205 
209  inline void SetStorage(Storage&& value) { m_storageHasBeenSet = true; m_storage = value; }
210 
214  inline BundleTask& WithStorage(const Storage& value) { SetStorage(value); return *this;}
215 
219  inline BundleTask& WithStorage(Storage&& value) { SetStorage(value); return *this;}
220 
224  inline const Aws::String& GetProgress() const{ return m_progress; }
225 
229  inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
230 
234  inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = value; }
235 
239  inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
240 
244  inline BundleTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
245 
249  inline BundleTask& WithProgress(Aws::String&& value) { SetProgress(value); return *this;}
250 
254  inline BundleTask& WithProgress(const char* value) { SetProgress(value); return *this;}
255 
259  inline const BundleTaskError& GetBundleTaskError() const{ return m_bundleTaskError; }
260 
264  inline void SetBundleTaskError(const BundleTaskError& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = value; }
265 
269  inline void SetBundleTaskError(BundleTaskError&& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = value; }
270 
274  inline BundleTask& WithBundleTaskError(const BundleTaskError& value) { SetBundleTaskError(value); return *this;}
275 
279  inline BundleTask& WithBundleTaskError(BundleTaskError&& value) { SetBundleTaskError(value); return *this;}
280 
281  private:
282  Aws::String m_instanceId;
283  bool m_instanceIdHasBeenSet;
284  Aws::String m_bundleId;
285  bool m_bundleIdHasBeenSet;
286  BundleTaskState m_state;
287  bool m_stateHasBeenSet;
288  Aws::Utils::DateTime m_startTime;
289  bool m_startTimeHasBeenSet;
290  Aws::Utils::DateTime m_updateTime;
291  bool m_updateTimeHasBeenSet;
292  Storage m_storage;
293  bool m_storageHasBeenSet;
294  Aws::String m_progress;
295  bool m_progressHasBeenSet;
296  BundleTaskError m_bundleTaskError;
297  bool m_bundleTaskErrorHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace EC2
302 } // namespace Aws
const Aws::String & GetProgress() const
Definition: BundleTask.h:224
void SetState(BundleTaskState &&value)
Definition: BundleTask.h:134
void SetBundleId(const char *value)
Definition: BundleTask.h:104
const BundleTaskState & GetState() const
Definition: BundleTask.h:124
void SetBundleTaskError(BundleTaskError &&value)
Definition: BundleTask.h:269
void SetBundleId(Aws::String &&value)
Definition: BundleTask.h:99
void SetProgress(Aws::String &&value)
Definition: BundleTask.h:234
BundleTask & WithState(const BundleTaskState &value)
Definition: BundleTask.h:139
void SetUpdateTime(const Aws::Utils::DateTime &value)
Definition: BundleTask.h:179
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: BundleTask.h:154
void SetInstanceId(Aws::String &&value)
Definition: BundleTask.h:64
BundleTask & WithBundleTaskError(const BundleTaskError &value)
Definition: BundleTask.h:274
BundleTask & WithUpdateTime(const Aws::Utils::DateTime &value)
Definition: BundleTask.h:189
const BundleTaskError & GetBundleTaskError() const
Definition: BundleTask.h:259
void SetProgress(const Aws::String &value)
Definition: BundleTask.h:229
BundleTask & WithBundleId(const Aws::String &value)
Definition: BundleTask.h:109
BundleTask & WithBundleTaskError(BundleTaskError &&value)
Definition: BundleTask.h:279
BundleTask & WithInstanceId(const Aws::String &value)
Definition: BundleTask.h:74
BundleTask & WithProgress(const Aws::String &value)
Definition: BundleTask.h:244
void SetBundleTaskError(const BundleTaskError &value)
Definition: BundleTask.h:264
BundleTask & WithInstanceId(Aws::String &&value)
Definition: BundleTask.h:79
BundleTask & WithBundleId(Aws::String &&value)
Definition: BundleTask.h:114
BundleTask & WithUpdateTime(Aws::Utils::DateTime &&value)
Definition: BundleTask.h:194
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
BundleTask & WithBundleId(const char *value)
Definition: BundleTask.h:119
const Aws::String & GetInstanceId() const
Definition: BundleTask.h:54
void SetInstanceId(const char *value)
Definition: BundleTask.h:69
BundleTask & WithProgress(const char *value)
Definition: BundleTask.h:254
void SetState(const BundleTaskState &value)
Definition: BundleTask.h:129
BundleTask & WithStorage(Storage &&value)
Definition: BundleTask.h:219
void SetStorage(const Storage &value)
Definition: BundleTask.h:204
BundleTask & WithStorage(const Storage &value)
Definition: BundleTask.h:214
void SetProgress(const char *value)
Definition: BundleTask.h:239
const Aws::String & GetBundleId() const
Definition: BundleTask.h:89
BundleTask & WithStartTime(const Aws::Utils::DateTime &value)
Definition: BundleTask.h:164
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: BundleTask.h:159
void SetStorage(Storage &&value)
Definition: BundleTask.h:209
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetInstanceId(const Aws::String &value)
Definition: BundleTask.h:59
BundleTask & WithState(BundleTaskState &&value)
Definition: BundleTask.h:144
const Aws::Utils::DateTime & GetUpdateTime() const
Definition: BundleTask.h:174
const Storage & GetStorage() const
Definition: BundleTask.h:199
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
BundleTask & WithInstanceId(const char *value)
Definition: BundleTask.h:84
BundleTask & WithStartTime(Aws::Utils::DateTime &&value)
Definition: BundleTask.h:169
BundleTask & WithProgress(Aws::String &&value)
Definition: BundleTask.h:249
void SetBundleId(const Aws::String &value)
Definition: BundleTask.h:94
JSON (JavaScript Object Notation).
void SetUpdateTime(Aws::Utils::DateTime &&value)
Definition: BundleTask.h:184
const Aws::Utils::DateTime & GetStartTime() const
Definition: BundleTask.h:149