AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImageDiskContainer.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/UserBucket.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API ImageDiskContainer() = default;
32 AWS_EC2_API ImageDiskContainer(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template <typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) {
46 m_descriptionHasBeenSet = true;
47 m_description = std::forward<DescriptionT>(value);
48 }
49 template <typename DescriptionT = Aws::String>
50 ImageDiskContainer& WithDescription(DescriptionT&& value) {
51 SetDescription(std::forward<DescriptionT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
61 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
62 template <typename DeviceNameT = Aws::String>
63 void SetDeviceName(DeviceNameT&& value) {
64 m_deviceNameHasBeenSet = true;
65 m_deviceName = std::forward<DeviceNameT>(value);
66 }
67 template <typename DeviceNameT = Aws::String>
68 ImageDiskContainer& WithDeviceName(DeviceNameT&& value) {
69 SetDeviceName(std::forward<DeviceNameT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetFormat() const { return m_format; }
81 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
82 template <typename FormatT = Aws::String>
83 void SetFormat(FormatT&& value) {
84 m_formatHasBeenSet = true;
85 m_format = std::forward<FormatT>(value);
86 }
87 template <typename FormatT = Aws::String>
88 ImageDiskContainer& WithFormat(FormatT&& value) {
89 SetFormat(std::forward<FormatT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
99 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
100 template <typename SnapshotIdT = Aws::String>
101 void SetSnapshotId(SnapshotIdT&& value) {
102 m_snapshotIdHasBeenSet = true;
103 m_snapshotId = std::forward<SnapshotIdT>(value);
104 }
105 template <typename SnapshotIdT = Aws::String>
106 ImageDiskContainer& WithSnapshotId(SnapshotIdT&& value) {
107 SetSnapshotId(std::forward<SnapshotIdT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetUrl() const { return m_url; }
118 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
119 template <typename UrlT = Aws::String>
120 void SetUrl(UrlT&& value) {
121 m_urlHasBeenSet = true;
122 m_url = std::forward<UrlT>(value);
123 }
124 template <typename UrlT = Aws::String>
126 SetUrl(std::forward<UrlT>(value));
127 return *this;
128 }
130
132
135 inline const UserBucket& GetUserBucket() const { return m_userBucket; }
136 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
137 template <typename UserBucketT = UserBucket>
138 void SetUserBucket(UserBucketT&& value) {
139 m_userBucketHasBeenSet = true;
140 m_userBucket = std::forward<UserBucketT>(value);
141 }
142 template <typename UserBucketT = UserBucket>
143 ImageDiskContainer& WithUserBucket(UserBucketT&& value) {
144 SetUserBucket(std::forward<UserBucketT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_description;
150
151 Aws::String m_deviceName;
152
153 Aws::String m_format;
154
155 Aws::String m_snapshotId;
156
157 Aws::String m_url;
158
159 UserBucket m_userBucket;
160 bool m_descriptionHasBeenSet = false;
161 bool m_deviceNameHasBeenSet = false;
162 bool m_formatHasBeenSet = false;
163 bool m_snapshotIdHasBeenSet = false;
164 bool m_urlHasBeenSet = false;
165 bool m_userBucketHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace EC2
170} // namespace Aws
ImageDiskContainer & WithDescription(DescriptionT &&value)
const Aws::String & GetDeviceName() const
AWS_EC2_API ImageDiskContainer()=default
void SetSnapshotId(SnapshotIdT &&value)
const Aws::String & GetSnapshotId() const
const Aws::String & GetUrl() const
ImageDiskContainer & WithUrl(UrlT &&value)
const Aws::String & GetFormat() const
ImageDiskContainer & WithSnapshotId(SnapshotIdT &&value)
void SetDescription(DescriptionT &&value)
AWS_EC2_API ImageDiskContainer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUserBucket(UserBucketT &&value)
const UserBucket & GetUserBucket() const
ImageDiskContainer & WithDeviceName(DeviceNameT &&value)
const Aws::String & GetDescription() const
AWS_EC2_API ImageDiskContainer(const Aws::Utils::Xml::XmlNode &xmlNode)
ImageDiskContainer & WithFormat(FormatT &&value)
ImageDiskContainer & WithUserBucket(UserBucketT &&value)
void SetDeviceName(DeviceNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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