AWS SDK for C++  1.9.73
AWS SDK for C++
DiskImageDescription.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetChecksum() const{ return m_checksum; }
47 
51  inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
52 
56  inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
57 
61  inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
62 
66  inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
67 
71  inline DiskImageDescription& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
72 
76  inline DiskImageDescription& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
77 
81  inline DiskImageDescription& WithChecksum(const char* value) { SetChecksum(value); return *this;}
82 
83 
87  inline const DiskImageFormat& GetFormat() const{ return m_format; }
88 
92  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
93 
97  inline void SetFormat(const DiskImageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
98 
102  inline void SetFormat(DiskImageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
103 
107  inline DiskImageDescription& WithFormat(const DiskImageFormat& value) { SetFormat(value); return *this;}
108 
112  inline DiskImageDescription& WithFormat(DiskImageFormat&& value) { SetFormat(std::move(value)); return *this;}
113 
114 
126  inline const Aws::String& GetImportManifestUrl() const{ return m_importManifestUrl; }
127 
139  inline bool ImportManifestUrlHasBeenSet() const { return m_importManifestUrlHasBeenSet; }
140 
152  inline void SetImportManifestUrl(const Aws::String& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = value; }
153 
165  inline void SetImportManifestUrl(Aws::String&& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = std::move(value); }
166 
178  inline void SetImportManifestUrl(const char* value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl.assign(value); }
179 
191  inline DiskImageDescription& WithImportManifestUrl(const Aws::String& value) { SetImportManifestUrl(value); return *this;}
192 
204  inline DiskImageDescription& WithImportManifestUrl(Aws::String&& value) { SetImportManifestUrl(std::move(value)); return *this;}
205 
217  inline DiskImageDescription& WithImportManifestUrl(const char* value) { SetImportManifestUrl(value); return *this;}
218 
219 
223  inline long long GetSize() const{ return m_size; }
224 
228  inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
229 
233  inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
234 
238  inline DiskImageDescription& WithSize(long long value) { SetSize(value); return *this;}
239 
240  private:
241 
242  Aws::String m_checksum;
243  bool m_checksumHasBeenSet;
244 
245  DiskImageFormat m_format;
246  bool m_formatHasBeenSet;
247 
248  Aws::String m_importManifestUrl;
249  bool m_importManifestUrlHasBeenSet;
250 
251  long long m_size;
252  bool m_sizeHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace EC2
257 } // namespace Aws
Aws::EC2::Model::DiskImageDescription::DiskImageDescription
DiskImageDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DiskImageDescription::ChecksumHasBeenSet
bool ChecksumHasBeenSet() const
Definition: DiskImageDescription.h:51
Aws::EC2::Model::DiskImageDescription::WithFormat
DiskImageDescription & WithFormat(DiskImageFormat &&value)
Definition: DiskImageDescription.h:112
Aws::EC2::Model::DiskImageDescription::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: DiskImageDescription.h:92
Aws::EC2::Model::DiskImageDescription::GetFormat
const DiskImageFormat & GetFormat() const
Definition: DiskImageDescription.h:87
Aws::EC2::Model::DiskImageDescription::SetFormat
void SetFormat(DiskImageFormat &&value)
Definition: DiskImageDescription.h:102
Aws::EC2::Model::DiskImageDescription::SetImportManifestUrl
void SetImportManifestUrl(const Aws::String &value)
Definition: DiskImageDescription.h:152
Aws::EC2::Model::DiskImageDescription::WithChecksum
DiskImageDescription & WithChecksum(Aws::String &&value)
Definition: DiskImageDescription.h:76
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DiskImageDescription::ImportManifestUrlHasBeenSet
bool ImportManifestUrlHasBeenSet() const
Definition: DiskImageDescription.h:139
Aws::EC2::Model::DiskImageDescription::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::EC2::Model::DiskImageDescription::GetSize
long long GetSize() const
Definition: DiskImageDescription.h:223
Aws::EC2::Model::DiskImageDescription::WithSize
DiskImageDescription & WithSize(long long value)
Definition: DiskImageDescription.h:238
Aws::EC2::Model::DiskImageDescription::SetImportManifestUrl
void SetImportManifestUrl(Aws::String &&value)
Definition: DiskImageDescription.h:165
Aws::EC2::Model::DiskImageDescription::SetSize
void SetSize(long long value)
Definition: DiskImageDescription.h:233
Aws::EC2::Model::DiskImageDescription::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::DiskImageDescription::SetChecksum
void SetChecksum(Aws::String &&value)
Definition: DiskImageDescription.h:61
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DiskImageDescription::WithImportManifestUrl
DiskImageDescription & WithImportManifestUrl(Aws::String &&value)
Definition: DiskImageDescription.h:204
Aws::EC2::Model::DiskImageDescription::SetFormat
void SetFormat(const DiskImageFormat &value)
Definition: DiskImageDescription.h:97
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DiskImageFormat
DiskImageFormat
Definition: DiskImageFormat.h:17
Aws::EC2::Model::DiskImageDescription::DiskImageDescription
DiskImageDescription()
Aws::EC2::Model::DiskImageDescription::WithChecksum
DiskImageDescription & WithChecksum(const char *value)
Definition: DiskImageDescription.h:81
Aws::EC2::Model::DiskImageDescription::WithFormat
DiskImageDescription & WithFormat(const DiskImageFormat &value)
Definition: DiskImageDescription.h:107
Aws::EC2::Model::DiskImageDescription::SetChecksum
void SetChecksum(const Aws::String &value)
Definition: DiskImageDescription.h:56
Aws::EC2::Model::DiskImageDescription::GetImportManifestUrl
const Aws::String & GetImportManifestUrl() const
Definition: DiskImageDescription.h:126
AWSString.h
Aws::EC2::Model::DiskImageDescription::SizeHasBeenSet
bool SizeHasBeenSet() const
Definition: DiskImageDescription.h:228
Aws::EC2::Model::DiskImageDescription::SetChecksum
void SetChecksum(const char *value)
Definition: DiskImageDescription.h:66
Aws::EC2::Model::DiskImageDescription::SetImportManifestUrl
void SetImportManifestUrl(const char *value)
Definition: DiskImageDescription.h:178
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DiskImageDescription::operator=
DiskImageDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DiskImageDescription::WithChecksum
DiskImageDescription & WithChecksum(const Aws::String &value)
Definition: DiskImageDescription.h:71
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::DiskImageDescription::WithImportManifestUrl
DiskImageDescription & WithImportManifestUrl(const Aws::String &value)
Definition: DiskImageDescription.h:191
Aws::EC2::Model::DiskImageDescription::WithImportManifestUrl
DiskImageDescription & WithImportManifestUrl(const char *value)
Definition: DiskImageDescription.h:217
Aws::EC2::Model::DiskImageDescription::GetChecksum
const Aws::String & GetChecksum() const
Definition: DiskImageDescription.h:46
DiskImageFormat.h
EC2_EXPORTS.h
Aws::EC2::Model::DiskImageDescription
Definition: DiskImageDescription.h:33