AWS SDK for C++  1.9.108
AWS SDK for C++
DiskInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline long long GetSizeInGB() const{ return m_sizeInGB; }
46 
50  inline bool SizeInGBHasBeenSet() const { return m_sizeInGBHasBeenSet; }
51 
55  inline void SetSizeInGB(long long value) { m_sizeInGBHasBeenSet = true; m_sizeInGB = value; }
56 
60  inline DiskInfo& WithSizeInGB(long long value) { SetSizeInGB(value); return *this;}
61 
62 
66  inline int GetCount() const{ return m_count; }
67 
71  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
72 
76  inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
77 
81  inline DiskInfo& WithCount(int value) { SetCount(value); return *this;}
82 
83 
87  inline const DiskType& GetType() const{ return m_type; }
88 
92  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 
97  inline void SetType(const DiskType& value) { m_typeHasBeenSet = true; m_type = value; }
98 
102  inline void SetType(DiskType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103 
107  inline DiskInfo& WithType(const DiskType& value) { SetType(value); return *this;}
108 
112  inline DiskInfo& WithType(DiskType&& value) { SetType(std::move(value)); return *this;}
113 
114  private:
115 
116  long long m_sizeInGB;
117  bool m_sizeInGBHasBeenSet;
118 
119  int m_count;
120  bool m_countHasBeenSet;
121 
122  DiskType m_type;
123  bool m_typeHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace EC2
128 } // namespace Aws
Aws::EC2::Model::DiskInfo::WithType
DiskInfo & WithType(const DiskType &value)
Definition: DiskInfo.h:107
Aws::EC2::Model::DiskInfo::SetSizeInGB
void SetSizeInGB(long long value)
Definition: DiskInfo.h:55
Aws::EC2::Model::DiskInfo::DiskInfo
DiskInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DiskInfo::operator=
DiskInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DiskInfo::GetCount
int GetCount() const
Definition: DiskInfo.h:66
Aws::EC2::Model::DiskInfo::WithSizeInGB
DiskInfo & WithSizeInGB(long long value)
Definition: DiskInfo.h:60
Aws::EC2::Model::DiskInfo::SetCount
void SetCount(int value)
Definition: DiskInfo.h:76
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DiskType.h
AWSStreamFwd.h
Aws::EC2::Model::DiskInfo::WithCount
DiskInfo & WithCount(int value)
Definition: DiskInfo.h:81
Aws::EC2::Model::DiskInfo
Definition: DiskInfo.h:32
Aws::EC2::Model::DiskInfo::SetType
void SetType(DiskType &&value)
Definition: DiskInfo.h:102
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DiskInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DiskInfo::SetType
void SetType(const DiskType &value)
Definition: DiskInfo.h:97
Aws::EC2::Model::DiskInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::DiskInfo::SizeInGBHasBeenSet
bool SizeInGBHasBeenSet() const
Definition: DiskInfo.h:50
Aws::EC2::Model::DiskInfo::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: DiskInfo.h:92
Aws::EC2::Model::DiskInfo::WithType
DiskInfo & WithType(DiskType &&value)
Definition: DiskInfo.h:112
Aws::EC2::Model::DiskInfo::GetType
const DiskType & GetType() const
Definition: DiskInfo.h:87
Aws::EC2::Model::DiskInfo::DiskInfo
DiskInfo()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DiskInfo::GetSizeInGB
long long GetSizeInGB() const
Definition: DiskInfo.h:45
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::DiskInfo::CountHasBeenSet
bool CountHasBeenSet() const
Definition: DiskInfo.h:71
Aws::EC2::Model::DiskType
DiskType
Definition: DiskType.h:17