AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
HostProperties.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API HostProperties() = default;
30 AWS_EC2_API HostProperties(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline int GetCores() const { return m_cores; }
41 inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; }
42 inline void SetCores(int value) {
43 m_coresHasBeenSet = true;
44 m_cores = value;
45 }
46 inline HostProperties& WithCores(int value) {
47 SetCores(value);
48 return *this;
49 }
51
53
58 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
59 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
60 template <typename InstanceTypeT = Aws::String>
61 void SetInstanceType(InstanceTypeT&& value) {
62 m_instanceTypeHasBeenSet = true;
63 m_instanceType = std::forward<InstanceTypeT>(value);
64 }
65 template <typename InstanceTypeT = Aws::String>
66 HostProperties& WithInstanceType(InstanceTypeT&& value) {
67 SetInstanceType(std::forward<InstanceTypeT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetInstanceFamily() const { return m_instanceFamily; }
78 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
79 template <typename InstanceFamilyT = Aws::String>
80 void SetInstanceFamily(InstanceFamilyT&& value) {
81 m_instanceFamilyHasBeenSet = true;
82 m_instanceFamily = std::forward<InstanceFamilyT>(value);
83 }
84 template <typename InstanceFamilyT = Aws::String>
85 HostProperties& WithInstanceFamily(InstanceFamilyT&& value) {
86 SetInstanceFamily(std::forward<InstanceFamilyT>(value));
87 return *this;
88 }
90
92
95 inline int GetSockets() const { return m_sockets; }
96 inline bool SocketsHasBeenSet() const { return m_socketsHasBeenSet; }
97 inline void SetSockets(int value) {
98 m_socketsHasBeenSet = true;
99 m_sockets = value;
100 }
101 inline HostProperties& WithSockets(int value) {
102 SetSockets(value);
103 return *this;
104 }
106
108
111 inline int GetTotalVCpus() const { return m_totalVCpus; }
112 inline bool TotalVCpusHasBeenSet() const { return m_totalVCpusHasBeenSet; }
113 inline void SetTotalVCpus(int value) {
114 m_totalVCpusHasBeenSet = true;
115 m_totalVCpus = value;
116 }
117 inline HostProperties& WithTotalVCpus(int value) {
118 SetTotalVCpus(value);
119 return *this;
120 }
122 private:
123 int m_cores{0};
124
125 Aws::String m_instanceType;
126
127 Aws::String m_instanceFamily;
128
129 int m_sockets{0};
130
131 int m_totalVCpus{0};
132 bool m_coresHasBeenSet = false;
133 bool m_instanceTypeHasBeenSet = false;
134 bool m_instanceFamilyHasBeenSet = false;
135 bool m_socketsHasBeenSet = false;
136 bool m_totalVCpusHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace EC2
141} // namespace Aws
HostProperties & WithInstanceFamily(InstanceFamilyT &&value)
const Aws::String & GetInstanceType() const
const Aws::String & GetInstanceFamily() const
HostProperties & WithInstanceType(InstanceTypeT &&value)
void SetInstanceFamily(InstanceFamilyT &&value)
HostProperties & WithTotalVCpus(int value)
void SetInstanceType(InstanceTypeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API HostProperties()=default
HostProperties & WithSockets(int value)
AWS_EC2_API HostProperties(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API HostProperties & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
HostProperties & WithCores(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream