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/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/AutoPlacement.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/AvailableCapacity.h>
12#include <aws/ec2/model/HostProperties.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/AllocationState.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/ec2/model/HostRecovery.h>
17#include <aws/ec2/model/AllowsMultipleInstanceTypes.h>
18#include <aws/ec2/model/HostMaintenance.h>
19#include <aws/ec2/model/HostInstance.h>
20#include <aws/ec2/model/Tag.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Xml
28{
29 class XmlNode;
30} // namespace Xml
31} // namespace Utils
32namespace EC2
33{
34namespace Model
35{
36
42 class Host
43 {
44 public:
45 AWS_EC2_API Host();
46 AWS_EC2_API Host(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_EC2_API Host& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
51
52
54
57 inline const AutoPlacement& GetAutoPlacement() const{ return m_autoPlacement; }
58 inline bool AutoPlacementHasBeenSet() const { return m_autoPlacementHasBeenSet; }
59 inline void SetAutoPlacement(const AutoPlacement& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = value; }
60 inline void SetAutoPlacement(AutoPlacement&& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = std::move(value); }
61 inline Host& WithAutoPlacement(const AutoPlacement& value) { SetAutoPlacement(value); return *this;}
62 inline Host& WithAutoPlacement(AutoPlacement&& value) { SetAutoPlacement(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
70 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
71 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
72 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
73 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
74 inline Host& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
75 inline Host& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
76 inline Host& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
78
80
83 inline const AvailableCapacity& GetAvailableCapacity() const{ return m_availableCapacity; }
84 inline bool AvailableCapacityHasBeenSet() const { return m_availableCapacityHasBeenSet; }
85 inline void SetAvailableCapacity(const AvailableCapacity& value) { m_availableCapacityHasBeenSet = true; m_availableCapacity = value; }
86 inline void SetAvailableCapacity(AvailableCapacity&& value) { m_availableCapacityHasBeenSet = true; m_availableCapacity = std::move(value); }
87 inline Host& WithAvailableCapacity(const AvailableCapacity& value) { SetAvailableCapacity(value); return *this;}
88 inline Host& WithAvailableCapacity(AvailableCapacity&& value) { SetAvailableCapacity(std::move(value)); return *this;}
90
92
98 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
99 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
100 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
101 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
102 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
103 inline Host& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
104 inline Host& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
105 inline Host& WithClientToken(const char* value) { SetClientToken(value); return *this;}
107
109
112 inline const Aws::String& GetHostId() const{ return m_hostId; }
113 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
114 inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
115 inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
116 inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
117 inline Host& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
118 inline Host& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
119 inline Host& WithHostId(const char* value) { SetHostId(value); return *this;}
121
123
126 inline const HostProperties& GetHostProperties() const{ return m_hostProperties; }
127 inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; }
128 inline void SetHostProperties(const HostProperties& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = value; }
129 inline void SetHostProperties(HostProperties&& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = std::move(value); }
130 inline Host& WithHostProperties(const HostProperties& value) { SetHostProperties(value); return *this;}
131 inline Host& WithHostProperties(HostProperties&& value) { SetHostProperties(std::move(value)); return *this;}
133
135
139 inline const Aws::String& GetHostReservationId() const{ return m_hostReservationId; }
140 inline bool HostReservationIdHasBeenSet() const { return m_hostReservationIdHasBeenSet; }
141 inline void SetHostReservationId(const Aws::String& value) { m_hostReservationIdHasBeenSet = true; m_hostReservationId = value; }
142 inline void SetHostReservationId(Aws::String&& value) { m_hostReservationIdHasBeenSet = true; m_hostReservationId = std::move(value); }
143 inline void SetHostReservationId(const char* value) { m_hostReservationIdHasBeenSet = true; m_hostReservationId.assign(value); }
144 inline Host& WithHostReservationId(const Aws::String& value) { SetHostReservationId(value); return *this;}
145 inline Host& WithHostReservationId(Aws::String&& value) { SetHostReservationId(std::move(value)); return *this;}
146 inline Host& WithHostReservationId(const char* value) { SetHostReservationId(value); return *this;}
148
150
154 inline const Aws::Vector<HostInstance>& GetInstances() const{ return m_instances; }
155 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
156 inline void SetInstances(const Aws::Vector<HostInstance>& value) { m_instancesHasBeenSet = true; m_instances = value; }
157 inline void SetInstances(Aws::Vector<HostInstance>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
158 inline Host& WithInstances(const Aws::Vector<HostInstance>& value) { SetInstances(value); return *this;}
159 inline Host& WithInstances(Aws::Vector<HostInstance>&& value) { SetInstances(std::move(value)); return *this;}
160 inline Host& AddInstances(const HostInstance& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
161 inline Host& AddInstances(HostInstance&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
163
165
168 inline const AllocationState& GetState() const{ return m_state; }
169 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
170 inline void SetState(const AllocationState& value) { m_stateHasBeenSet = true; m_state = value; }
171 inline void SetState(AllocationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
172 inline Host& WithState(const AllocationState& value) { SetState(value); return *this;}
173 inline Host& WithState(AllocationState&& value) { SetState(std::move(value)); return *this;}
175
177
180 inline const Aws::Utils::DateTime& GetAllocationTime() const{ return m_allocationTime; }
181 inline bool AllocationTimeHasBeenSet() const { return m_allocationTimeHasBeenSet; }
182 inline void SetAllocationTime(const Aws::Utils::DateTime& value) { m_allocationTimeHasBeenSet = true; m_allocationTime = value; }
183 inline void SetAllocationTime(Aws::Utils::DateTime&& value) { m_allocationTimeHasBeenSet = true; m_allocationTime = std::move(value); }
184 inline Host& WithAllocationTime(const Aws::Utils::DateTime& value) { SetAllocationTime(value); return *this;}
185 inline Host& WithAllocationTime(Aws::Utils::DateTime&& value) { SetAllocationTime(std::move(value)); return *this;}
187
189
192 inline const Aws::Utils::DateTime& GetReleaseTime() const{ return m_releaseTime; }
193 inline bool ReleaseTimeHasBeenSet() const { return m_releaseTimeHasBeenSet; }
194 inline void SetReleaseTime(const Aws::Utils::DateTime& value) { m_releaseTimeHasBeenSet = true; m_releaseTime = value; }
195 inline void SetReleaseTime(Aws::Utils::DateTime&& value) { m_releaseTimeHasBeenSet = true; m_releaseTime = std::move(value); }
196 inline Host& WithReleaseTime(const Aws::Utils::DateTime& value) { SetReleaseTime(value); return *this;}
197 inline Host& WithReleaseTime(Aws::Utils::DateTime&& value) { SetReleaseTime(std::move(value)); return *this;}
199
201
204 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
205 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
206 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
207 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
208 inline Host& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
209 inline Host& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
210 inline Host& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
211 inline Host& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
213
215
219 inline const HostRecovery& GetHostRecovery() const{ return m_hostRecovery; }
220 inline bool HostRecoveryHasBeenSet() const { return m_hostRecoveryHasBeenSet; }
221 inline void SetHostRecovery(const HostRecovery& value) { m_hostRecoveryHasBeenSet = true; m_hostRecovery = value; }
222 inline void SetHostRecovery(HostRecovery&& value) { m_hostRecoveryHasBeenSet = true; m_hostRecovery = std::move(value); }
223 inline Host& WithHostRecovery(const HostRecovery& value) { SetHostRecovery(value); return *this;}
224 inline Host& WithHostRecovery(HostRecovery&& value) { SetHostRecovery(std::move(value)); return *this;}
226
228
234 inline const AllowsMultipleInstanceTypes& GetAllowsMultipleInstanceTypes() const{ return m_allowsMultipleInstanceTypes; }
235 inline bool AllowsMultipleInstanceTypesHasBeenSet() const { return m_allowsMultipleInstanceTypesHasBeenSet; }
236 inline void SetAllowsMultipleInstanceTypes(const AllowsMultipleInstanceTypes& value) { m_allowsMultipleInstanceTypesHasBeenSet = true; m_allowsMultipleInstanceTypes = value; }
237 inline void SetAllowsMultipleInstanceTypes(AllowsMultipleInstanceTypes&& value) { m_allowsMultipleInstanceTypesHasBeenSet = true; m_allowsMultipleInstanceTypes = std::move(value); }
241
243
246 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
247 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
248 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
249 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
250 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
251 inline Host& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
252 inline Host& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
253 inline Host& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
255
257
260 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
261 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
262 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
263 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
264 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
265 inline Host& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
266 inline Host& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
267 inline Host& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
269
271
276 inline bool GetMemberOfServiceLinkedResourceGroup() const{ return m_memberOfServiceLinkedResourceGroup; }
277 inline bool MemberOfServiceLinkedResourceGroupHasBeenSet() const { return m_memberOfServiceLinkedResourceGroupHasBeenSet; }
278 inline void SetMemberOfServiceLinkedResourceGroup(bool value) { m_memberOfServiceLinkedResourceGroupHasBeenSet = true; m_memberOfServiceLinkedResourceGroup = value; }
281
283
287 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
288 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
289 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
290 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
291 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
292 inline Host& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
293 inline Host& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
294 inline Host& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
296
298
302 inline const HostMaintenance& GetHostMaintenance() const{ return m_hostMaintenance; }
303 inline bool HostMaintenanceHasBeenSet() const { return m_hostMaintenanceHasBeenSet; }
304 inline void SetHostMaintenance(const HostMaintenance& value) { m_hostMaintenanceHasBeenSet = true; m_hostMaintenance = value; }
305 inline void SetHostMaintenance(HostMaintenance&& value) { m_hostMaintenanceHasBeenSet = true; m_hostMaintenance = std::move(value); }
306 inline Host& WithHostMaintenance(const HostMaintenance& value) { SetHostMaintenance(value); return *this;}
307 inline Host& WithHostMaintenance(HostMaintenance&& value) { SetHostMaintenance(std::move(value)); return *this;}
309
311
315 inline const Aws::String& GetAssetId() const{ return m_assetId; }
316 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
317 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
318 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
319 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
320 inline Host& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
321 inline Host& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
322 inline Host& WithAssetId(const char* value) { SetAssetId(value); return *this;}
324 private:
325
326 AutoPlacement m_autoPlacement;
327 bool m_autoPlacementHasBeenSet = false;
328
329 Aws::String m_availabilityZone;
330 bool m_availabilityZoneHasBeenSet = false;
331
332 AvailableCapacity m_availableCapacity;
333 bool m_availableCapacityHasBeenSet = false;
334
335 Aws::String m_clientToken;
336 bool m_clientTokenHasBeenSet = false;
337
338 Aws::String m_hostId;
339 bool m_hostIdHasBeenSet = false;
340
341 HostProperties m_hostProperties;
342 bool m_hostPropertiesHasBeenSet = false;
343
344 Aws::String m_hostReservationId;
345 bool m_hostReservationIdHasBeenSet = false;
346
347 Aws::Vector<HostInstance> m_instances;
348 bool m_instancesHasBeenSet = false;
349
350 AllocationState m_state;
351 bool m_stateHasBeenSet = false;
352
353 Aws::Utils::DateTime m_allocationTime;
354 bool m_allocationTimeHasBeenSet = false;
355
356 Aws::Utils::DateTime m_releaseTime;
357 bool m_releaseTimeHasBeenSet = false;
358
359 Aws::Vector<Tag> m_tags;
360 bool m_tagsHasBeenSet = false;
361
362 HostRecovery m_hostRecovery;
363 bool m_hostRecoveryHasBeenSet = false;
364
365 AllowsMultipleInstanceTypes m_allowsMultipleInstanceTypes;
366 bool m_allowsMultipleInstanceTypesHasBeenSet = false;
367
368 Aws::String m_ownerId;
369 bool m_ownerIdHasBeenSet = false;
370
371 Aws::String m_availabilityZoneId;
372 bool m_availabilityZoneIdHasBeenSet = false;
373
374 bool m_memberOfServiceLinkedResourceGroup;
375 bool m_memberOfServiceLinkedResourceGroupHasBeenSet = false;
376
377 Aws::String m_outpostArn;
378 bool m_outpostArnHasBeenSet = false;
379
380 HostMaintenance m_hostMaintenance;
381 bool m_hostMaintenanceHasBeenSet = false;
382
383 Aws::String m_assetId;
384 bool m_assetIdHasBeenSet = false;
385 };
386
387} // namespace Model
388} // namespace EC2
389} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< HostInstance > & GetInstances() const
Definition Host.h:154
Host & WithClientToken(const Aws::String &value)
Definition Host.h:103
void SetOwnerId(const char *value)
Definition Host.h:250
void SetReleaseTime(Aws::Utils::DateTime &&value)
Definition Host.h:195
Host & WithHostRecovery(const HostRecovery &value)
Definition Host.h:223
const Aws::String & GetAssetId() const
Definition Host.h:315
void SetAllowsMultipleInstanceTypes(AllowsMultipleInstanceTypes &&value)
Definition Host.h:237
bool AvailabilityZoneIdHasBeenSet() const
Definition Host.h:261
void SetInstances(const Aws::Vector< HostInstance > &value)
Definition Host.h:156
Host & AddTags(const Tag &value)
Definition Host.h:210
void SetHostRecovery(HostRecovery &&value)
Definition Host.h:222
Host & WithHostProperties(HostProperties &&value)
Definition Host.h:131
void SetAutoPlacement(AutoPlacement &&value)
Definition Host.h:60
bool AutoPlacementHasBeenSet() const
Definition Host.h:58
const Aws::String & GetHostId() const
Definition Host.h:112
void SetHostMaintenance(const HostMaintenance &value)
Definition Host.h:304
Host & WithClientToken(Aws::String &&value)
Definition Host.h:104
void SetClientToken(const char *value)
Definition Host.h:102
Host & WithAssetId(const Aws::String &value)
Definition Host.h:320
Host & AddInstances(const HostInstance &value)
Definition Host.h:160
const AllocationState & GetState() const
Definition Host.h:168
Host & WithHostId(const char *value)
Definition Host.h:119
Host & WithHostReservationId(const Aws::String &value)
Definition Host.h:144
void SetAutoPlacement(const AutoPlacement &value)
Definition Host.h:59
Host & WithClientToken(const char *value)
Definition Host.h:105
void SetAvailableCapacity(const AvailableCapacity &value)
Definition Host.h:85
const Aws::String & GetClientToken() const
Definition Host.h:98
Host & WithInstances(Aws::Vector< HostInstance > &&value)
Definition Host.h:159
void SetHostProperties(HostProperties &&value)
Definition Host.h:129
void SetState(const AllocationState &value)
Definition Host.h:170
void SetInstances(Aws::Vector< HostInstance > &&value)
Definition Host.h:157
void SetOutpostArn(const char *value)
Definition Host.h:291
void SetHostProperties(const HostProperties &value)
Definition Host.h:128
const HostMaintenance & GetHostMaintenance() const
Definition Host.h:302
Host & AddInstances(HostInstance &&value)
Definition Host.h:161
bool AvailableCapacityHasBeenSet() const
Definition Host.h:84
const HostProperties & GetHostProperties() const
Definition Host.h:126
void SetState(AllocationState &&value)
Definition Host.h:171
const HostRecovery & GetHostRecovery() const
Definition Host.h:219
void SetAllocationTime(Aws::Utils::DateTime &&value)
Definition Host.h:183
bool HostPropertiesHasBeenSet() const
Definition Host.h:127
Host & WithHostId(Aws::String &&value)
Definition Host.h:118
void SetAvailabilityZoneId(const char *value)
Definition Host.h:264
Host & WithAvailabilityZone(const char *value)
Definition Host.h:76
Host & WithAllowsMultipleInstanceTypes(AllowsMultipleInstanceTypes &&value)
Definition Host.h:239
void SetAvailabilityZone(const char *value)
Definition Host.h:73
void SetTags(Aws::Vector< Tag > &&value)
Definition Host.h:207
Host & WithOutpostArn(const Aws::String &value)
Definition Host.h:292
bool OwnerIdHasBeenSet() const
Definition Host.h:247
Host & WithHostRecovery(HostRecovery &&value)
Definition Host.h:224
AWS_EC2_API Host(const Aws::Utils::Xml::XmlNode &xmlNode)
Host & WithHostReservationId(const char *value)
Definition Host.h:146
void SetHostId(const char *value)
Definition Host.h:116
void SetOutpostArn(Aws::String &&value)
Definition Host.h:290
bool ReleaseTimeHasBeenSet() const
Definition Host.h:193
bool MemberOfServiceLinkedResourceGroupHasBeenSet() const
Definition Host.h:277
const Aws::String & GetOutpostArn() const
Definition Host.h:287
Host & WithAvailabilityZoneId(Aws::String &&value)
Definition Host.h:266
bool InstancesHasBeenSet() const
Definition Host.h:155
void SetHostReservationId(Aws::String &&value)
Definition Host.h:142
Host & WithAvailabilityZoneId(const char *value)
Definition Host.h:267
void SetHostReservationId(const char *value)
Definition Host.h:143
const AutoPlacement & GetAutoPlacement() const
Definition Host.h:57
void SetAllowsMultipleInstanceTypes(const AllowsMultipleInstanceTypes &value)
Definition Host.h:236
void SetMemberOfServiceLinkedResourceGroup(bool value)
Definition Host.h:278
Host & WithOwnerId(const char *value)
Definition Host.h:253
Host & AddTags(Tag &&value)
Definition Host.h:211
void SetHostId(const Aws::String &value)
Definition Host.h:114
Host & WithReleaseTime(const Aws::Utils::DateTime &value)
Definition Host.h:196
Host & WithHostReservationId(Aws::String &&value)
Definition Host.h:145
AWS_EC2_API Host()
Host & WithHostId(const Aws::String &value)
Definition Host.h:117
Host & WithTags(Aws::Vector< Tag > &&value)
Definition Host.h:209
const Aws::String & GetAvailabilityZone() const
Definition Host.h:69
Host & WithAssetId(const char *value)
Definition Host.h:322
Host & WithOutpostArn(Aws::String &&value)
Definition Host.h:293
bool TagsHasBeenSet() const
Definition Host.h:205
void SetAllocationTime(const Aws::Utils::DateTime &value)
Definition Host.h:182
Host & WithTags(const Aws::Vector< Tag > &value)
Definition Host.h:208
void SetAvailableCapacity(AvailableCapacity &&value)
Definition Host.h:86
bool AvailabilityZoneHasBeenSet() const
Definition Host.h:70
void SetHostRecovery(const HostRecovery &value)
Definition Host.h:221
Host & WithAvailabilityZone(const Aws::String &value)
Definition Host.h:74
void SetAvailabilityZone(const Aws::String &value)
Definition Host.h:71
Host & WithState(const AllocationState &value)
Definition Host.h:172
void SetOutpostArn(const Aws::String &value)
Definition Host.h:289
void SetOwnerId(const Aws::String &value)
Definition Host.h:248
bool StateHasBeenSet() const
Definition Host.h:169
Host & WithAssetId(Aws::String &&value)
Definition Host.h:321
bool AllowsMultipleInstanceTypesHasBeenSet() const
Definition Host.h:235
Host & WithAvailabilityZone(Aws::String &&value)
Definition Host.h:75
Host & WithAutoPlacement(AutoPlacement &&value)
Definition Host.h:62
Host & WithHostMaintenance(HostMaintenance &&value)
Definition Host.h:307
const Aws::String & GetOwnerId() const
Definition Host.h:246
Host & WithAvailableCapacity(AvailableCapacity &&value)
Definition Host.h:88
Host & WithAllocationTime(Aws::Utils::DateTime &&value)
Definition Host.h:185
Host & WithOutpostArn(const char *value)
Definition Host.h:294
bool HostIdHasBeenSet() const
Definition Host.h:113
void SetHostMaintenance(HostMaintenance &&value)
Definition Host.h:305
bool HostReservationIdHasBeenSet() const
Definition Host.h:140
AWS_EC2_API Host & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Host & WithAvailabilityZoneId(const Aws::String &value)
Definition Host.h:265
bool OutpostArnHasBeenSet() const
Definition Host.h:288
bool AssetIdHasBeenSet() const
Definition Host.h:316
void SetTags(const Aws::Vector< Tag > &value)
Definition Host.h:206
bool ClientTokenHasBeenSet() const
Definition Host.h:99
Host & WithAllowsMultipleInstanceTypes(const AllowsMultipleInstanceTypes &value)
Definition Host.h:238
Host & WithHostProperties(const HostProperties &value)
Definition Host.h:130
void SetClientToken(const Aws::String &value)
Definition Host.h:100
void SetHostReservationId(const Aws::String &value)
Definition Host.h:141
Host & WithAvailableCapacity(const AvailableCapacity &value)
Definition Host.h:87
void SetAvailabilityZone(Aws::String &&value)
Definition Host.h:72
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetClientToken(Aws::String &&value)
Definition Host.h:101
void SetHostId(Aws::String &&value)
Definition Host.h:115
bool GetMemberOfServiceLinkedResourceGroup() const
Definition Host.h:276
const Aws::String & GetAvailabilityZoneId() const
Definition Host.h:260
void SetAssetId(const Aws::String &value)
Definition Host.h:317
const Aws::Utils::DateTime & GetReleaseTime() const
Definition Host.h:192
const AllowsMultipleInstanceTypes & GetAllowsMultipleInstanceTypes() const
Definition Host.h:234
Host & WithHostMaintenance(const HostMaintenance &value)
Definition Host.h:306
Host & WithOwnerId(Aws::String &&value)
Definition Host.h:252
bool HostRecoveryHasBeenSet() const
Definition Host.h:220
void SetAvailabilityZoneId(Aws::String &&value)
Definition Host.h:263
Host & WithState(AllocationState &&value)
Definition Host.h:173
void SetAvailabilityZoneId(const Aws::String &value)
Definition Host.h:262
const Aws::Vector< Tag > & GetTags() const
Definition Host.h:204
const Aws::String & GetHostReservationId() const
Definition Host.h:139
void SetAssetId(Aws::String &&value)
Definition Host.h:318
void SetOwnerId(Aws::String &&value)
Definition Host.h:249
void SetReleaseTime(const Aws::Utils::DateTime &value)
Definition Host.h:194
Host & WithAutoPlacement(const AutoPlacement &value)
Definition Host.h:61
Host & WithOwnerId(const Aws::String &value)
Definition Host.h:251
void SetAssetId(const char *value)
Definition Host.h:319
const AvailableCapacity & GetAvailableCapacity() const
Definition Host.h:83
Host & WithAllocationTime(const Aws::Utils::DateTime &value)
Definition Host.h:184
Host & WithInstances(const Aws::Vector< HostInstance > &value)
Definition Host.h:158
bool AllocationTimeHasBeenSet() const
Definition Host.h:181
bool HostMaintenanceHasBeenSet() const
Definition Host.h:303
const Aws::Utils::DateTime & GetAllocationTime() const
Definition Host.h:180
Host & WithReleaseTime(Aws::Utils::DateTime &&value)
Definition Host.h:197
Host & WithMemberOfServiceLinkedResourceGroup(bool value)
Definition Host.h:279
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream