AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageDiskContainer.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/UserBucket.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API ImageDiskContainer();
37 AWS_EC2_API ImageDiskContainer(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetDescription() const{ return m_description; }
49 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
50 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
51 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
52 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
53 inline ImageDiskContainer& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
54 inline ImageDiskContainer& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
55 inline ImageDiskContainer& WithDescription(const char* value) { SetDescription(value); return *this;}
57
59
62 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
63 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
64 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
65 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
66 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
67 inline ImageDiskContainer& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
68 inline ImageDiskContainer& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
69 inline ImageDiskContainer& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
71
73
78 inline const Aws::String& GetFormat() const{ return m_format; }
79 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
80 inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
81 inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
82 inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
83 inline ImageDiskContainer& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
84 inline ImageDiskContainer& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
85 inline ImageDiskContainer& WithFormat(const char* value) { SetFormat(value); return *this;}
87
89
92 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
93 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
94 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
95 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
96 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
97 inline ImageDiskContainer& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
98 inline ImageDiskContainer& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
99 inline ImageDiskContainer& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
101
103
107 inline const Aws::String& GetUrl() const{ return m_url; }
108 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
109 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
110 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
111 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
112 inline ImageDiskContainer& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
113 inline ImageDiskContainer& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
114 inline ImageDiskContainer& WithUrl(const char* value) { SetUrl(value); return *this;}
116
118
121 inline const UserBucket& GetUserBucket() const{ return m_userBucket; }
122 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
123 inline void SetUserBucket(const UserBucket& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
124 inline void SetUserBucket(UserBucket&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::move(value); }
125 inline ImageDiskContainer& WithUserBucket(const UserBucket& value) { SetUserBucket(value); return *this;}
126 inline ImageDiskContainer& WithUserBucket(UserBucket&& value) { SetUserBucket(std::move(value)); return *this;}
128 private:
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::String m_deviceName;
134 bool m_deviceNameHasBeenSet = false;
135
136 Aws::String m_format;
137 bool m_formatHasBeenSet = false;
138
139 Aws::String m_snapshotId;
140 bool m_snapshotIdHasBeenSet = false;
141
142 Aws::String m_url;
143 bool m_urlHasBeenSet = false;
144
145 UserBucket m_userBucket;
146 bool m_userBucketHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
void SetDeviceName(Aws::String &&value)
void SetDescription(const Aws::String &value)
const Aws::String & GetDeviceName() const
ImageDiskContainer & WithUrl(Aws::String &&value)
ImageDiskContainer & WithDescription(Aws::String &&value)
const Aws::String & GetSnapshotId() const
void SetUrl(const Aws::String &value)
ImageDiskContainer & WithDescription(const Aws::String &value)
ImageDiskContainer & WithDeviceName(const char *value)
const Aws::String & GetUrl() const
ImageDiskContainer & WithUrl(const char *value)
const Aws::String & GetFormat() const
ImageDiskContainer & WithDeviceName(Aws::String &&value)
ImageDiskContainer & WithDescription(const char *value)
void SetFormat(Aws::String &&value)
AWS_EC2_API ImageDiskContainer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const UserBucket & GetUserBucket() const
ImageDiskContainer & WithUserBucket(const UserBucket &value)
ImageDiskContainer & WithSnapshotId(Aws::String &&value)
ImageDiskContainer & WithUserBucket(UserBucket &&value)
void SetDeviceName(const Aws::String &value)
void SetFormat(const Aws::String &value)
void SetSnapshotId(Aws::String &&value)
void SetDescription(Aws::String &&value)
void SetUserBucket(const UserBucket &value)
const Aws::String & GetDescription() const
void SetSnapshotId(const Aws::String &value)
AWS_EC2_API ImageDiskContainer(const Aws::Utils::Xml::XmlNode &xmlNode)
ImageDiskContainer & WithFormat(const Aws::String &value)
ImageDiskContainer & WithUrl(const Aws::String &value)
ImageDiskContainer & WithFormat(Aws::String &&value)
ImageDiskContainer & WithSnapshotId(const Aws::String &value)
ImageDiskContainer & WithSnapshotId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImageDiskContainer & WithDeviceName(const Aws::String &value)
ImageDiskContainer & WithFormat(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream