AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceCapacity.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/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API InstanceCapacity();
36 AWS_EC2_API InstanceCapacity(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline int GetAvailableCapacity() const{ return m_availableCapacity; }
49 inline bool AvailableCapacityHasBeenSet() const { return m_availableCapacityHasBeenSet; }
50 inline void SetAvailableCapacity(int value) { m_availableCapacityHasBeenSet = true; m_availableCapacity = value; }
51 inline InstanceCapacity& WithAvailableCapacity(int value) { SetAvailableCapacity(value); return *this;}
53
55
58 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
59 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
60 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
61 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
62 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
63 inline InstanceCapacity& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
64 inline InstanceCapacity& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
65 inline InstanceCapacity& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
67
69
73 inline int GetTotalCapacity() const{ return m_totalCapacity; }
74 inline bool TotalCapacityHasBeenSet() const { return m_totalCapacityHasBeenSet; }
75 inline void SetTotalCapacity(int value) { m_totalCapacityHasBeenSet = true; m_totalCapacity = value; }
76 inline InstanceCapacity& WithTotalCapacity(int value) { SetTotalCapacity(value); return *this;}
78 private:
79
80 int m_availableCapacity;
81 bool m_availableCapacityHasBeenSet = false;
82
83 Aws::String m_instanceType;
84 bool m_instanceTypeHasBeenSet = false;
85
86 int m_totalCapacity;
87 bool m_totalCapacityHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EC2
92} // namespace Aws
InstanceCapacity & WithInstanceType(const Aws::String &value)
InstanceCapacity & WithInstanceType(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceCapacity & WithAvailableCapacity(int value)
void SetInstanceType(const Aws::String &value)
InstanceCapacity & WithTotalCapacity(int value)
AWS_EC2_API InstanceCapacity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceType(const char *value)
AWS_EC2_API InstanceCapacity(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetInstanceType() const
InstanceCapacity & WithInstanceType(Aws::String &&value)
void SetInstanceType(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream