AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Host.h
1
6#pragma once
7#include <aws/evs/EVS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/evs/model/InstanceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/evs/model/HostState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/evs/model/NetworkInterface.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace EVS
27{
28namespace Model
29{
30
39 class Host
40 {
41 public:
42 AWS_EVS_API Host() = default;
43 AWS_EVS_API Host(Aws::Utils::Json::JsonView jsonValue);
44 AWS_EVS_API Host& operator=(Aws::Utils::Json::JsonView jsonValue);
46
47
49
53 inline const Aws::String& GetHostName() const { return m_hostName; }
54 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
55 template<typename HostNameT = Aws::String>
56 void SetHostName(HostNameT&& value) { m_hostNameHasBeenSet = true; m_hostName = std::forward<HostNameT>(value); }
57 template<typename HostNameT = Aws::String>
58 Host& WithHostName(HostNameT&& value) { SetHostName(std::forward<HostNameT>(value)); return *this;}
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) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
69 template<typename IpAddressT = Aws::String>
70 Host& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
72
74
77 inline const Aws::String& GetKeyName() const { return m_keyName; }
78 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
79 template<typename KeyNameT = Aws::String>
80 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
81 template<typename KeyNameT = Aws::String>
82 Host& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
84
86
91 inline InstanceType GetInstanceType() const { return m_instanceType; }
92 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
93 inline void SetInstanceType(InstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
94 inline Host& WithInstanceType(InstanceType value) { SetInstanceType(value); return *this;}
96
98
101 inline const Aws::String& GetPlacementGroupId() const { return m_placementGroupId; }
102 inline bool PlacementGroupIdHasBeenSet() const { return m_placementGroupIdHasBeenSet; }
103 template<typename PlacementGroupIdT = Aws::String>
104 void SetPlacementGroupId(PlacementGroupIdT&& value) { m_placementGroupIdHasBeenSet = true; m_placementGroupId = std::forward<PlacementGroupIdT>(value); }
105 template<typename PlacementGroupIdT = Aws::String>
106 Host& WithPlacementGroupId(PlacementGroupIdT&& value) { SetPlacementGroupId(std::forward<PlacementGroupIdT>(value)); return *this;}
108
110
113 inline const Aws::String& GetDedicatedHostId() const { return m_dedicatedHostId; }
114 inline bool DedicatedHostIdHasBeenSet() const { return m_dedicatedHostIdHasBeenSet; }
115 template<typename DedicatedHostIdT = Aws::String>
116 void SetDedicatedHostId(DedicatedHostIdT&& value) { m_dedicatedHostIdHasBeenSet = true; m_dedicatedHostId = std::forward<DedicatedHostIdT>(value); }
117 template<typename DedicatedHostIdT = Aws::String>
118 Host& WithDedicatedHostId(DedicatedHostIdT&& value) { SetDedicatedHostId(std::forward<DedicatedHostIdT>(value)); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
126 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
127 template<typename CreatedAtT = Aws::Utils::DateTime>
128 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
129 template<typename CreatedAtT = Aws::Utils::DateTime>
130 Host& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
138 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
139 template<typename ModifiedAtT = Aws::Utils::DateTime>
140 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
141 template<typename ModifiedAtT = Aws::Utils::DateTime>
142 Host& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
144
146
149 inline HostState GetHostState() const { return m_hostState; }
150 inline bool HostStateHasBeenSet() const { return m_hostStateHasBeenSet; }
151 inline void SetHostState(HostState value) { m_hostStateHasBeenSet = true; m_hostState = value; }
152 inline Host& WithHostState(HostState value) { SetHostState(value); return *this;}
154
156
159 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
160 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
161 template<typename StateDetailsT = Aws::String>
162 void SetStateDetails(StateDetailsT&& value) { m_stateDetailsHasBeenSet = true; m_stateDetails = std::forward<StateDetailsT>(value); }
163 template<typename StateDetailsT = Aws::String>
164 Host& WithStateDetails(StateDetailsT&& value) { SetStateDetails(std::forward<StateDetailsT>(value)); return *this;}
166
168
171 inline const Aws::String& GetEc2InstanceId() const { return m_ec2InstanceId; }
172 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
173 template<typename Ec2InstanceIdT = Aws::String>
174 void SetEc2InstanceId(Ec2InstanceIdT&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value); }
175 template<typename Ec2InstanceIdT = Aws::String>
176 Host& WithEc2InstanceId(Ec2InstanceIdT&& value) { SetEc2InstanceId(std::forward<Ec2InstanceIdT>(value)); return *this;}
178
180
183 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
184 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
185 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
186 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
187 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
188 Host& WithNetworkInterfaces(NetworkInterfacesT&& value) { SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value)); return *this;}
189 template<typename NetworkInterfacesT = NetworkInterface>
190 Host& AddNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value)); return *this; }
192 private:
193
194 Aws::String m_hostName;
195 bool m_hostNameHasBeenSet = false;
196
197 Aws::String m_ipAddress;
198 bool m_ipAddressHasBeenSet = false;
199
200 Aws::String m_keyName;
201 bool m_keyNameHasBeenSet = false;
202
203 InstanceType m_instanceType{InstanceType::NOT_SET};
204 bool m_instanceTypeHasBeenSet = false;
205
206 Aws::String m_placementGroupId;
207 bool m_placementGroupIdHasBeenSet = false;
208
209 Aws::String m_dedicatedHostId;
210 bool m_dedicatedHostIdHasBeenSet = false;
211
212 Aws::Utils::DateTime m_createdAt{};
213 bool m_createdAtHasBeenSet = false;
214
215 Aws::Utils::DateTime m_modifiedAt{};
216 bool m_modifiedAtHasBeenSet = false;
217
218 HostState m_hostState{HostState::NOT_SET};
219 bool m_hostStateHasBeenSet = false;
220
221 Aws::String m_stateDetails;
222 bool m_stateDetailsHasBeenSet = false;
223
224 Aws::String m_ec2InstanceId;
225 bool m_ec2InstanceIdHasBeenSet = false;
226
227 Aws::Vector<NetworkInterface> m_networkInterfaces;
228 bool m_networkInterfacesHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace EVS
233} // namespace Aws
void SetModifiedAt(ModifiedAtT &&value)
Definition Host.h:140
void SetHostName(HostNameT &&value)
Definition Host.h:56
void SetKeyName(KeyNameT &&value)
Definition Host.h:80
bool HostStateHasBeenSet() const
Definition Host.h:150
const Aws::String & GetEc2InstanceId() const
Definition Host.h:171
const Aws::String & GetKeyName() const
Definition Host.h:77
bool ModifiedAtHasBeenSet() const
Definition Host.h:138
bool InstanceTypeHasBeenSet() const
Definition Host.h:92
Host & WithIpAddress(IpAddressT &&value)
Definition Host.h:70
void SetEc2InstanceId(Ec2InstanceIdT &&value)
Definition Host.h:174
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition Host.h:183
Host & WithPlacementGroupId(PlacementGroupIdT &&value)
Definition Host.h:106
bool StateDetailsHasBeenSet() const
Definition Host.h:160
Host & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:190
AWS_EVS_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVS_API Host()=default
Host & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:188
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition Host.h:186
bool DedicatedHostIdHasBeenSet() const
Definition Host.h:114
void SetStateDetails(StateDetailsT &&value)
Definition Host.h:162
bool Ec2InstanceIdHasBeenSet() const
Definition Host.h:172
Host & WithModifiedAt(ModifiedAtT &&value)
Definition Host.h:142
void SetInstanceType(InstanceType value)
Definition Host.h:93
AWS_EVS_API Host(Aws::Utils::Json::JsonView jsonValue)
Host & WithStateDetails(StateDetailsT &&value)
Definition Host.h:164
void SetIpAddress(IpAddressT &&value)
Definition Host.h:68
Host & WithEc2InstanceId(Ec2InstanceIdT &&value)
Definition Host.h:176
bool KeyNameHasBeenSet() const
Definition Host.h:78
Host & WithInstanceType(InstanceType value)
Definition Host.h:94
void SetDedicatedHostId(DedicatedHostIdT &&value)
Definition Host.h:116
void SetCreatedAt(CreatedAtT &&value)
Definition Host.h:128
Host & WithHostState(HostState value)
Definition Host.h:152
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Host.h:137
Host & WithKeyName(KeyNameT &&value)
Definition Host.h:82
HostState GetHostState() const
Definition Host.h:149
InstanceType GetInstanceType() const
Definition Host.h:91
const Aws::String & GetIpAddress() const
Definition Host.h:65
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Host.h:125
bool HostNameHasBeenSet() const
Definition Host.h:54
void SetHostState(HostState value)
Definition Host.h:151
Host & WithCreatedAt(CreatedAtT &&value)
Definition Host.h:130
const Aws::String & GetPlacementGroupId() const
Definition Host.h:101
Host & WithDedicatedHostId(DedicatedHostIdT &&value)
Definition Host.h:118
bool CreatedAtHasBeenSet() const
Definition Host.h:126
bool IpAddressHasBeenSet() const
Definition Host.h:66
const Aws::String & GetStateDetails() const
Definition Host.h:159
const Aws::String & GetDedicatedHostId() const
Definition Host.h:113
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
bool NetworkInterfacesHasBeenSet() const
Definition Host.h:184
bool PlacementGroupIdHasBeenSet() const
Definition Host.h:102
void SetPlacementGroupId(PlacementGroupIdT &&value)
Definition Host.h:104
const Aws::String & GetHostName() const
Definition Host.h:53
Host & WithHostName(HostNameT &&value)
Definition Host.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue