AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HostProperties.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
32 {
33 public:
34 AWS_EC2_API HostProperties() = default;
35 AWS_EC2_API HostProperties(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline int GetCores() const { return m_cores; }
47 inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; }
48 inline void SetCores(int value) { m_coresHasBeenSet = true; m_cores = value; }
49 inline HostProperties& WithCores(int value) { SetCores(value); return *this;}
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) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
62 template<typename InstanceTypeT = Aws::String>
63 HostProperties& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
65
67
71 inline const Aws::String& GetInstanceFamily() const { return m_instanceFamily; }
72 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
73 template<typename InstanceFamilyT = Aws::String>
74 void SetInstanceFamily(InstanceFamilyT&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::forward<InstanceFamilyT>(value); }
75 template<typename InstanceFamilyT = Aws::String>
76 HostProperties& WithInstanceFamily(InstanceFamilyT&& value) { SetInstanceFamily(std::forward<InstanceFamilyT>(value)); return *this;}
78
80
83 inline int GetSockets() const { return m_sockets; }
84 inline bool SocketsHasBeenSet() const { return m_socketsHasBeenSet; }
85 inline void SetSockets(int value) { m_socketsHasBeenSet = true; m_sockets = value; }
86 inline HostProperties& WithSockets(int value) { SetSockets(value); return *this;}
88
90
93 inline int GetTotalVCpus() const { return m_totalVCpus; }
94 inline bool TotalVCpusHasBeenSet() const { return m_totalVCpusHasBeenSet; }
95 inline void SetTotalVCpus(int value) { m_totalVCpusHasBeenSet = true; m_totalVCpus = value; }
96 inline HostProperties& WithTotalVCpus(int value) { SetTotalVCpus(value); return *this;}
98 private:
99
100 int m_cores{0};
101 bool m_coresHasBeenSet = false;
102
103 Aws::String m_instanceType;
104 bool m_instanceTypeHasBeenSet = false;
105
106 Aws::String m_instanceFamily;
107 bool m_instanceFamilyHasBeenSet = false;
108
109 int m_sockets{0};
110 bool m_socketsHasBeenSet = false;
111
112 int m_totalVCpus{0};
113 bool m_totalVCpusHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace EC2
118} // 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