AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Host.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-sap/model/HostRole.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SsmSap
23{
24namespace Model
25{
26
32 class Host
33 {
34 public:
35 AWS_SSMSAP_API Host() = default;
36 AWS_SSMSAP_API Host(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SSMSAP_API Host& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetHostName() const { return m_hostName; }
46 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
47 template<typename HostNameT = Aws::String>
48 void SetHostName(HostNameT&& value) { m_hostNameHasBeenSet = true; m_hostName = std::forward<HostNameT>(value); }
49 template<typename HostNameT = Aws::String>
50 Host& WithHostName(HostNameT&& value) { SetHostName(std::forward<HostNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetHostIp() const { return m_hostIp; }
58 inline bool HostIpHasBeenSet() const { return m_hostIpHasBeenSet; }
59 template<typename HostIpT = Aws::String>
60 void SetHostIp(HostIpT&& value) { m_hostIpHasBeenSet = true; m_hostIp = std::forward<HostIpT>(value); }
61 template<typename HostIpT = Aws::String>
62 Host& WithHostIp(HostIpT&& value) { SetHostIp(std::forward<HostIpT>(value)); return *this;}
64
66
69 inline const Aws::String& GetEC2InstanceId() const { return m_eC2InstanceId; }
70 inline bool EC2InstanceIdHasBeenSet() const { return m_eC2InstanceIdHasBeenSet; }
71 template<typename EC2InstanceIdT = Aws::String>
72 void SetEC2InstanceId(EC2InstanceIdT&& value) { m_eC2InstanceIdHasBeenSet = true; m_eC2InstanceId = std::forward<EC2InstanceIdT>(value); }
73 template<typename EC2InstanceIdT = Aws::String>
74 Host& WithEC2InstanceId(EC2InstanceIdT&& value) { SetEC2InstanceId(std::forward<EC2InstanceIdT>(value)); return *this;}
76
78
81 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
82 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
83 template<typename InstanceIdT = Aws::String>
84 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
85 template<typename InstanceIdT = Aws::String>
86 Host& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
88
90
93 inline HostRole GetHostRole() const { return m_hostRole; }
94 inline bool HostRoleHasBeenSet() const { return m_hostRoleHasBeenSet; }
95 inline void SetHostRole(HostRole value) { m_hostRoleHasBeenSet = true; m_hostRole = value; }
96 inline Host& WithHostRole(HostRole value) { SetHostRole(value); return *this;}
98
100
103 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
104 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
105 template<typename OsVersionT = Aws::String>
106 void SetOsVersion(OsVersionT&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::forward<OsVersionT>(value); }
107 template<typename OsVersionT = Aws::String>
108 Host& WithOsVersion(OsVersionT&& value) { SetOsVersion(std::forward<OsVersionT>(value)); return *this;}
110 private:
111
112 Aws::String m_hostName;
113 bool m_hostNameHasBeenSet = false;
114
115 Aws::String m_hostIp;
116 bool m_hostIpHasBeenSet = false;
117
118 Aws::String m_eC2InstanceId;
119 bool m_eC2InstanceIdHasBeenSet = false;
120
121 Aws::String m_instanceId;
122 bool m_instanceIdHasBeenSet = false;
123
124 HostRole m_hostRole{HostRole::NOT_SET};
125 bool m_hostRoleHasBeenSet = false;
126
127 Aws::String m_osVersion;
128 bool m_osVersionHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace SsmSap
133} // namespace Aws
HostRole GetHostRole() const
Definition Host.h:93
void SetHostName(HostNameT &&value)
Definition Host.h:48
bool OsVersionHasBeenSet() const
Definition Host.h:104
void SetHostIp(HostIpT &&value)
Definition Host.h:60
const Aws::String & GetInstanceId() const
Definition Host.h:81
AWS_SSMSAP_API Host(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOsVersion() const
Definition Host.h:103
bool EC2InstanceIdHasBeenSet() const
Definition Host.h:70
Host & WithEC2InstanceId(EC2InstanceIdT &&value)
Definition Host.h:74
Host & WithHostName(HostNameT &&value)
Definition Host.h:50
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
Host & WithOsVersion(OsVersionT &&value)
Definition Host.h:108
Host & WithHostIp(HostIpT &&value)
Definition Host.h:62
Host & WithHostRole(HostRole value)
Definition Host.h:96
const Aws::String & GetHostName() const
Definition Host.h:45
void SetHostRole(HostRole value)
Definition Host.h:95
bool InstanceIdHasBeenSet() const
Definition Host.h:82
const Aws::String & GetEC2InstanceId() const
Definition Host.h:69
AWS_SSMSAP_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEC2InstanceId(EC2InstanceIdT &&value)
Definition Host.h:72
Host & WithInstanceId(InstanceIdT &&value)
Definition Host.h:86
bool HostRoleHasBeenSet() const
Definition Host.h:94
const Aws::String & GetHostIp() const
Definition Host.h:57
bool HostNameHasBeenSet() const
Definition Host.h:46
AWS_SSMSAP_API Host()=default
bool HostIpHasBeenSet() const
Definition Host.h:58
void SetInstanceId(InstanceIdT &&value)
Definition Host.h:84
void SetOsVersion(OsVersionT &&value)
Definition Host.h:106
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue