AWS SDK for C++  1.9.71
AWS SDK for C++
InstanceCapacity.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline int GetAvailableCapacity() const{ return m_availableCapacity; }
48 
53  inline bool AvailableCapacityHasBeenSet() const { return m_availableCapacityHasBeenSet; }
54 
59  inline void SetAvailableCapacity(int value) { m_availableCapacityHasBeenSet = true; m_availableCapacity = value; }
60 
65  inline InstanceCapacity& WithAvailableCapacity(int value) { SetAvailableCapacity(value); return *this;}
66 
67 
71  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
72 
76  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
77 
81  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
82 
86  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
87 
91  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
92 
96  inline InstanceCapacity& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
97 
101  inline InstanceCapacity& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
102 
106  inline InstanceCapacity& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
107 
108 
113  inline int GetTotalCapacity() const{ return m_totalCapacity; }
114 
119  inline bool TotalCapacityHasBeenSet() const { return m_totalCapacityHasBeenSet; }
120 
125  inline void SetTotalCapacity(int value) { m_totalCapacityHasBeenSet = true; m_totalCapacity = value; }
126 
131  inline InstanceCapacity& WithTotalCapacity(int value) { SetTotalCapacity(value); return *this;}
132 
133  private:
134 
135  int m_availableCapacity;
136  bool m_availableCapacityHasBeenSet;
137 
138  Aws::String m_instanceType;
139  bool m_instanceTypeHasBeenSet;
140 
141  int m_totalCapacity;
142  bool m_totalCapacityHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace EC2
147 } // namespace Aws
Aws::EC2::Model::InstanceCapacity::SetTotalCapacity
void SetTotalCapacity(int value)
Definition: InstanceCapacity.h:125
Aws::EC2::Model::InstanceCapacity::WithTotalCapacity
InstanceCapacity & WithTotalCapacity(int value)
Definition: InstanceCapacity.h:131
Aws::EC2::Model::InstanceCapacity::WithInstanceType
InstanceCapacity & WithInstanceType(const Aws::String &value)
Definition: InstanceCapacity.h:96
Aws::EC2::Model::InstanceCapacity::SetAvailableCapacity
void SetAvailableCapacity(int value)
Definition: InstanceCapacity.h:59
Aws::EC2::Model::InstanceCapacity::WithInstanceType
InstanceCapacity & WithInstanceType(Aws::String &&value)
Definition: InstanceCapacity.h:101
Aws::EC2::Model::InstanceCapacity::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: InstanceCapacity.h:81
Aws::EC2::Model::InstanceCapacity::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: InstanceCapacity.h:76
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceCapacity::WithInstanceType
InstanceCapacity & WithInstanceType(const char *value)
Definition: InstanceCapacity.h:106
Aws::EC2::Model::InstanceCapacity::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceCapacity::GetAvailableCapacity
int GetAvailableCapacity() const
Definition: InstanceCapacity.h:47
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceCapacity::AvailableCapacityHasBeenSet
bool AvailableCapacityHasBeenSet() const
Definition: InstanceCapacity.h:53
Aws::EC2::Model::InstanceCapacity
Definition: InstanceCapacity.h:33
AWSString.h
Aws::EC2::Model::InstanceCapacity::GetTotalCapacity
int GetTotalCapacity() const
Definition: InstanceCapacity.h:113
Aws::EC2::Model::InstanceCapacity::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: InstanceCapacity.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceCapacity::SetInstanceType
void SetInstanceType(const char *value)
Definition: InstanceCapacity.h:91
Aws::EC2::Model::InstanceCapacity::operator=
InstanceCapacity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceCapacity::WithAvailableCapacity
InstanceCapacity & WithAvailableCapacity(int value)
Definition: InstanceCapacity.h:65
Aws::EC2::Model::InstanceCapacity::TotalCapacityHasBeenSet
bool TotalCapacityHasBeenSet() const
Definition: InstanceCapacity.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceCapacity::InstanceCapacity
InstanceCapacity(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceCapacity::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceCapacity::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: InstanceCapacity.h:71
EC2_EXPORTS.h
Aws::EC2::Model::InstanceCapacity::InstanceCapacity
InstanceCapacity()