AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DiskImageDetail.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/DiskImageFormat.h>
10#include <aws/core/utils/memory/stl/AWSString.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 DiskImageDetail();
36 AWS_EC2_API DiskImageDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
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 DiskImageFormat& GetFormat() const{ return m_format; }
48 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
49 inline void SetFormat(const DiskImageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
50 inline void SetFormat(DiskImageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
51 inline DiskImageDetail& WithFormat(const DiskImageFormat& value) { SetFormat(value); return *this;}
52 inline DiskImageDetail& WithFormat(DiskImageFormat&& value) { SetFormat(std::move(value)); return *this;}
54
56
59 inline long long GetBytes() const{ return m_bytes; }
60 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
61 inline void SetBytes(long long value) { m_bytesHasBeenSet = true; m_bytes = value; }
62 inline DiskImageDetail& WithBytes(long long value) { SetBytes(value); return *this;}
64
66
78 inline const Aws::String& GetImportManifestUrl() const{ return m_importManifestUrl; }
79 inline bool ImportManifestUrlHasBeenSet() const { return m_importManifestUrlHasBeenSet; }
80 inline void SetImportManifestUrl(const Aws::String& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = value; }
81 inline void SetImportManifestUrl(Aws::String&& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = std::move(value); }
82 inline void SetImportManifestUrl(const char* value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl.assign(value); }
83 inline DiskImageDetail& WithImportManifestUrl(const Aws::String& value) { SetImportManifestUrl(value); return *this;}
84 inline DiskImageDetail& WithImportManifestUrl(Aws::String&& value) { SetImportManifestUrl(std::move(value)); return *this;}
85 inline DiskImageDetail& WithImportManifestUrl(const char* value) { SetImportManifestUrl(value); return *this;}
87 private:
88
89 DiskImageFormat m_format;
90 bool m_formatHasBeenSet = false;
91
92 long long m_bytes;
93 bool m_bytesHasBeenSet = false;
94
95 Aws::String m_importManifestUrl;
96 bool m_importManifestUrlHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace EC2
101} // namespace Aws
DiskImageDetail & WithFormat(DiskImageFormat &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DiskImageDetail & WithImportManifestUrl(const char *value)
DiskImageDetail & WithImportManifestUrl(const Aws::String &value)
AWS_EC2_API DiskImageDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFormat(const DiskImageFormat &value)
DiskImageDetail & WithFormat(const DiskImageFormat &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetImportManifestUrl(const Aws::String &value)
void SetImportManifestUrl(const char *value)
void SetImportManifestUrl(Aws::String &&value)
void SetFormat(DiskImageFormat &&value)
DiskImageDetail & WithImportManifestUrl(Aws::String &&value)
AWS_EC2_API DiskImageDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DiskImageDetail & WithBytes(long long value)
const Aws::String & GetImportManifestUrl() const
const DiskImageFormat & GetFormat() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream