AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DiskInfo.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/DiskType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API DiskInfo() = default;
35 AWS_EC2_API DiskInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API DiskInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline long long GetSizeInGB() const { return m_sizeInGB; }
47 inline bool SizeInGBHasBeenSet() const { return m_sizeInGBHasBeenSet; }
48 inline void SetSizeInGB(long long value) { m_sizeInGBHasBeenSet = true; m_sizeInGB = value; }
49 inline DiskInfo& WithSizeInGB(long long value) { SetSizeInGB(value); return *this;}
51
53
56 inline int GetCount() const { return m_count; }
57 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
58 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
59 inline DiskInfo& WithCount(int value) { SetCount(value); return *this;}
61
63
66 inline DiskType GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(DiskType value) { m_typeHasBeenSet = true; m_type = value; }
69 inline DiskInfo& WithType(DiskType value) { SetType(value); return *this;}
71 private:
72
73 long long m_sizeInGB{0};
74 bool m_sizeInGBHasBeenSet = false;
75
76 int m_count{0};
77 bool m_countHasBeenSet = false;
78
80 bool m_typeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace EC2
85} // namespace Aws
DiskInfo & WithType(DiskType value)
Definition DiskInfo.h:69
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSizeInGB(long long value)
Definition DiskInfo.h:48
AWS_EC2_API DiskInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DiskInfo & WithCount(int value)
Definition DiskInfo.h:59
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:49
void SetType(DiskType value)
Definition DiskInfo.h:68
AWS_EC2_API DiskInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SizeInGBHasBeenSet() const
Definition DiskInfo.h:47
bool TypeHasBeenSet() const
Definition DiskInfo.h:67
DiskType GetType() const
Definition DiskInfo.h:66
long long GetSizeInGB() const
Definition DiskInfo.h:46
std::basic_ostream< char, std::char_traits< char > > OStream