AWS SDK for C++  0.14.3
AWS SDK for C++
SnapshotDetail.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace EC2
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  SnapshotDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline double GetDiskImageSize() const{ return m_diskImageSize; }
52 
56  inline void SetDiskImageSize(double value) { m_diskImageSizeHasBeenSet = true; m_diskImageSize = value; }
57 
61  inline SnapshotDetail& WithDiskImageSize(double value) { SetDiskImageSize(value); return *this;}
62 
66  inline const Aws::String& GetDescription() const{ return m_description; }
67 
71  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 
76  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 
81  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 
86  inline SnapshotDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 
91  inline SnapshotDetail& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
92 
96  inline SnapshotDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
97 
101  inline const Aws::String& GetFormat() const{ return m_format; }
102 
106  inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
107 
111  inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = value; }
112 
116  inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
117 
121  inline SnapshotDetail& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
122 
126  inline SnapshotDetail& WithFormat(Aws::String&& value) { SetFormat(value); return *this;}
127 
131  inline SnapshotDetail& WithFormat(const char* value) { SetFormat(value); return *this;}
132 
136  inline const Aws::String& GetUrl() const{ return m_url; }
137 
141  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
142 
146  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = value; }
147 
151  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
152 
156  inline SnapshotDetail& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
157 
161  inline SnapshotDetail& WithUrl(Aws::String&& value) { SetUrl(value); return *this;}
162 
166  inline SnapshotDetail& WithUrl(const char* value) { SetUrl(value); return *this;}
167 
171  inline const UserBucketDetails& GetUserBucket() const{ return m_userBucket; }
172 
176  inline void SetUserBucket(const UserBucketDetails& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
177 
181  inline void SetUserBucket(UserBucketDetails&& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
182 
186  inline SnapshotDetail& WithUserBucket(const UserBucketDetails& value) { SetUserBucket(value); return *this;}
187 
191  inline SnapshotDetail& WithUserBucket(UserBucketDetails&& value) { SetUserBucket(value); return *this;}
192 
196  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
197 
201  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
202 
206  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
207 
211  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
212 
216  inline SnapshotDetail& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
217 
221  inline SnapshotDetail& WithDeviceName(Aws::String&& value) { SetDeviceName(value); return *this;}
222 
226  inline SnapshotDetail& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
227 
231  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
232 
236  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
237 
241  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
242 
246  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
247 
251  inline SnapshotDetail& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
252 
256  inline SnapshotDetail& WithSnapshotId(Aws::String&& value) { SetSnapshotId(value); return *this;}
257 
261  inline SnapshotDetail& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
262 
266  inline const Aws::String& GetProgress() const{ return m_progress; }
267 
271  inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
272 
276  inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = value; }
277 
281  inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
282 
286  inline SnapshotDetail& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
287 
291  inline SnapshotDetail& WithProgress(Aws::String&& value) { SetProgress(value); return *this;}
292 
296  inline SnapshotDetail& WithProgress(const char* value) { SetProgress(value); return *this;}
297 
301  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
302 
306  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
307 
311  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
312 
316  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
317 
321  inline SnapshotDetail& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
322 
326  inline SnapshotDetail& WithStatusMessage(Aws::String&& value) { SetStatusMessage(value); return *this;}
327 
331  inline SnapshotDetail& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
332 
336  inline const Aws::String& GetStatus() const{ return m_status; }
337 
341  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
342 
346  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
347 
351  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
352 
356  inline SnapshotDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
357 
361  inline SnapshotDetail& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
362 
366  inline SnapshotDetail& WithStatus(const char* value) { SetStatus(value); return *this;}
367 
368  private:
369  double m_diskImageSize;
370  bool m_diskImageSizeHasBeenSet;
371  Aws::String m_description;
372  bool m_descriptionHasBeenSet;
373  Aws::String m_format;
374  bool m_formatHasBeenSet;
375  Aws::String m_url;
376  bool m_urlHasBeenSet;
377  UserBucketDetails m_userBucket;
378  bool m_userBucketHasBeenSet;
379  Aws::String m_deviceName;
380  bool m_deviceNameHasBeenSet;
381  Aws::String m_snapshotId;
382  bool m_snapshotIdHasBeenSet;
383  Aws::String m_progress;
384  bool m_progressHasBeenSet;
385  Aws::String m_statusMessage;
386  bool m_statusMessageHasBeenSet;
387  Aws::String m_status;
388  bool m_statusHasBeenSet;
389  };
390 
391 } // namespace Model
392 } // namespace EC2
393 } // namespace Aws
void SetStatus(const char *value)
void SetUserBucket(const UserBucketDetails &value)
void SetDeviceName(Aws::String &&value)
SnapshotDetail & WithFormat(const char *value)
const Aws::String & GetProgress() const
void SetStatusMessage(const Aws::String &value)
SnapshotDetail & WithStatusMessage(const Aws::String &value)
void SetFormat(Aws::String &&value)
void SetProgress(const Aws::String &value)
SnapshotDetail & WithProgress(const Aws::String &value)
void SetSnapshotId(const char *value)
SnapshotDetail & WithFormat(const Aws::String &value)
void SetStatus(const Aws::String &value)
SnapshotDetail & WithStatus(Aws::String &&value)
void SetDescription(const char *value)
const Aws::String & GetFormat() const
SnapshotDetail & WithFormat(Aws::String &&value)
SnapshotDetail & WithUrl(const Aws::String &value)
void SetFormat(const Aws::String &value)
void SetSnapshotId(Aws::String &&value)
void SetUrl(Aws::String &&value)
void SetUrl(const Aws::String &value)
void SetDescription(const Aws::String &value)
SnapshotDetail & WithDiskImageSize(double value)
void SetStatus(Aws::String &&value)
void SetUserBucket(UserBucketDetails &&value)
void SetDiskImageSize(double value)
const Aws::String & GetStatus() const
void SetFormat(const char *value)
SnapshotDetail & WithDeviceName(const char *value)
void SetDescription(Aws::String &&value)
const UserBucketDetails & GetUserBucket() const
SnapshotDetail & WithUrl(const char *value)
SnapshotDetail & WithUrl(Aws::String &&value)
SnapshotDetail & WithStatusMessage(const char *value)
SnapshotDetail & WithDeviceName(const Aws::String &value)
void SetUrl(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetDeviceName(const char *value)
SnapshotDetail & WithSnapshotId(Aws::String &&value)
SnapshotDetail & WithStatus(const Aws::String &value)
SnapshotDetail & WithUserBucket(const UserBucketDetails &value)
SnapshotDetail & WithDescription(const Aws::String &value)
SnapshotDetail & WithUserBucket(UserBucketDetails &&value)
void SetStatusMessage(Aws::String &&value)
void SetStatusMessage(const char *value)
SnapshotDetail & WithDescription(const char *value)
SnapshotDetail & WithDeviceName(Aws::String &&value)
SnapshotDetail & WithProgress(const char *value)
void SetProgress(Aws::String &&value)
SnapshotDetail & WithSnapshotId(const char *value)
SnapshotDetail & WithStatusMessage(Aws::String &&value)
const Aws::String & GetStatusMessage() const
void SetSnapshotId(const Aws::String &value)
SnapshotDetail & WithSnapshotId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetProgress(const char *value)
const Aws::String & GetDescription() const
void SetDeviceName(const Aws::String &value)
const Aws::String & GetDeviceName() const
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
const Aws::String & GetUrl() const
SnapshotDetail & WithProgress(Aws::String &&value)
SnapshotDetail & WithStatus(const char *value)
const Aws::String & GetSnapshotId() const
SnapshotDetail & WithDescription(Aws::String &&value)
JSON (JavaScript Object Notation).