AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DiskImageDescription.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/DiskImageFormat.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
29 public:
30 AWS_EC2_API DiskImageDescription() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetChecksum() const { return m_checksum; }
42 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
43 template <typename ChecksumT = Aws::String>
44 void SetChecksum(ChecksumT&& value) {
45 m_checksumHasBeenSet = true;
46 m_checksum = std::forward<ChecksumT>(value);
47 }
48 template <typename ChecksumT = Aws::String>
49 DiskImageDescription& WithChecksum(ChecksumT&& value) {
50 SetChecksum(std::forward<ChecksumT>(value));
51 return *this;
52 }
54
56
59 inline DiskImageFormat GetFormat() const { return m_format; }
60 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
61 inline void SetFormat(DiskImageFormat value) {
62 m_formatHasBeenSet = true;
63 m_format = value;
64 }
66 SetFormat(value);
67 return *this;
68 }
70
72
83 inline const Aws::String& GetImportManifestUrl() const { return m_importManifestUrl; }
84 inline bool ImportManifestUrlHasBeenSet() const { return m_importManifestUrlHasBeenSet; }
85 template <typename ImportManifestUrlT = Aws::String>
86 void SetImportManifestUrl(ImportManifestUrlT&& value) {
87 m_importManifestUrlHasBeenSet = true;
88 m_importManifestUrl = std::forward<ImportManifestUrlT>(value);
89 }
90 template <typename ImportManifestUrlT = Aws::String>
91 DiskImageDescription& WithImportManifestUrl(ImportManifestUrlT&& value) {
92 SetImportManifestUrl(std::forward<ImportManifestUrlT>(value));
93 return *this;
94 }
96
98
101 inline long long GetSize() const { return m_size; }
102 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
103 inline void SetSize(long long value) {
104 m_sizeHasBeenSet = true;
105 m_size = value;
106 }
107 inline DiskImageDescription& WithSize(long long value) {
108 SetSize(value);
109 return *this;
110 }
112 private:
113 Aws::String m_checksum;
114
116
117 Aws::String m_importManifestUrl;
118
119 long long m_size{0};
120 bool m_checksumHasBeenSet = false;
121 bool m_formatHasBeenSet = false;
122 bool m_importManifestUrlHasBeenSet = false;
123 bool m_sizeHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace EC2
128} // namespace Aws
AWS_EC2_API DiskImageDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
DiskImageDescription & WithFormat(DiskImageFormat value)
AWS_EC2_API DiskImageDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetImportManifestUrl() const
AWS_EC2_API DiskImageDescription()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DiskImageDescription & WithImportManifestUrl(ImportManifestUrlT &&value)
void SetImportManifestUrl(ImportManifestUrlT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetChecksum() const
DiskImageDescription & WithSize(long long value)
DiskImageDescription & WithChecksum(ChecksumT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream