AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DiskImageDescription.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/DiskImageFormat.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
33 {
34 public:
35 AWS_EC2_API DiskImageDescription() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetChecksum() const { return m_checksum; }
48 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
49 template<typename ChecksumT = Aws::String>
50 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
51 template<typename ChecksumT = Aws::String>
52 DiskImageDescription& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
54
56
59 inline DiskImageFormat GetFormat() const { return m_format; }
60 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
61 inline void SetFormat(DiskImageFormat value) { m_formatHasBeenSet = true; m_format = value; }
62 inline DiskImageDescription& WithFormat(DiskImageFormat value) { SetFormat(value); return *this;}
64
66
77 inline const Aws::String& GetImportManifestUrl() const { return m_importManifestUrl; }
78 inline bool ImportManifestUrlHasBeenSet() const { return m_importManifestUrlHasBeenSet; }
79 template<typename ImportManifestUrlT = Aws::String>
80 void SetImportManifestUrl(ImportManifestUrlT&& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = std::forward<ImportManifestUrlT>(value); }
81 template<typename ImportManifestUrlT = Aws::String>
82 DiskImageDescription& WithImportManifestUrl(ImportManifestUrlT&& value) { SetImportManifestUrl(std::forward<ImportManifestUrlT>(value)); return *this;}
84
86
89 inline long long GetSize() const { return m_size; }
90 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
91 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
92 inline DiskImageDescription& WithSize(long long value) { SetSize(value); return *this;}
94 private:
95
96 Aws::String m_checksum;
97 bool m_checksumHasBeenSet = false;
98
100 bool m_formatHasBeenSet = false;
101
102 Aws::String m_importManifestUrl;
103 bool m_importManifestUrlHasBeenSet = false;
104
105 long long m_size{0};
106 bool m_sizeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // 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