AWS SDK for C++  0.12.9
AWS SDK for C++
ImageDiskContainer.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  ImageDiskContainer& 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 const Aws::String& GetDescription() const{ return m_description; }
52 
56  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 
61  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 
66  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 
71  inline ImageDiskContainer& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 
76  inline ImageDiskContainer& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
77 
81  inline ImageDiskContainer& WithDescription(const char* value) { SetDescription(value); return *this;}
82 
87  inline const Aws::String& GetFormat() const{ return m_format; }
88 
93  inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
94 
99  inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = value; }
100 
105  inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
106 
111  inline ImageDiskContainer& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
112 
117  inline ImageDiskContainer& WithFormat(Aws::String&& value) { SetFormat(value); return *this;}
118 
123  inline ImageDiskContainer& WithFormat(const char* value) { SetFormat(value); return *this;}
124 
129  inline const Aws::String& GetUrl() const{ return m_url; }
130 
135  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
136 
141  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = value; }
142 
147  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
148 
153  inline ImageDiskContainer& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
154 
159  inline ImageDiskContainer& WithUrl(Aws::String&& value) { SetUrl(value); return *this;}
160 
165  inline ImageDiskContainer& WithUrl(const char* value) { SetUrl(value); return *this;}
166 
170  inline const UserBucket& GetUserBucket() const{ return m_userBucket; }
171 
175  inline void SetUserBucket(const UserBucket& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
176 
180  inline void SetUserBucket(UserBucket&& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
181 
185  inline ImageDiskContainer& WithUserBucket(const UserBucket& value) { SetUserBucket(value); return *this;}
186 
190  inline ImageDiskContainer& WithUserBucket(UserBucket&& value) { SetUserBucket(value); return *this;}
191 
195  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
196 
200  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
201 
205  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
206 
210  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
211 
215  inline ImageDiskContainer& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
216 
220  inline ImageDiskContainer& WithDeviceName(Aws::String&& value) { SetDeviceName(value); return *this;}
221 
225  inline ImageDiskContainer& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
226 
230  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
231 
235  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
236 
240  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
241 
245  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
246 
250  inline ImageDiskContainer& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
251 
255  inline ImageDiskContainer& WithSnapshotId(Aws::String&& value) { SetSnapshotId(value); return *this;}
256 
260  inline ImageDiskContainer& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
261 
262  private:
263  Aws::String m_description;
264  bool m_descriptionHasBeenSet;
265  Aws::String m_format;
266  bool m_formatHasBeenSet;
267  Aws::String m_url;
268  bool m_urlHasBeenSet;
269  UserBucket m_userBucket;
270  bool m_userBucketHasBeenSet;
271  Aws::String m_deviceName;
272  bool m_deviceNameHasBeenSet;
273  Aws::String m_snapshotId;
274  bool m_snapshotIdHasBeenSet;
275  };
276 
277 } // namespace Model
278 } // namespace EC2
279 } // namespace Aws
const Aws::String & GetUrl() const
ImageDiskContainer & WithFormat(Aws::String &&value)
ImageDiskContainer & WithFormat(const char *value)
const Aws::String & GetSnapshotId() const
ImageDiskContainer & WithUserBucket(const UserBucket &value)
ImageDiskContainer & WithSnapshotId(const Aws::String &value)
ImageDiskContainer & WithDescription(const char *value)
ImageDiskContainer & WithSnapshotId(Aws::String &&value)
ImageDiskContainer & WithUrl(const char *value)
void SetUserBucket(UserBucket &&value)
void SetSnapshotId(Aws::String &&value)
void SetUserBucket(const UserBucket &value)
ImageDiskContainer & WithDescription(const Aws::String &value)
void SetDescription(const char *value)
const Aws::String & GetDescription() const
ImageDiskContainer & WithDeviceName(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetFormat() const
void SetDescription(Aws::String &&value)
ImageDiskContainer & WithUrl(Aws::String &&value)
ImageDiskContainer & WithSnapshotId(const char *value)
ImageDiskContainer & WithFormat(const Aws::String &value)
void SetSnapshotId(const Aws::String &value)
const UserBucket & GetUserBucket() const
void SetDeviceName(const Aws::String &value)
void SetFormat(Aws::String &&value)
const Aws::String & GetDeviceName() const
ImageDiskContainer & WithUserBucket(UserBucket &&value)
void SetDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetFormat(const Aws::String &value)
ImageDiskContainer & WithUrl(const Aws::String &value)
void SetUrl(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
ImageDiskContainer & WithDescription(Aws::String &&value)
ImageDiskContainer & WithDeviceName(const char *value)
ImageDiskContainer & WithDeviceName(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetDeviceName(Aws::String &&value)