AWS SDK for C++  1.9.66
AWS SDK for C++
MemoryInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
9 
10 namespace Aws
11 {
12 namespace Utils
13 {
14 namespace Xml
15 {
16  class XmlNode;
17 } // namespace Xml
18 } // namespace Utils
19 namespace EC2
20 {
21 namespace Model
22 {
23 
30  {
31  public:
35 
36  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37  void OutputToStream(Aws::OStream& oStream, const char* location) const;
38 
39 
43  inline long long GetSizeInMiB() const{ return m_sizeInMiB; }
44 
48  inline bool SizeInMiBHasBeenSet() const { return m_sizeInMiBHasBeenSet; }
49 
53  inline void SetSizeInMiB(long long value) { m_sizeInMiBHasBeenSet = true; m_sizeInMiB = value; }
54 
58  inline MemoryInfo& WithSizeInMiB(long long value) { SetSizeInMiB(value); return *this;}
59 
60  private:
61 
62  long long m_sizeInMiB;
63  bool m_sizeInMiBHasBeenSet;
64  };
65 
66 } // namespace Model
67 } // namespace EC2
68 } // namespace Aws
Aws::EC2::Model::MemoryInfo::SizeInMiBHasBeenSet
bool SizeInMiBHasBeenSet() const
Definition: MemoryInfo.h:48
Aws::EC2::Model::MemoryInfo::operator=
MemoryInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::MemoryInfo::MemoryInfo
MemoryInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::MemoryInfo::GetSizeInMiB
long long GetSizeInMiB() const
Definition: MemoryInfo.h:43
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::MemoryInfo::WithSizeInMiB
MemoryInfo & WithSizeInMiB(long long value)
Definition: MemoryInfo.h:58
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::MemoryInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::MemoryInfo::SetSizeInMiB
void SetSizeInMiB(long long value)
Definition: MemoryInfo.h:53
Aws::EC2::Model::MemoryInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::MemoryInfo::MemoryInfo
MemoryInfo()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::MemoryInfo
Definition: MemoryInfo.h:30
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h