AWS SDK for C++  1.9.102
AWS SDK for C++
ImageDiskContainer.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetDescription() const{ return m_description; }
48 
52  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 
57  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 
62  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 
67  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 
72  inline ImageDiskContainer& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
73 
77  inline ImageDiskContainer& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 
82  inline ImageDiskContainer& WithDescription(const char* value) { SetDescription(value); return *this;}
83 
84 
88  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
89 
93  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
94 
98  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
99 
103  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
104 
108  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
109 
113  inline ImageDiskContainer& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
114 
118  inline ImageDiskContainer& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
119 
123  inline ImageDiskContainer& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
124 
125 
131  inline const Aws::String& GetFormat() const{ return m_format; }
132 
138  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
139 
145  inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
146 
152  inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
153 
159  inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
160 
166  inline ImageDiskContainer& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
167 
173  inline ImageDiskContainer& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
174 
180  inline ImageDiskContainer& WithFormat(const char* value) { SetFormat(value); return *this;}
181 
182 
186  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
187 
191  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
192 
196  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
197 
201  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
202 
206  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
207 
211  inline ImageDiskContainer& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
212 
216  inline ImageDiskContainer& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
217 
221  inline ImageDiskContainer& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
222 
223 
228  inline const Aws::String& GetUrl() const{ return m_url; }
229 
234  inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
235 
240  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
241 
246  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
247 
252  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
253 
258  inline ImageDiskContainer& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
259 
264  inline ImageDiskContainer& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
265 
270  inline ImageDiskContainer& WithUrl(const char* value) { SetUrl(value); return *this;}
271 
272 
276  inline const UserBucket& GetUserBucket() const{ return m_userBucket; }
277 
281  inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
282 
286  inline void SetUserBucket(const UserBucket& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
287 
291  inline void SetUserBucket(UserBucket&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::move(value); }
292 
296  inline ImageDiskContainer& WithUserBucket(const UserBucket& value) { SetUserBucket(value); return *this;}
297 
301  inline ImageDiskContainer& WithUserBucket(UserBucket&& value) { SetUserBucket(std::move(value)); return *this;}
302 
303  private:
304 
305  Aws::String m_description;
306  bool m_descriptionHasBeenSet;
307 
308  Aws::String m_deviceName;
309  bool m_deviceNameHasBeenSet;
310 
311  Aws::String m_format;
312  bool m_formatHasBeenSet;
313 
314  Aws::String m_snapshotId;
315  bool m_snapshotIdHasBeenSet;
316 
317  Aws::String m_url;
318  bool m_urlHasBeenSet;
319 
320  UserBucket m_userBucket;
321  bool m_userBucketHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace EC2
326 } // namespace Aws
Aws::EC2::Model::ImageDiskContainer::UrlHasBeenSet
bool UrlHasBeenSet() const
Definition: ImageDiskContainer.h:234
Aws::EC2::Model::ImageDiskContainer::WithDeviceName
ImageDiskContainer & WithDeviceName(const Aws::String &value)
Definition: ImageDiskContainer.h:113
Aws::EC2::Model::ImageDiskContainer::WithUserBucket
ImageDiskContainer & WithUserBucket(UserBucket &&value)
Definition: ImageDiskContainer.h:301
Aws::EC2::Model::ImageDiskContainer::SetDescription
void SetDescription(const char *value)
Definition: ImageDiskContainer.h:67
Aws::EC2::Model::ImageDiskContainer::SetFormat
void SetFormat(const char *value)
Definition: ImageDiskContainer.h:159
Aws::EC2::Model::ImageDiskContainer::GetUrl
const Aws::String & GetUrl() const
Definition: ImageDiskContainer.h:228
Aws::EC2::Model::ImageDiskContainer::WithDeviceName
ImageDiskContainer & WithDeviceName(const char *value)
Definition: ImageDiskContainer.h:123
Aws::EC2::Model::ImageDiskContainer
Definition: ImageDiskContainer.h:34
Aws::EC2::Model::ImageDiskContainer::SetUserBucket
void SetUserBucket(const UserBucket &value)
Definition: ImageDiskContainer.h:286
Aws::EC2::Model::ImageDiskContainer::WithFormat
ImageDiskContainer & WithFormat(Aws::String &&value)
Definition: ImageDiskContainer.h:173
Aws::EC2::Model::ImageDiskContainer::SetUrl
void SetUrl(const char *value)
Definition: ImageDiskContainer.h:252
Aws::EC2::Model::ImageDiskContainer::operator=
ImageDiskContainer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ImageDiskContainer::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: ImageDiskContainer.h:88
UserBucket.h
Aws::EC2::Model::ImageDiskContainer::WithUrl
ImageDiskContainer & WithUrl(const char *value)
Definition: ImageDiskContainer.h:270
Aws::EC2::Model::ImageDiskContainer::SetUrl
void SetUrl(Aws::String &&value)
Definition: ImageDiskContainer.h:246
Aws::EC2::Model::ImageDiskContainer::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: ImageDiskContainer.h:103
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ImageDiskContainer::GetDescription
const Aws::String & GetDescription() const
Definition: ImageDiskContainer.h:47
Aws::EC2::Model::ImageDiskContainer::ImageDiskContainer
ImageDiskContainer()
Aws::EC2::Model::ImageDiskContainer::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: ImageDiskContainer.h:138
Aws::EC2::Model::ImageDiskContainer::ImageDiskContainer
ImageDiskContainer(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ImageDiskContainer::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: ImageDiskContainer.h:196
Aws::EC2::Model::ImageDiskContainer::WithSnapshotId
ImageDiskContainer & WithSnapshotId(Aws::String &&value)
Definition: ImageDiskContainer.h:216
AWSStreamFwd.h
Aws::EC2::Model::ImageDiskContainer::GetUserBucket
const UserBucket & GetUserBucket() const
Definition: ImageDiskContainer.h:276
Aws::EC2::Model::ImageDiskContainer::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ImageDiskContainer::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: ImageDiskContainer.h:186
Aws::EC2::Model::ImageDiskContainer::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: ImageDiskContainer.h:201
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ImageDiskContainer::SetUrl
void SetUrl(const Aws::String &value)
Definition: ImageDiskContainer.h:240
Aws::EC2::Model::ImageDiskContainer::WithFormat
ImageDiskContainer & WithFormat(const char *value)
Definition: ImageDiskContainer.h:180
Aws::EC2::Model::ImageDiskContainer::SetFormat
void SetFormat(Aws::String &&value)
Definition: ImageDiskContainer.h:152
Aws::EC2::Model::ImageDiskContainer::WithDescription
ImageDiskContainer & WithDescription(const Aws::String &value)
Definition: ImageDiskContainer.h:72
Aws::EC2::Model::ImageDiskContainer::SetDeviceName
void SetDeviceName(const char *value)
Definition: ImageDiskContainer.h:108
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::UserBucket
Definition: UserBucket.h:32
Aws::EC2::Model::ImageDiskContainer::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: ImageDiskContainer.h:93
Aws::EC2::Model::ImageDiskContainer::SetDescription
void SetDescription(const Aws::String &value)
Definition: ImageDiskContainer.h:57
Aws::EC2::Model::ImageDiskContainer::WithFormat
ImageDiskContainer & WithFormat(const Aws::String &value)
Definition: ImageDiskContainer.h:166
Aws::EC2::Model::ImageDiskContainer::SetDescription
void SetDescription(Aws::String &&value)
Definition: ImageDiskContainer.h:62
AWSString.h
Aws::EC2::Model::ImageDiskContainer::UserBucketHasBeenSet
bool UserBucketHasBeenSet() const
Definition: ImageDiskContainer.h:281
Aws::EC2::Model::ImageDiskContainer::WithSnapshotId
ImageDiskContainer & WithSnapshotId(const char *value)
Definition: ImageDiskContainer.h:221
Aws::EC2::Model::ImageDiskContainer::WithDeviceName
ImageDiskContainer & WithDeviceName(Aws::String &&value)
Definition: ImageDiskContainer.h:118
Aws::EC2::Model::ImageDiskContainer::SetFormat
void SetFormat(const Aws::String &value)
Definition: ImageDiskContainer.h:145
Aws::EC2::Model::ImageDiskContainer::WithUrl
ImageDiskContainer & WithUrl(Aws::String &&value)
Definition: ImageDiskContainer.h:264
Aws::EC2::Model::ImageDiskContainer::WithUserBucket
ImageDiskContainer & WithUserBucket(const UserBucket &value)
Definition: ImageDiskContainer.h:296
Aws::EC2::Model::ImageDiskContainer::WithSnapshotId
ImageDiskContainer & WithSnapshotId(const Aws::String &value)
Definition: ImageDiskContainer.h:211
Aws::EC2::Model::ImageDiskContainer::WithDescription
ImageDiskContainer & WithDescription(const char *value)
Definition: ImageDiskContainer.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ImageDiskContainer::WithDescription
ImageDiskContainer & WithDescription(Aws::String &&value)
Definition: ImageDiskContainer.h:77
Aws::EC2::Model::ImageDiskContainer::SetUserBucket
void SetUserBucket(UserBucket &&value)
Definition: ImageDiskContainer.h:291
Aws::EC2::Model::ImageDiskContainer::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ImageDiskContainer::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: ImageDiskContainer.h:206
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ImageDiskContainer::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: ImageDiskContainer.h:191
Aws::EC2::Model::ImageDiskContainer::GetFormat
const Aws::String & GetFormat() const
Definition: ImageDiskContainer.h:131
Aws::EC2::Model::ImageDiskContainer::WithUrl
ImageDiskContainer & WithUrl(const Aws::String &value)
Definition: ImageDiskContainer.h:258
Aws::EC2::Model::ImageDiskContainer::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ImageDiskContainer.h:52
EC2_EXPORTS.h
Aws::EC2::Model::ImageDiskContainer::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: ImageDiskContainer.h:98