AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
50 inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
51 inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
52 inline DiskImageDescription& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
53 inline DiskImageDescription& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
54 inline DiskImageDescription& WithChecksum(const char* value) { SetChecksum(value); return *this;}
56
58
61 inline const DiskImageFormat& GetFormat() const{ return m_format; }
62 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
63 inline void SetFormat(const DiskImageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
64 inline void SetFormat(DiskImageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
65 inline DiskImageDescription& WithFormat(const DiskImageFormat& value) { SetFormat(value); return *this;}
66 inline DiskImageDescription& WithFormat(DiskImageFormat&& value) { SetFormat(std::move(value)); return *this;}
68
70
81 inline const Aws::String& GetImportManifestUrl() const{ return m_importManifestUrl; }
82 inline bool ImportManifestUrlHasBeenSet() const { return m_importManifestUrlHasBeenSet; }
83 inline void SetImportManifestUrl(const Aws::String& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = value; }
84 inline void SetImportManifestUrl(Aws::String&& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = std::move(value); }
85 inline void SetImportManifestUrl(const char* value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl.assign(value); }
86 inline DiskImageDescription& WithImportManifestUrl(const Aws::String& value) { SetImportManifestUrl(value); return *this;}
87 inline DiskImageDescription& WithImportManifestUrl(Aws::String&& value) { SetImportManifestUrl(std::move(value)); return *this;}
88 inline DiskImageDescription& WithImportManifestUrl(const char* value) { SetImportManifestUrl(value); return *this;}
90
92
95 inline long long GetSize() const{ return m_size; }
96 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
97 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
98 inline DiskImageDescription& WithSize(long long value) { SetSize(value); return *this;}
100 private:
101
102 Aws::String m_checksum;
103 bool m_checksumHasBeenSet = false;
104
105 DiskImageFormat m_format;
106 bool m_formatHasBeenSet = false;
107
108 Aws::String m_importManifestUrl;
109 bool m_importManifestUrlHasBeenSet = false;
110
111 long long m_size;
112 bool m_sizeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace EC2
117} // namespace Aws
AWS_EC2_API DiskImageDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API DiskImageDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DiskImageDescription & WithFormat(const DiskImageFormat &value)
const Aws::String & GetImportManifestUrl() const
DiskImageDescription & WithImportManifestUrl(const Aws::String &value)
DiskImageDescription & WithImportManifestUrl(Aws::String &&value)
void SetImportManifestUrl(const Aws::String &value)
void SetChecksum(const Aws::String &value)
void SetImportManifestUrl(Aws::String &&value)
void SetFormat(DiskImageFormat &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DiskImageDescription & WithChecksum(Aws::String &&value)
const DiskImageFormat & GetFormat() const
const Aws::String & GetChecksum() const
DiskImageDescription & WithSize(long long value)
DiskImageDescription & WithChecksum(const char *value)
DiskImageDescription & WithFormat(DiskImageFormat &&value)
void SetFormat(const DiskImageFormat &value)
DiskImageDescription & WithImportManifestUrl(const char *value)
DiskImageDescription & WithChecksum(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream