AWS SDK for C++  1.9.129
AWS SDK for C++
AvailableCapacity.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
50  inline const Aws::Vector<InstanceCapacity>& GetAvailableInstanceCapacity() const{ return m_availableInstanceCapacity; }
51 
58  inline bool AvailableInstanceCapacityHasBeenSet() const { return m_availableInstanceCapacityHasBeenSet; }
59 
66  inline void SetAvailableInstanceCapacity(const Aws::Vector<InstanceCapacity>& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity = value; }
67 
74  inline void SetAvailableInstanceCapacity(Aws::Vector<InstanceCapacity>&& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity = std::move(value); }
75 
82  inline AvailableCapacity& WithAvailableInstanceCapacity(const Aws::Vector<InstanceCapacity>& value) { SetAvailableInstanceCapacity(value); return *this;}
83 
90  inline AvailableCapacity& WithAvailableInstanceCapacity(Aws::Vector<InstanceCapacity>&& value) { SetAvailableInstanceCapacity(std::move(value)); return *this;}
91 
98  inline AvailableCapacity& AddAvailableInstanceCapacity(const InstanceCapacity& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity.push_back(value); return *this; }
99 
106  inline AvailableCapacity& AddAvailableInstanceCapacity(InstanceCapacity&& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity.push_back(std::move(value)); return *this; }
107 
108 
113  inline int GetAvailableVCpus() const{ return m_availableVCpus; }
114 
119  inline bool AvailableVCpusHasBeenSet() const { return m_availableVCpusHasBeenSet; }
120 
125  inline void SetAvailableVCpus(int value) { m_availableVCpusHasBeenSet = true; m_availableVCpus = value; }
126 
131  inline AvailableCapacity& WithAvailableVCpus(int value) { SetAvailableVCpus(value); return *this;}
132 
133  private:
134 
135  Aws::Vector<InstanceCapacity> m_availableInstanceCapacity;
136  bool m_availableInstanceCapacityHasBeenSet;
137 
138  int m_availableVCpus;
139  bool m_availableVCpusHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace EC2
144 } // namespace Aws
Aws::EC2::Model::AvailableCapacity::SetAvailableInstanceCapacity
void SetAvailableInstanceCapacity(const Aws::Vector< InstanceCapacity > &value)
Definition: AvailableCapacity.h:66
Aws::EC2::Model::AvailableCapacity::GetAvailableInstanceCapacity
const Aws::Vector< InstanceCapacity > & GetAvailableInstanceCapacity() const
Definition: AvailableCapacity.h:50
Aws::EC2::Model::AvailableCapacity::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AvailableCapacity::AddAvailableInstanceCapacity
AvailableCapacity & AddAvailableInstanceCapacity(const InstanceCapacity &value)
Definition: AvailableCapacity.h:98
Aws::EC2::Model::AvailableCapacity::WithAvailableInstanceCapacity
AvailableCapacity & WithAvailableInstanceCapacity(Aws::Vector< InstanceCapacity > &&value)
Definition: AvailableCapacity.h:90
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::AvailableCapacity::WithAvailableInstanceCapacity
AvailableCapacity & WithAvailableInstanceCapacity(const Aws::Vector< InstanceCapacity > &value)
Definition: AvailableCapacity.h:82
AWSStreamFwd.h
Aws::EC2::Model::AvailableCapacity::WithAvailableVCpus
AvailableCapacity & WithAvailableVCpus(int value)
Definition: AvailableCapacity.h:131
AWSVector.h
Aws::EC2::Model::AvailableCapacity::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::AvailableCapacity::SetAvailableInstanceCapacity
void SetAvailableInstanceCapacity(Aws::Vector< InstanceCapacity > &&value)
Definition: AvailableCapacity.h:74
Aws::EC2::Model::AvailableCapacity::AvailableCapacity
AvailableCapacity(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::AvailableCapacity::AvailableVCpusHasBeenSet
bool AvailableVCpusHasBeenSet() const
Definition: AvailableCapacity.h:119
Aws::EC2::Model::AvailableCapacity::AddAvailableInstanceCapacity
AvailableCapacity & AddAvailableInstanceCapacity(InstanceCapacity &&value)
Definition: AvailableCapacity.h:106
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceCapacity
Definition: InstanceCapacity.h:33
Aws::EC2::Model::AvailableCapacity::SetAvailableVCpus
void SetAvailableVCpus(int value)
Definition: AvailableCapacity.h:125
Aws::EC2::Model::AvailableCapacity::AvailableCapacity
AvailableCapacity()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AvailableCapacity::operator=
AvailableCapacity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::AvailableCapacity::AvailableInstanceCapacityHasBeenSet
bool AvailableInstanceCapacityHasBeenSet() const
Definition: AvailableCapacity.h:58
Aws::EC2::Model::AvailableCapacity::GetAvailableVCpus
int GetAvailableVCpus() const
Definition: AvailableCapacity.h:113
InstanceCapacity.h
EC2_EXPORTS.h
Aws::EC2::Model::AvailableCapacity
Definition: AvailableCapacity.h:34