AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Host.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm-sap/SsmSap_EXPORTS.h>
9#include <aws/ssm-sap/model/HostRole.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SsmSap {
21namespace Model {
22
28class Host {
29 public:
30 AWS_SSMSAP_API Host() = default;
31 AWS_SSMSAP_API Host(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SSMSAP_API Host& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetHostName() const { return m_hostName; }
40 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
41 template <typename HostNameT = Aws::String>
42 void SetHostName(HostNameT&& value) {
43 m_hostNameHasBeenSet = true;
44 m_hostName = std::forward<HostNameT>(value);
45 }
46 template <typename HostNameT = Aws::String>
47 Host& WithHostName(HostNameT&& value) {
48 SetHostName(std::forward<HostNameT>(value));
49 return *this;
50 }
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) {
61 m_hostIpHasBeenSet = true;
62 m_hostIp = std::forward<HostIpT>(value);
63 }
64 template <typename HostIpT = Aws::String>
65 Host& WithHostIp(HostIpT&& value) {
66 SetHostIp(std::forward<HostIpT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEC2InstanceId() const { return m_eC2InstanceId; }
76 inline bool EC2InstanceIdHasBeenSet() const { return m_eC2InstanceIdHasBeenSet; }
77 template <typename EC2InstanceIdT = Aws::String>
78 void SetEC2InstanceId(EC2InstanceIdT&& value) {
79 m_eC2InstanceIdHasBeenSet = true;
80 m_eC2InstanceId = std::forward<EC2InstanceIdT>(value);
81 }
82 template <typename EC2InstanceIdT = Aws::String>
83 Host& WithEC2InstanceId(EC2InstanceIdT&& value) {
84 SetEC2InstanceId(std::forward<EC2InstanceIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
94 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
95 template <typename InstanceIdT = Aws::String>
96 void SetInstanceId(InstanceIdT&& value) {
97 m_instanceIdHasBeenSet = true;
98 m_instanceId = std::forward<InstanceIdT>(value);
99 }
100 template <typename InstanceIdT = Aws::String>
101 Host& WithInstanceId(InstanceIdT&& value) {
102 SetInstanceId(std::forward<InstanceIdT>(value));
103 return *this;
104 }
106
108
111 inline HostRole GetHostRole() const { return m_hostRole; }
112 inline bool HostRoleHasBeenSet() const { return m_hostRoleHasBeenSet; }
113 inline void SetHostRole(HostRole value) {
114 m_hostRoleHasBeenSet = true;
115 m_hostRole = value;
116 }
117 inline Host& WithHostRole(HostRole value) {
118 SetHostRole(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
128 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
129 template <typename OsVersionT = Aws::String>
130 void SetOsVersion(OsVersionT&& value) {
131 m_osVersionHasBeenSet = true;
132 m_osVersion = std::forward<OsVersionT>(value);
133 }
134 template <typename OsVersionT = Aws::String>
135 Host& WithOsVersion(OsVersionT&& value) {
136 SetOsVersion(std::forward<OsVersionT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_hostName;
142
143 Aws::String m_hostIp;
144
145 Aws::String m_eC2InstanceId;
146
147 Aws::String m_instanceId;
148
149 HostRole m_hostRole{HostRole::NOT_SET};
150
151 Aws::String m_osVersion;
152 bool m_hostNameHasBeenSet = false;
153 bool m_hostIpHasBeenSet = false;
154 bool m_eC2InstanceIdHasBeenSet = false;
155 bool m_instanceIdHasBeenSet = false;
156 bool m_hostRoleHasBeenSet = false;
157 bool m_osVersionHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace SsmSap
162} // namespace Aws
HostRole GetHostRole() const
Definition Host.h:111
void SetHostName(HostNameT &&value)
Definition Host.h:42
bool OsVersionHasBeenSet() const
Definition Host.h:128
void SetHostIp(HostIpT &&value)
Definition Host.h:60
const Aws::String & GetInstanceId() const
Definition Host.h:93
AWS_SSMSAP_API Host(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOsVersion() const
Definition Host.h:127
bool EC2InstanceIdHasBeenSet() const
Definition Host.h:76
Host & WithEC2InstanceId(EC2InstanceIdT &&value)
Definition Host.h:83
Host & WithHostName(HostNameT &&value)
Definition Host.h:47
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
Host & WithOsVersion(OsVersionT &&value)
Definition Host.h:135
Host & WithHostIp(HostIpT &&value)
Definition Host.h:65
Host & WithHostRole(HostRole value)
Definition Host.h:117
const Aws::String & GetHostName() const
Definition Host.h:39
void SetHostRole(HostRole value)
Definition Host.h:113
bool InstanceIdHasBeenSet() const
Definition Host.h:94
const Aws::String & GetEC2InstanceId() const
Definition Host.h:75
AWS_SSMSAP_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEC2InstanceId(EC2InstanceIdT &&value)
Definition Host.h:78
Host & WithInstanceId(InstanceIdT &&value)
Definition Host.h:101
bool HostRoleHasBeenSet() const
Definition Host.h:112
const Aws::String & GetHostIp() const
Definition Host.h:57
bool HostNameHasBeenSet() const
Definition Host.h:40
AWS_SSMSAP_API Host()=default
bool HostIpHasBeenSet() const
Definition Host.h:58
void SetInstanceId(InstanceIdT &&value)
Definition Host.h:96
void SetOsVersion(OsVersionT &&value)
Definition Host.h:130
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue