AWS SDK for C++

AWS SDK for C++ Version 1.11.796

Loading...
Searching...
No Matches
Host.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/evs/EVS_EXPORTS.h>
11#include <aws/evs/model/HostState.h>
12#include <aws/evs/model/InstanceType.h>
13#include <aws/evs/model/NetworkInterface.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EVS {
25namespace Model {
26
35class Host {
36 public:
37 AWS_EVS_API Host() = default;
38 AWS_EVS_API Host(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EVS_API Host& operator=(Aws::Utils::Json::JsonView jsonValue);
41
43
47 inline const Aws::String& GetHostName() const { return m_hostName; }
48 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
49 template <typename HostNameT = Aws::String>
50 void SetHostName(HostNameT&& value) {
51 m_hostNameHasBeenSet = true;
52 m_hostName = std::forward<HostNameT>(value);
53 }
54 template <typename HostNameT = Aws::String>
55 Host& WithHostName(HostNameT&& value) {
56 SetHostName(std::forward<HostNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
66 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
67 template <typename IpAddressT = Aws::String>
68 void SetIpAddress(IpAddressT&& value) {
69 m_ipAddressHasBeenSet = true;
70 m_ipAddress = std::forward<IpAddressT>(value);
71 }
72 template <typename IpAddressT = Aws::String>
73 Host& WithIpAddress(IpAddressT&& value) {
74 SetIpAddress(std::forward<IpAddressT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetKeyName() const { return m_keyName; }
84 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
85 template <typename KeyNameT = Aws::String>
86 void SetKeyName(KeyNameT&& value) {
87 m_keyNameHasBeenSet = true;
88 m_keyName = std::forward<KeyNameT>(value);
89 }
90 template <typename KeyNameT = Aws::String>
91 Host& WithKeyName(KeyNameT&& value) {
92 SetKeyName(std::forward<KeyNameT>(value));
93 return *this;
94 }
96
98
103 inline InstanceType GetInstanceType() const { return m_instanceType; }
104 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
105 inline void SetInstanceType(InstanceType value) {
106 m_instanceTypeHasBeenSet = true;
107 m_instanceType = value;
108 }
110 SetInstanceType(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetPlacementGroupId() const { return m_placementGroupId; }
120 inline bool PlacementGroupIdHasBeenSet() const { return m_placementGroupIdHasBeenSet; }
121 template <typename PlacementGroupIdT = Aws::String>
122 void SetPlacementGroupId(PlacementGroupIdT&& value) {
123 m_placementGroupIdHasBeenSet = true;
124 m_placementGroupId = std::forward<PlacementGroupIdT>(value);
125 }
126 template <typename PlacementGroupIdT = Aws::String>
127 Host& WithPlacementGroupId(PlacementGroupIdT&& value) {
128 SetPlacementGroupId(std::forward<PlacementGroupIdT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetDedicatedHostId() const { return m_dedicatedHostId; }
138 inline bool DedicatedHostIdHasBeenSet() const { return m_dedicatedHostIdHasBeenSet; }
139 template <typename DedicatedHostIdT = Aws::String>
140 void SetDedicatedHostId(DedicatedHostIdT&& value) {
141 m_dedicatedHostIdHasBeenSet = true;
142 m_dedicatedHostId = std::forward<DedicatedHostIdT>(value);
143 }
144 template <typename DedicatedHostIdT = Aws::String>
145 Host& WithDedicatedHostId(DedicatedHostIdT&& value) {
146 SetDedicatedHostId(std::forward<DedicatedHostIdT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
156 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
157 template <typename CreatedAtT = Aws::Utils::DateTime>
158 void SetCreatedAt(CreatedAtT&& value) {
159 m_createdAtHasBeenSet = true;
160 m_createdAt = std::forward<CreatedAtT>(value);
161 }
162 template <typename CreatedAtT = Aws::Utils::DateTime>
163 Host& WithCreatedAt(CreatedAtT&& value) {
164 SetCreatedAt(std::forward<CreatedAtT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
174 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
175 template <typename ModifiedAtT = Aws::Utils::DateTime>
176 void SetModifiedAt(ModifiedAtT&& value) {
177 m_modifiedAtHasBeenSet = true;
178 m_modifiedAt = std::forward<ModifiedAtT>(value);
179 }
180 template <typename ModifiedAtT = Aws::Utils::DateTime>
181 Host& WithModifiedAt(ModifiedAtT&& value) {
182 SetModifiedAt(std::forward<ModifiedAtT>(value));
183 return *this;
184 }
186
188
191 inline HostState GetHostState() const { return m_hostState; }
192 inline bool HostStateHasBeenSet() const { return m_hostStateHasBeenSet; }
193 inline void SetHostState(HostState value) {
194 m_hostStateHasBeenSet = true;
195 m_hostState = value;
196 }
197 inline Host& WithHostState(HostState value) {
198 SetHostState(value);
199 return *this;
200 }
202
204
207 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
208 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
209 template <typename StateDetailsT = Aws::String>
210 void SetStateDetails(StateDetailsT&& value) {
211 m_stateDetailsHasBeenSet = true;
212 m_stateDetails = std::forward<StateDetailsT>(value);
213 }
214 template <typename StateDetailsT = Aws::String>
215 Host& WithStateDetails(StateDetailsT&& value) {
216 SetStateDetails(std::forward<StateDetailsT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetEc2InstanceId() const { return m_ec2InstanceId; }
226 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
227 template <typename Ec2InstanceIdT = Aws::String>
228 void SetEc2InstanceId(Ec2InstanceIdT&& value) {
229 m_ec2InstanceIdHasBeenSet = true;
230 m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value);
231 }
232 template <typename Ec2InstanceIdT = Aws::String>
233 Host& WithEc2InstanceId(Ec2InstanceIdT&& value) {
234 SetEc2InstanceId(std::forward<Ec2InstanceIdT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
244 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
245 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
246 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
247 m_networkInterfacesHasBeenSet = true;
248 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
249 }
250 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
251 Host& WithNetworkInterfaces(NetworkInterfacesT&& value) {
252 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
253 return *this;
254 }
255 template <typename NetworkInterfacesT = NetworkInterface>
256 Host& AddNetworkInterfaces(NetworkInterfacesT&& value) {
257 m_networkInterfacesHasBeenSet = true;
258 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_hostName;
264
265 Aws::String m_ipAddress;
266
267 Aws::String m_keyName;
268
269 InstanceType m_instanceType{InstanceType::NOT_SET};
270
271 Aws::String m_placementGroupId;
272
273 Aws::String m_dedicatedHostId;
274
275 Aws::Utils::DateTime m_createdAt{};
276
277 Aws::Utils::DateTime m_modifiedAt{};
278
279 HostState m_hostState{HostState::NOT_SET};
280
281 Aws::String m_stateDetails;
282
283 Aws::String m_ec2InstanceId;
284
285 Aws::Vector<NetworkInterface> m_networkInterfaces;
286 bool m_hostNameHasBeenSet = false;
287 bool m_ipAddressHasBeenSet = false;
288 bool m_keyNameHasBeenSet = false;
289 bool m_instanceTypeHasBeenSet = false;
290 bool m_placementGroupIdHasBeenSet = false;
291 bool m_dedicatedHostIdHasBeenSet = false;
292 bool m_createdAtHasBeenSet = false;
293 bool m_modifiedAtHasBeenSet = false;
294 bool m_hostStateHasBeenSet = false;
295 bool m_stateDetailsHasBeenSet = false;
296 bool m_ec2InstanceIdHasBeenSet = false;
297 bool m_networkInterfacesHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace EVS
302} // namespace Aws
void SetModifiedAt(ModifiedAtT &&value)
Definition Host.h:176
void SetHostName(HostNameT &&value)
Definition Host.h:50
void SetKeyName(KeyNameT &&value)
Definition Host.h:86
bool HostStateHasBeenSet() const
Definition Host.h:192
const Aws::String & GetEc2InstanceId() const
Definition Host.h:225
const Aws::String & GetKeyName() const
Definition Host.h:83
bool ModifiedAtHasBeenSet() const
Definition Host.h:174
bool InstanceTypeHasBeenSet() const
Definition Host.h:104
Host & WithIpAddress(IpAddressT &&value)
Definition Host.h:73
void SetEc2InstanceId(Ec2InstanceIdT &&value)
Definition Host.h:228
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition Host.h:243
Host & WithPlacementGroupId(PlacementGroupIdT &&value)
Definition Host.h:127
bool StateDetailsHasBeenSet() const
Definition Host.h:208
Host & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:256
AWS_EVS_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVS_API Host()=default
Host & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:251
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:246
bool DedicatedHostIdHasBeenSet() const
Definition Host.h:138
void SetStateDetails(StateDetailsT &&value)
Definition Host.h:210
bool Ec2InstanceIdHasBeenSet() const
Definition Host.h:226
Host & WithModifiedAt(ModifiedAtT &&value)
Definition Host.h:181
void SetInstanceType(InstanceType value)
Definition Host.h:105
AWS_EVS_API Host(Aws::Utils::Json::JsonView jsonValue)
Host & WithStateDetails(StateDetailsT &&value)
Definition Host.h:215
void SetIpAddress(IpAddressT &&value)
Definition Host.h:68
Host & WithEc2InstanceId(Ec2InstanceIdT &&value)
Definition Host.h:233
bool KeyNameHasBeenSet() const
Definition Host.h:84
Host & WithInstanceType(InstanceType value)
Definition Host.h:109
void SetDedicatedHostId(DedicatedHostIdT &&value)
Definition Host.h:140
void SetCreatedAt(CreatedAtT &&value)
Definition Host.h:158
Host & WithHostState(HostState value)
Definition Host.h:197
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Host.h:173
Host & WithKeyName(KeyNameT &&value)
Definition Host.h:91
HostState GetHostState() const
Definition Host.h:191
InstanceType GetInstanceType() const
Definition Host.h:103
const Aws::String & GetIpAddress() const
Definition Host.h:65
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Host.h:155
bool HostNameHasBeenSet() const
Definition Host.h:48
void SetHostState(HostState value)
Definition Host.h:193
Host & WithCreatedAt(CreatedAtT &&value)
Definition Host.h:163
const Aws::String & GetPlacementGroupId() const
Definition Host.h:119
Host & WithDedicatedHostId(DedicatedHostIdT &&value)
Definition Host.h:145
bool CreatedAtHasBeenSet() const
Definition Host.h:156
bool IpAddressHasBeenSet() const
Definition Host.h:66
const Aws::String & GetStateDetails() const
Definition Host.h:207
const Aws::String & GetDedicatedHostId() const
Definition Host.h:137
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
bool NetworkInterfacesHasBeenSet() const
Definition Host.h:244
bool PlacementGroupIdHasBeenSet() const
Definition Host.h:120
void SetPlacementGroupId(PlacementGroupIdT &&value)
Definition Host.h:122
const Aws::String & GetHostName() const
Definition Host.h:47
Host & WithHostName(HostNameT &&value)
Definition Host.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue