AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetHostName(const Aws::String& value) { m_hostNameHasBeenSet = true; m_hostName = value; }
48 inline void SetHostName(Aws::String&& value) { m_hostNameHasBeenSet = true; m_hostName = std::move(value); }
49 inline void SetHostName(const char* value) { m_hostNameHasBeenSet = true; m_hostName.assign(value); }
50 inline Host& WithHostName(const Aws::String& value) { SetHostName(value); return *this;}
51 inline Host& WithHostName(Aws::String&& value) { SetHostName(std::move(value)); return *this;}
52 inline Host& WithHostName(const char* value) { SetHostName(value); return *this;}
54
56
59 inline const Aws::String& GetHostIp() const{ return m_hostIp; }
60 inline bool HostIpHasBeenSet() const { return m_hostIpHasBeenSet; }
61 inline void SetHostIp(const Aws::String& value) { m_hostIpHasBeenSet = true; m_hostIp = value; }
62 inline void SetHostIp(Aws::String&& value) { m_hostIpHasBeenSet = true; m_hostIp = std::move(value); }
63 inline void SetHostIp(const char* value) { m_hostIpHasBeenSet = true; m_hostIp.assign(value); }
64 inline Host& WithHostIp(const Aws::String& value) { SetHostIp(value); return *this;}
65 inline Host& WithHostIp(Aws::String&& value) { SetHostIp(std::move(value)); return *this;}
66 inline Host& WithHostIp(const char* value) { SetHostIp(value); return *this;}
68
70
73 inline const Aws::String& GetEC2InstanceId() const{ return m_eC2InstanceId; }
74 inline bool EC2InstanceIdHasBeenSet() const { return m_eC2InstanceIdHasBeenSet; }
75 inline void SetEC2InstanceId(const Aws::String& value) { m_eC2InstanceIdHasBeenSet = true; m_eC2InstanceId = value; }
76 inline void SetEC2InstanceId(Aws::String&& value) { m_eC2InstanceIdHasBeenSet = true; m_eC2InstanceId = std::move(value); }
77 inline void SetEC2InstanceId(const char* value) { m_eC2InstanceIdHasBeenSet = true; m_eC2InstanceId.assign(value); }
78 inline Host& WithEC2InstanceId(const Aws::String& value) { SetEC2InstanceId(value); return *this;}
79 inline Host& WithEC2InstanceId(Aws::String&& value) { SetEC2InstanceId(std::move(value)); return *this;}
80 inline Host& WithEC2InstanceId(const char* value) { SetEC2InstanceId(value); return *this;}
82
84
87 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
88 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
89 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
90 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
91 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
92 inline Host& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
93 inline Host& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
94 inline Host& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
96
98
101 inline const HostRole& GetHostRole() const{ return m_hostRole; }
102 inline bool HostRoleHasBeenSet() const { return m_hostRoleHasBeenSet; }
103 inline void SetHostRole(const HostRole& value) { m_hostRoleHasBeenSet = true; m_hostRole = value; }
104 inline void SetHostRole(HostRole&& value) { m_hostRoleHasBeenSet = true; m_hostRole = std::move(value); }
105 inline Host& WithHostRole(const HostRole& value) { SetHostRole(value); return *this;}
106 inline Host& WithHostRole(HostRole&& value) { SetHostRole(std::move(value)); return *this;}
108
110
113 inline const Aws::String& GetOsVersion() const{ return m_osVersion; }
114 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
115 inline void SetOsVersion(const Aws::String& value) { m_osVersionHasBeenSet = true; m_osVersion = value; }
116 inline void SetOsVersion(Aws::String&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::move(value); }
117 inline void SetOsVersion(const char* value) { m_osVersionHasBeenSet = true; m_osVersion.assign(value); }
118 inline Host& WithOsVersion(const Aws::String& value) { SetOsVersion(value); return *this;}
119 inline Host& WithOsVersion(Aws::String&& value) { SetOsVersion(std::move(value)); return *this;}
120 inline Host& WithOsVersion(const char* value) { SetOsVersion(value); return *this;}
122 private:
123
124 Aws::String m_hostName;
125 bool m_hostNameHasBeenSet = false;
126
127 Aws::String m_hostIp;
128 bool m_hostIpHasBeenSet = false;
129
130 Aws::String m_eC2InstanceId;
131 bool m_eC2InstanceIdHasBeenSet = false;
132
133 Aws::String m_instanceId;
134 bool m_instanceIdHasBeenSet = false;
135
136 HostRole m_hostRole;
137 bool m_hostRoleHasBeenSet = false;
138
139 Aws::String m_osVersion;
140 bool m_osVersionHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace SsmSap
145} // namespace Aws
void SetEC2InstanceId(const char *value)
Definition Host.h:77
void SetInstanceId(const char *value)
Definition Host.h:91
bool OsVersionHasBeenSet() const
Definition Host.h:114
const HostRole & GetHostRole() const
Definition Host.h:101
Host & WithOsVersion(const char *value)
Definition Host.h:120
const Aws::String & GetInstanceId() const
Definition Host.h:87
AWS_SSMSAP_API Host(Aws::Utils::Json::JsonView jsonValue)
void SetHostName(Aws::String &&value)
Definition Host.h:48
void SetHostIp(const char *value)
Definition Host.h:63
Host & WithHostIp(Aws::String &&value)
Definition Host.h:65
const Aws::String & GetOsVersion() const
Definition Host.h:113
Host & WithHostIp(const Aws::String &value)
Definition Host.h:64
void SetEC2InstanceId(Aws::String &&value)
Definition Host.h:76
bool EC2InstanceIdHasBeenSet() const
Definition Host.h:74
AWS_SSMSAP_API Host()
Host & WithHostName(const char *value)
Definition Host.h:52
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
Host & WithOsVersion(const Aws::String &value)
Definition Host.h:118
Host & WithInstanceId(Aws::String &&value)
Definition Host.h:93
const Aws::String & GetHostName() const
Definition Host.h:45
void SetHostRole(HostRole &&value)
Definition Host.h:104
Host & WithHostRole(HostRole &&value)
Definition Host.h:106
void SetInstanceId(Aws::String &&value)
Definition Host.h:90
bool InstanceIdHasBeenSet() const
Definition Host.h:88
void SetEC2InstanceId(const Aws::String &value)
Definition Host.h:75
void SetHostIp(const Aws::String &value)
Definition Host.h:61
Host & WithOsVersion(Aws::String &&value)
Definition Host.h:119
Host & WithHostRole(const HostRole &value)
Definition Host.h:105
const Aws::String & GetEC2InstanceId() const
Definition Host.h:73
AWS_SSMSAP_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
Host & WithEC2InstanceId(const Aws::String &value)
Definition Host.h:78
void SetOsVersion(const char *value)
Definition Host.h:117
void SetHostName(const Aws::String &value)
Definition Host.h:47
Host & WithInstanceId(const Aws::String &value)
Definition Host.h:92
Host & WithInstanceId(const char *value)
Definition Host.h:94
void SetInstanceId(const Aws::String &value)
Definition Host.h:89
Host & WithHostName(Aws::String &&value)
Definition Host.h:51
void SetHostRole(const HostRole &value)
Definition Host.h:103
bool HostRoleHasBeenSet() const
Definition Host.h:102
void SetOsVersion(Aws::String &&value)
Definition Host.h:116
const Aws::String & GetHostIp() const
Definition Host.h:59
Host & WithHostIp(const char *value)
Definition Host.h:66
void SetOsVersion(const Aws::String &value)
Definition Host.h:115
void SetHostIp(Aws::String &&value)
Definition Host.h:62
bool HostNameHasBeenSet() const
Definition Host.h:46
bool HostIpHasBeenSet() const
Definition Host.h:60
Host & WithEC2InstanceId(const char *value)
Definition Host.h:80
Host & WithHostName(const Aws::String &value)
Definition Host.h:50
void SetHostName(const char *value)
Definition Host.h:49
Host & WithEC2InstanceId(Aws::String &&value)
Definition Host.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue