AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DiskInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/DiskType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
27class DiskInfo {
28 public:
29 AWS_EC2_API DiskInfo() = default;
30 AWS_EC2_API DiskInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_EC2_API DiskInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline long long GetSizeInGB() const { return m_sizeInGB; }
41 inline bool SizeInGBHasBeenSet() const { return m_sizeInGBHasBeenSet; }
42 inline void SetSizeInGB(long long value) {
43 m_sizeInGBHasBeenSet = true;
44 m_sizeInGB = value;
45 }
46 inline DiskInfo& WithSizeInGB(long long value) {
47 SetSizeInGB(value);
48 return *this;
49 }
51
53
56 inline int GetCount() const { return m_count; }
57 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
58 inline void SetCount(int value) {
59 m_countHasBeenSet = true;
60 m_count = value;
61 }
62 inline DiskInfo& WithCount(int value) {
63 SetCount(value);
64 return *this;
65 }
67
69
72 inline DiskType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(DiskType value) {
75 m_typeHasBeenSet = true;
76 m_type = value;
77 }
78 inline DiskInfo& WithType(DiskType value) {
79 SetType(value);
80 return *this;
81 }
83 private:
84 long long m_sizeInGB{0};
85
86 int m_count{0};
87
89 bool m_sizeInGBHasBeenSet = false;
90 bool m_countHasBeenSet = false;
91 bool m_typeHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace EC2
96} // namespace Aws
DiskInfo & WithType(DiskType value)
Definition DiskInfo.h:78
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSizeInGB(long long value)
Definition DiskInfo.h:42
AWS_EC2_API DiskInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DiskInfo & WithCount(int value)
Definition DiskInfo.h:62
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCount(int value)
Definition DiskInfo.h:58
AWS_EC2_API DiskInfo()=default
bool CountHasBeenSet() const
Definition DiskInfo.h:57
DiskInfo & WithSizeInGB(long long value)
Definition DiskInfo.h:46
void SetType(DiskType value)
Definition DiskInfo.h:74
AWS_EC2_API DiskInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SizeInGBHasBeenSet() const
Definition DiskInfo.h:41
bool TypeHasBeenSet() const
Definition DiskInfo.h:73
DiskType GetType() const
Definition DiskInfo.h:72
long long GetSizeInGB() const
Definition DiskInfo.h:40
std::basic_ostream< char, std::char_traits< char > > OStream