AWS SDK for C++  0.12.9
AWS SDK for C++
SnapshotTaskDetail.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  SnapshotTaskDetail& 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 SnapshotTaskDetail& 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 SnapshotTaskDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 
91  inline SnapshotTaskDetail& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
92 
96  inline SnapshotTaskDetail& 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 SnapshotTaskDetail& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
122 
126  inline SnapshotTaskDetail& WithFormat(Aws::String&& value) { SetFormat(value); return *this;}
127 
131  inline SnapshotTaskDetail& 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 SnapshotTaskDetail& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
157 
161  inline SnapshotTaskDetail& WithUrl(Aws::String&& value) { SetUrl(value); return *this;}
162 
166  inline SnapshotTaskDetail& 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 SnapshotTaskDetail& WithUserBucket(const UserBucketDetails& value) { SetUserBucket(value); return *this;}
187 
191  inline SnapshotTaskDetail& WithUserBucket(UserBucketDetails&& value) { SetUserBucket(value); return *this;}
192 
196  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
197 
201  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
202 
206  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
207 
211  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
212 
216  inline SnapshotTaskDetail& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
217 
221  inline SnapshotTaskDetail& WithSnapshotId(Aws::String&& value) { SetSnapshotId(value); return *this;}
222 
226  inline SnapshotTaskDetail& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
227 
231  inline const Aws::String& GetProgress() const{ return m_progress; }
232 
236  inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
237 
241  inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = value; }
242 
246  inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
247 
251  inline SnapshotTaskDetail& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
252 
256  inline SnapshotTaskDetail& WithProgress(Aws::String&& value) { SetProgress(value); return *this;}
257 
261  inline SnapshotTaskDetail& WithProgress(const char* value) { SetProgress(value); return *this;}
262 
266  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
267 
271  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
272 
276  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
277 
281  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
282 
286  inline SnapshotTaskDetail& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
287 
291  inline SnapshotTaskDetail& WithStatusMessage(Aws::String&& value) { SetStatusMessage(value); return *this;}
292 
296  inline SnapshotTaskDetail& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
297 
301  inline const Aws::String& GetStatus() const{ return m_status; }
302 
306  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
307 
311  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
312 
316  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
317 
321  inline SnapshotTaskDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
322 
326  inline SnapshotTaskDetail& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
327 
331  inline SnapshotTaskDetail& WithStatus(const char* value) { SetStatus(value); return *this;}
332 
333  private:
334  double m_diskImageSize;
335  bool m_diskImageSizeHasBeenSet;
336  Aws::String m_description;
337  bool m_descriptionHasBeenSet;
338  Aws::String m_format;
339  bool m_formatHasBeenSet;
340  Aws::String m_url;
341  bool m_urlHasBeenSet;
342  UserBucketDetails m_userBucket;
343  bool m_userBucketHasBeenSet;
344  Aws::String m_snapshotId;
345  bool m_snapshotIdHasBeenSet;
346  Aws::String m_progress;
347  bool m_progressHasBeenSet;
348  Aws::String m_statusMessage;
349  bool m_statusMessageHasBeenSet;
350  Aws::String m_status;
351  bool m_statusHasBeenSet;
352  };
353 
354 } // namespace Model
355 } // namespace EC2
356 } // namespace Aws
SnapshotTaskDetail & WithDiskImageSize(double value)
void SetSnapshotId(Aws::String &&value)
void SetStatus(Aws::String &&value)
SnapshotTaskDetail & WithStatusMessage(const Aws::String &value)
SnapshotTaskDetail & WithDescription(const char *value)
void SetStatusMessage(const Aws::String &value)
const Aws::String & GetFormat() const
void SetUserBucket(const UserBucketDetails &value)
void SetStatus(const Aws::String &value)
SnapshotTaskDetail & WithProgress(const Aws::String &value)
SnapshotTaskDetail & WithSnapshotId(const Aws::String &value)
void SetUserBucket(UserBucketDetails &&value)
SnapshotTaskDetail & WithUserBucket(const UserBucketDetails &value)
SnapshotTaskDetail & WithDescription(Aws::String &&value)
SnapshotTaskDetail & WithUrl(const Aws::String &value)
SnapshotTaskDetail & WithUserBucket(UserBucketDetails &&value)
SnapshotTaskDetail & WithSnapshotId(Aws::String &&value)
SnapshotTaskDetail & WithUrl(const char *value)
SnapshotTaskDetail & WithStatus(Aws::String &&value)
SnapshotTaskDetail & WithFormat(const Aws::String &value)
void SetProgress(Aws::String &&value)
void SetDescription(Aws::String &&value)
const UserBucketDetails & GetUserBucket() const
SnapshotTaskDetail & WithStatusMessage(Aws::String &&value)
void SetUrl(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
SnapshotTaskDetail & WithFormat(const char *value)
const Aws::String & GetStatus() const
SnapshotTaskDetail & WithProgress(const char *value)
SnapshotTaskDetail & WithDescription(const Aws::String &value)
void SetStatusMessage(const char *value)
SnapshotTaskDetail & WithSnapshotId(const char *value)
SnapshotTaskDetail & WithStatusMessage(const char *value)
SnapshotTaskDetail & WithFormat(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetDescription() const
void SetDescription(const char *value)
SnapshotTaskDetail & WithStatus(const char *value)
void SetFormat(Aws::String &&value)
const Aws::String & GetSnapshotId() const
void SetSnapshotId(const Aws::String &value)
void SetStatusMessage(Aws::String &&value)
const Aws::String & GetUrl() const
const Aws::String & GetProgress() const
void SetDescription(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
SnapshotTaskDetail & WithUrl(Aws::String &&value)
void SetFormat(const Aws::String &value)
void SetProgress(const Aws::String &value)
SnapshotTaskDetail & WithProgress(Aws::String &&value)
SnapshotTaskDetail & WithStatus(const Aws::String &value)
const Aws::String & GetStatusMessage() const
JSON (JavaScript Object Notation).