AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AvailableCapacity.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/InstanceCapacity.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API AvailableCapacity();
37 AWS_EC2_API AvailableCapacity(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
51 inline const Aws::Vector<InstanceCapacity>& GetAvailableInstanceCapacity() const{ return m_availableInstanceCapacity; }
52 inline bool AvailableInstanceCapacityHasBeenSet() const { return m_availableInstanceCapacityHasBeenSet; }
53 inline void SetAvailableInstanceCapacity(const Aws::Vector<InstanceCapacity>& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity = value; }
54 inline void SetAvailableInstanceCapacity(Aws::Vector<InstanceCapacity>&& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity = std::move(value); }
57 inline AvailableCapacity& AddAvailableInstanceCapacity(const InstanceCapacity& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity.push_back(value); return *this; }
58 inline AvailableCapacity& AddAvailableInstanceCapacity(InstanceCapacity&& value) { m_availableInstanceCapacityHasBeenSet = true; m_availableInstanceCapacity.push_back(std::move(value)); return *this; }
60
62
66 inline int GetAvailableVCpus() const{ return m_availableVCpus; }
67 inline bool AvailableVCpusHasBeenSet() const { return m_availableVCpusHasBeenSet; }
68 inline void SetAvailableVCpus(int value) { m_availableVCpusHasBeenSet = true; m_availableVCpus = value; }
69 inline AvailableCapacity& WithAvailableVCpus(int value) { SetAvailableVCpus(value); return *this;}
71 private:
72
73 Aws::Vector<InstanceCapacity> m_availableInstanceCapacity;
74 bool m_availableInstanceCapacityHasBeenSet = false;
75
76 int m_availableVCpus;
77 bool m_availableVCpusHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AvailableCapacity & WithAvailableVCpus(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AvailableCapacity & WithAvailableInstanceCapacity(Aws::Vector< InstanceCapacity > &&value)
AvailableCapacity & AddAvailableInstanceCapacity(InstanceCapacity &&value)
AWS_EC2_API AvailableCapacity(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAvailableInstanceCapacity(const Aws::Vector< InstanceCapacity > &value)
AWS_EC2_API AvailableCapacity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< InstanceCapacity > & GetAvailableInstanceCapacity() const
void SetAvailableInstanceCapacity(Aws::Vector< InstanceCapacity > &&value)
AvailableCapacity & WithAvailableInstanceCapacity(const Aws::Vector< InstanceCapacity > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AvailableCapacity & AddAvailableInstanceCapacity(const InstanceCapacity &value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream