AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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
33class Host {
34 public:
35 AWS_EVS_API Host() = default;
36 AWS_EVS_API Host(Aws::Utils::Json::JsonView jsonValue);
37 AWS_EVS_API Host& operator=(Aws::Utils::Json::JsonView jsonValue);
39
41
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) {
49 m_hostNameHasBeenSet = true;
50 m_hostName = std::forward<HostNameT>(value);
51 }
52 template <typename HostNameT = Aws::String>
53 Host& WithHostName(HostNameT&& value) {
54 SetHostName(std::forward<HostNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
64 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
65 template <typename IpAddressT = Aws::String>
66 void SetIpAddress(IpAddressT&& value) {
67 m_ipAddressHasBeenSet = true;
68 m_ipAddress = std::forward<IpAddressT>(value);
69 }
70 template <typename IpAddressT = Aws::String>
71 Host& WithIpAddress(IpAddressT&& value) {
72 SetIpAddress(std::forward<IpAddressT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetKeyName() const { return m_keyName; }
82 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
83 template <typename KeyNameT = Aws::String>
84 void SetKeyName(KeyNameT&& value) {
85 m_keyNameHasBeenSet = true;
86 m_keyName = std::forward<KeyNameT>(value);
87 }
88 template <typename KeyNameT = Aws::String>
89 Host& WithKeyName(KeyNameT&& value) {
90 SetKeyName(std::forward<KeyNameT>(value));
91 return *this;
92 }
94
96
101 inline InstanceType GetInstanceType() const { return m_instanceType; }
102 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
103 inline void SetInstanceType(InstanceType value) {
104 m_instanceTypeHasBeenSet = true;
105 m_instanceType = value;
106 }
108 SetInstanceType(value);
109 return *this;
110 }
112
114
117 inline const Aws::String& GetPlacementGroupId() const { return m_placementGroupId; }
118 inline bool PlacementGroupIdHasBeenSet() const { return m_placementGroupIdHasBeenSet; }
119 template <typename PlacementGroupIdT = Aws::String>
120 void SetPlacementGroupId(PlacementGroupIdT&& value) {
121 m_placementGroupIdHasBeenSet = true;
122 m_placementGroupId = std::forward<PlacementGroupIdT>(value);
123 }
124 template <typename PlacementGroupIdT = Aws::String>
125 Host& WithPlacementGroupId(PlacementGroupIdT&& value) {
126 SetPlacementGroupId(std::forward<PlacementGroupIdT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetDedicatedHostId() const { return m_dedicatedHostId; }
136 inline bool DedicatedHostIdHasBeenSet() const { return m_dedicatedHostIdHasBeenSet; }
137 template <typename DedicatedHostIdT = Aws::String>
138 void SetDedicatedHostId(DedicatedHostIdT&& value) {
139 m_dedicatedHostIdHasBeenSet = true;
140 m_dedicatedHostId = std::forward<DedicatedHostIdT>(value);
141 }
142 template <typename DedicatedHostIdT = Aws::String>
143 Host& WithDedicatedHostId(DedicatedHostIdT&& value) {
144 SetDedicatedHostId(std::forward<DedicatedHostIdT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
154 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
155 template <typename CreatedAtT = Aws::Utils::DateTime>
156 void SetCreatedAt(CreatedAtT&& value) {
157 m_createdAtHasBeenSet = true;
158 m_createdAt = std::forward<CreatedAtT>(value);
159 }
160 template <typename CreatedAtT = Aws::Utils::DateTime>
161 Host& WithCreatedAt(CreatedAtT&& value) {
162 SetCreatedAt(std::forward<CreatedAtT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
172 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
173 template <typename ModifiedAtT = Aws::Utils::DateTime>
174 void SetModifiedAt(ModifiedAtT&& value) {
175 m_modifiedAtHasBeenSet = true;
176 m_modifiedAt = std::forward<ModifiedAtT>(value);
177 }
178 template <typename ModifiedAtT = Aws::Utils::DateTime>
179 Host& WithModifiedAt(ModifiedAtT&& value) {
180 SetModifiedAt(std::forward<ModifiedAtT>(value));
181 return *this;
182 }
184
186
189 inline HostState GetHostState() const { return m_hostState; }
190 inline bool HostStateHasBeenSet() const { return m_hostStateHasBeenSet; }
191 inline void SetHostState(HostState value) {
192 m_hostStateHasBeenSet = true;
193 m_hostState = value;
194 }
195 inline Host& WithHostState(HostState value) {
196 SetHostState(value);
197 return *this;
198 }
200
202
205 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
206 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
207 template <typename StateDetailsT = Aws::String>
208 void SetStateDetails(StateDetailsT&& value) {
209 m_stateDetailsHasBeenSet = true;
210 m_stateDetails = std::forward<StateDetailsT>(value);
211 }
212 template <typename StateDetailsT = Aws::String>
213 Host& WithStateDetails(StateDetailsT&& value) {
214 SetStateDetails(std::forward<StateDetailsT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::String& GetEc2InstanceId() const { return m_ec2InstanceId; }
224 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
225 template <typename Ec2InstanceIdT = Aws::String>
226 void SetEc2InstanceId(Ec2InstanceIdT&& value) {
227 m_ec2InstanceIdHasBeenSet = true;
228 m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value);
229 }
230 template <typename Ec2InstanceIdT = Aws::String>
231 Host& WithEc2InstanceId(Ec2InstanceIdT&& value) {
232 SetEc2InstanceId(std::forward<Ec2InstanceIdT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
242 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
243 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
244 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
245 m_networkInterfacesHasBeenSet = true;
246 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
247 }
248 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
249 Host& WithNetworkInterfaces(NetworkInterfacesT&& value) {
250 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
251 return *this;
252 }
253 template <typename NetworkInterfacesT = NetworkInterface>
254 Host& AddNetworkInterfaces(NetworkInterfacesT&& value) {
255 m_networkInterfacesHasBeenSet = true;
256 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
257 return *this;
258 }
260 private:
261 Aws::String m_hostName;
262
263 Aws::String m_ipAddress;
264
265 Aws::String m_keyName;
266
267 InstanceType m_instanceType{InstanceType::NOT_SET};
268
269 Aws::String m_placementGroupId;
270
271 Aws::String m_dedicatedHostId;
272
273 Aws::Utils::DateTime m_createdAt{};
274
275 Aws::Utils::DateTime m_modifiedAt{};
276
277 HostState m_hostState{HostState::NOT_SET};
278
279 Aws::String m_stateDetails;
280
281 Aws::String m_ec2InstanceId;
282
283 Aws::Vector<NetworkInterface> m_networkInterfaces;
284 bool m_hostNameHasBeenSet = false;
285 bool m_ipAddressHasBeenSet = false;
286 bool m_keyNameHasBeenSet = false;
287 bool m_instanceTypeHasBeenSet = false;
288 bool m_placementGroupIdHasBeenSet = false;
289 bool m_dedicatedHostIdHasBeenSet = false;
290 bool m_createdAtHasBeenSet = false;
291 bool m_modifiedAtHasBeenSet = false;
292 bool m_hostStateHasBeenSet = false;
293 bool m_stateDetailsHasBeenSet = false;
294 bool m_ec2InstanceIdHasBeenSet = false;
295 bool m_networkInterfacesHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace EVS
300} // namespace Aws
void SetModifiedAt(ModifiedAtT &&value)
Definition Host.h:174
void SetHostName(HostNameT &&value)
Definition Host.h:48
void SetKeyName(KeyNameT &&value)
Definition Host.h:84
bool HostStateHasBeenSet() const
Definition Host.h:190
const Aws::String & GetEc2InstanceId() const
Definition Host.h:223
const Aws::String & GetKeyName() const
Definition Host.h:81
bool ModifiedAtHasBeenSet() const
Definition Host.h:172
bool InstanceTypeHasBeenSet() const
Definition Host.h:102
Host & WithIpAddress(IpAddressT &&value)
Definition Host.h:71
void SetEc2InstanceId(Ec2InstanceIdT &&value)
Definition Host.h:226
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition Host.h:241
Host & WithPlacementGroupId(PlacementGroupIdT &&value)
Definition Host.h:125
bool StateDetailsHasBeenSet() const
Definition Host.h:206
Host & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:254
AWS_EVS_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVS_API Host()=default
Host & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:249
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:244
bool DedicatedHostIdHasBeenSet() const
Definition Host.h:136
void SetStateDetails(StateDetailsT &&value)
Definition Host.h:208
bool Ec2InstanceIdHasBeenSet() const
Definition Host.h:224
Host & WithModifiedAt(ModifiedAtT &&value)
Definition Host.h:179
void SetInstanceType(InstanceType value)
Definition Host.h:103
AWS_EVS_API Host(Aws::Utils::Json::JsonView jsonValue)
Host & WithStateDetails(StateDetailsT &&value)
Definition Host.h:213
void SetIpAddress(IpAddressT &&value)
Definition Host.h:66
Host & WithEc2InstanceId(Ec2InstanceIdT &&value)
Definition Host.h:231
bool KeyNameHasBeenSet() const
Definition Host.h:82
Host & WithInstanceType(InstanceType value)
Definition Host.h:107
void SetDedicatedHostId(DedicatedHostIdT &&value)
Definition Host.h:138
void SetCreatedAt(CreatedAtT &&value)
Definition Host.h:156
Host & WithHostState(HostState value)
Definition Host.h:195
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Host.h:171
Host & WithKeyName(KeyNameT &&value)
Definition Host.h:89
HostState GetHostState() const
Definition Host.h:189
InstanceType GetInstanceType() const
Definition Host.h:101
const Aws::String & GetIpAddress() const
Definition Host.h:63
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Host.h:153
bool HostNameHasBeenSet() const
Definition Host.h:46
void SetHostState(HostState value)
Definition Host.h:191
Host & WithCreatedAt(CreatedAtT &&value)
Definition Host.h:161
const Aws::String & GetPlacementGroupId() const
Definition Host.h:117
Host & WithDedicatedHostId(DedicatedHostIdT &&value)
Definition Host.h:143
bool CreatedAtHasBeenSet() const
Definition Host.h:154
bool IpAddressHasBeenSet() const
Definition Host.h:64
const Aws::String & GetStateDetails() const
Definition Host.h:205
const Aws::String & GetDedicatedHostId() const
Definition Host.h:135
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
bool NetworkInterfacesHasBeenSet() const
Definition Host.h:242
bool PlacementGroupIdHasBeenSet() const
Definition Host.h:118
void SetPlacementGroupId(PlacementGroupIdT &&value)
Definition Host.h:120
const Aws::String & GetHostName() const
Definition Host.h:45
Host & WithHostName(HostNameT &&value)
Definition Host.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue