AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 HostProperties& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
64 inline HostProperties& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
65 inline HostProperties& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
67
69
73 inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; }
74 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
75 inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
76 inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
77 inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); }
78 inline HostProperties& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;}
79 inline HostProperties& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;}
80 inline HostProperties& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;}
82
84
87 inline int GetSockets() const{ return m_sockets; }
88 inline bool SocketsHasBeenSet() const { return m_socketsHasBeenSet; }
89 inline void SetSockets(int value) { m_socketsHasBeenSet = true; m_sockets = value; }
90 inline HostProperties& WithSockets(int value) { SetSockets(value); return *this;}
92
94
97 inline int GetTotalVCpus() const{ return m_totalVCpus; }
98 inline bool TotalVCpusHasBeenSet() const { return m_totalVCpusHasBeenSet; }
99 inline void SetTotalVCpus(int value) { m_totalVCpusHasBeenSet = true; m_totalVCpus = value; }
100 inline HostProperties& WithTotalVCpus(int value) { SetTotalVCpus(value); return *this;}
102 private:
103
104 int m_cores;
105 bool m_coresHasBeenSet = false;
106
107 Aws::String m_instanceType;
108 bool m_instanceTypeHasBeenSet = false;
109
110 Aws::String m_instanceFamily;
111 bool m_instanceFamilyHasBeenSet = false;
112
113 int m_sockets;
114 bool m_socketsHasBeenSet = false;
115
116 int m_totalVCpus;
117 bool m_totalVCpusHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace EC2
122} // namespace Aws
void SetInstanceType(const Aws::String &value)
const Aws::String & GetInstanceType() const
const Aws::String & GetInstanceFamily() const
HostProperties & WithInstanceType(const Aws::String &value)
void SetInstanceType(Aws::String &&value)
void SetInstanceFamily(const char *value)
void SetInstanceFamily(Aws::String &&value)
HostProperties & WithInstanceFamily(const char *value)
HostProperties & WithTotalVCpus(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
HostProperties & WithInstanceFamily(const Aws::String &value)
HostProperties & WithSockets(int value)
HostProperties & WithInstanceType(const char *value)
void SetInstanceFamily(const Aws::String &value)
AWS_EC2_API HostProperties(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceType(const char *value)
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)
HostProperties & WithInstanceType(Aws::String &&value)
HostProperties & WithInstanceFamily(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream