AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
104 inline InstanceType GetInstanceType() const { return m_instanceType; }
105 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
106 inline void SetInstanceType(InstanceType value) {
107 m_instanceTypeHasBeenSet = true;
108 m_instanceType = value;
109 }
111 SetInstanceType(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetPlacementGroupId() const { return m_placementGroupId; }
121 inline bool PlacementGroupIdHasBeenSet() const { return m_placementGroupIdHasBeenSet; }
122 template <typename PlacementGroupIdT = Aws::String>
123 void SetPlacementGroupId(PlacementGroupIdT&& value) {
124 m_placementGroupIdHasBeenSet = true;
125 m_placementGroupId = std::forward<PlacementGroupIdT>(value);
126 }
127 template <typename PlacementGroupIdT = Aws::String>
128 Host& WithPlacementGroupId(PlacementGroupIdT&& value) {
129 SetPlacementGroupId(std::forward<PlacementGroupIdT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetDedicatedHostId() const { return m_dedicatedHostId; }
139 inline bool DedicatedHostIdHasBeenSet() const { return m_dedicatedHostIdHasBeenSet; }
140 template <typename DedicatedHostIdT = Aws::String>
141 void SetDedicatedHostId(DedicatedHostIdT&& value) {
142 m_dedicatedHostIdHasBeenSet = true;
143 m_dedicatedHostId = std::forward<DedicatedHostIdT>(value);
144 }
145 template <typename DedicatedHostIdT = Aws::String>
146 Host& WithDedicatedHostId(DedicatedHostIdT&& value) {
147 SetDedicatedHostId(std::forward<DedicatedHostIdT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
157 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
158 template <typename CreatedAtT = Aws::Utils::DateTime>
159 void SetCreatedAt(CreatedAtT&& value) {
160 m_createdAtHasBeenSet = true;
161 m_createdAt = std::forward<CreatedAtT>(value);
162 }
163 template <typename CreatedAtT = Aws::Utils::DateTime>
164 Host& WithCreatedAt(CreatedAtT&& value) {
165 SetCreatedAt(std::forward<CreatedAtT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
175 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
176 template <typename ModifiedAtT = Aws::Utils::DateTime>
177 void SetModifiedAt(ModifiedAtT&& value) {
178 m_modifiedAtHasBeenSet = true;
179 m_modifiedAt = std::forward<ModifiedAtT>(value);
180 }
181 template <typename ModifiedAtT = Aws::Utils::DateTime>
182 Host& WithModifiedAt(ModifiedAtT&& value) {
183 SetModifiedAt(std::forward<ModifiedAtT>(value));
184 return *this;
185 }
187
189
192 inline HostState GetHostState() const { return m_hostState; }
193 inline bool HostStateHasBeenSet() const { return m_hostStateHasBeenSet; }
194 inline void SetHostState(HostState value) {
195 m_hostStateHasBeenSet = true;
196 m_hostState = value;
197 }
198 inline Host& WithHostState(HostState value) {
199 SetHostState(value);
200 return *this;
201 }
203
205
208 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
209 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
210 template <typename StateDetailsT = Aws::String>
211 void SetStateDetails(StateDetailsT&& value) {
212 m_stateDetailsHasBeenSet = true;
213 m_stateDetails = std::forward<StateDetailsT>(value);
214 }
215 template <typename StateDetailsT = Aws::String>
216 Host& WithStateDetails(StateDetailsT&& value) {
217 SetStateDetails(std::forward<StateDetailsT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::String& GetEc2InstanceId() const { return m_ec2InstanceId; }
227 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
228 template <typename Ec2InstanceIdT = Aws::String>
229 void SetEc2InstanceId(Ec2InstanceIdT&& value) {
230 m_ec2InstanceIdHasBeenSet = true;
231 m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value);
232 }
233 template <typename Ec2InstanceIdT = Aws::String>
234 Host& WithEc2InstanceId(Ec2InstanceIdT&& value) {
235 SetEc2InstanceId(std::forward<Ec2InstanceIdT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
245 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
246 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
247 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
248 m_networkInterfacesHasBeenSet = true;
249 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
250 }
251 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
252 Host& WithNetworkInterfaces(NetworkInterfacesT&& value) {
253 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
254 return *this;
255 }
256 template <typename NetworkInterfacesT = NetworkInterface>
257 Host& AddNetworkInterfaces(NetworkInterfacesT&& value) {
258 m_networkInterfacesHasBeenSet = true;
259 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
260 return *this;
261 }
263 private:
264 Aws::String m_hostName;
265
266 Aws::String m_ipAddress;
267
268 Aws::String m_keyName;
269
270 InstanceType m_instanceType{InstanceType::NOT_SET};
271
272 Aws::String m_placementGroupId;
273
274 Aws::String m_dedicatedHostId;
275
276 Aws::Utils::DateTime m_createdAt{};
277
278 Aws::Utils::DateTime m_modifiedAt{};
279
280 HostState m_hostState{HostState::NOT_SET};
281
282 Aws::String m_stateDetails;
283
284 Aws::String m_ec2InstanceId;
285
286 Aws::Vector<NetworkInterface> m_networkInterfaces;
287 bool m_hostNameHasBeenSet = false;
288 bool m_ipAddressHasBeenSet = false;
289 bool m_keyNameHasBeenSet = false;
290 bool m_instanceTypeHasBeenSet = false;
291 bool m_placementGroupIdHasBeenSet = false;
292 bool m_dedicatedHostIdHasBeenSet = false;
293 bool m_createdAtHasBeenSet = false;
294 bool m_modifiedAtHasBeenSet = false;
295 bool m_hostStateHasBeenSet = false;
296 bool m_stateDetailsHasBeenSet = false;
297 bool m_ec2InstanceIdHasBeenSet = false;
298 bool m_networkInterfacesHasBeenSet = false;
299};
300
301} // namespace Model
302} // namespace EVS
303} // namespace Aws
void SetModifiedAt(ModifiedAtT &&value)
Definition Host.h:177
void SetHostName(HostNameT &&value)
Definition Host.h:50
void SetKeyName(KeyNameT &&value)
Definition Host.h:86
bool HostStateHasBeenSet() const
Definition Host.h:193
const Aws::String & GetEc2InstanceId() const
Definition Host.h:226
const Aws::String & GetKeyName() const
Definition Host.h:83
bool ModifiedAtHasBeenSet() const
Definition Host.h:175
bool InstanceTypeHasBeenSet() const
Definition Host.h:105
Host & WithIpAddress(IpAddressT &&value)
Definition Host.h:73
void SetEc2InstanceId(Ec2InstanceIdT &&value)
Definition Host.h:229
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition Host.h:244
Host & WithPlacementGroupId(PlacementGroupIdT &&value)
Definition Host.h:128
bool StateDetailsHasBeenSet() const
Definition Host.h:209
Host & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:257
AWS_EVS_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVS_API Host()=default
Host & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:252
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:247
bool DedicatedHostIdHasBeenSet() const
Definition Host.h:139
void SetStateDetails(StateDetailsT &&value)
Definition Host.h:211
bool Ec2InstanceIdHasBeenSet() const
Definition Host.h:227
Host & WithModifiedAt(ModifiedAtT &&value)
Definition Host.h:182
void SetInstanceType(InstanceType value)
Definition Host.h:106
AWS_EVS_API Host(Aws::Utils::Json::JsonView jsonValue)
Host & WithStateDetails(StateDetailsT &&value)
Definition Host.h:216
void SetIpAddress(IpAddressT &&value)
Definition Host.h:68
Host & WithEc2InstanceId(Ec2InstanceIdT &&value)
Definition Host.h:234
bool KeyNameHasBeenSet() const
Definition Host.h:84
Host & WithInstanceType(InstanceType value)
Definition Host.h:110
void SetDedicatedHostId(DedicatedHostIdT &&value)
Definition Host.h:141
void SetCreatedAt(CreatedAtT &&value)
Definition Host.h:159
Host & WithHostState(HostState value)
Definition Host.h:198
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Host.h:174
Host & WithKeyName(KeyNameT &&value)
Definition Host.h:91
HostState GetHostState() const
Definition Host.h:192
InstanceType GetInstanceType() const
Definition Host.h:104
const Aws::String & GetIpAddress() const
Definition Host.h:65
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Host.h:156
bool HostNameHasBeenSet() const
Definition Host.h:48
void SetHostState(HostState value)
Definition Host.h:194
Host & WithCreatedAt(CreatedAtT &&value)
Definition Host.h:164
const Aws::String & GetPlacementGroupId() const
Definition Host.h:120
Host & WithDedicatedHostId(DedicatedHostIdT &&value)
Definition Host.h:146
bool CreatedAtHasBeenSet() const
Definition Host.h:157
bool IpAddressHasBeenSet() const
Definition Host.h:66
const Aws::String & GetStateDetails() const
Definition Host.h:208
const Aws::String & GetDedicatedHostId() const
Definition Host.h:138
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
bool NetworkInterfacesHasBeenSet() const
Definition Host.h:245
bool PlacementGroupIdHasBeenSet() const
Definition Host.h:121
void SetPlacementGroupId(PlacementGroupIdT &&value)
Definition Host.h:123
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