AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const DiskType& GetType() const{ return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(const DiskType& value) { m_typeHasBeenSet = true; m_type = value; }
69 inline void SetType(DiskType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
70 inline DiskInfo& WithType(const DiskType& value) { SetType(value); return *this;}
71 inline DiskInfo& WithType(DiskType&& value) { SetType(std::move(value)); return *this;}
73 private:
74
75 long long m_sizeInGB;
76 bool m_sizeInGBHasBeenSet = false;
77
78 int m_count;
79 bool m_countHasBeenSet = false;
80
81 DiskType m_type;
82 bool m_typeHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace EC2
87} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetType(const DiskType &value)
Definition DiskInfo.h:68
void SetType(DiskType &&value)
Definition DiskInfo.h:69
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
bool CountHasBeenSet() const
Definition DiskInfo.h:57
const DiskType & GetType() const
Definition DiskInfo.h:66
DiskInfo & WithSizeInGB(long long value)
Definition DiskInfo.h:49
DiskInfo & WithType(DiskType &&value)
Definition DiskInfo.h:71
AWS_EC2_API DiskInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SizeInGBHasBeenSet() const
Definition DiskInfo.h:47
bool TypeHasBeenSet() const
Definition DiskInfo.h:67
long long GetSizeInGB() const
Definition DiskInfo.h:46
DiskInfo & WithType(const DiskType &value)
Definition DiskInfo.h:70
std::basic_ostream< char, std::char_traits< char > > OStream