AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityReservation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/CapacityReservationInstancePlatform.h>
11#include <aws/ec2/model/CapacityReservationTenancy.h>
12#include <aws/ec2/model/CapacityReservationState.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/ec2/model/EndDateType.h>
15#include <aws/ec2/model/InstanceMatchCriteria.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/ec2/model/CapacityReservationType.h>
18#include <aws/ec2/model/Tag.h>
19#include <aws/ec2/model/CapacityAllocation.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Xml
27{
28 class XmlNode;
29} // namespace Xml
30} // namespace Utils
31namespace EC2
32{
33namespace Model
34{
35
42 {
43 public:
44 AWS_EC2_API CapacityReservation();
45 AWS_EC2_API CapacityReservation(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
56 inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
57 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
58 inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
59 inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
60 inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
62 inline CapacityReservation& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;}
63 inline CapacityReservation& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
65
67
71 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
72 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
73 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
74 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
75 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
76 inline CapacityReservation& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
77 inline CapacityReservation& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
78 inline CapacityReservation& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
80
82
85 inline const Aws::String& GetCapacityReservationArn() const{ return m_capacityReservationArn; }
86 inline bool CapacityReservationArnHasBeenSet() const { return m_capacityReservationArnHasBeenSet; }
87 inline void SetCapacityReservationArn(const Aws::String& value) { m_capacityReservationArnHasBeenSet = true; m_capacityReservationArn = value; }
88 inline void SetCapacityReservationArn(Aws::String&& value) { m_capacityReservationArnHasBeenSet = true; m_capacityReservationArn = std::move(value); }
89 inline void SetCapacityReservationArn(const char* value) { m_capacityReservationArnHasBeenSet = true; m_capacityReservationArn.assign(value); }
91 inline CapacityReservation& WithCapacityReservationArn(Aws::String&& value) { SetCapacityReservationArn(std::move(value)); return *this;}
92 inline CapacityReservation& WithCapacityReservationArn(const char* value) { SetCapacityReservationArn(value); return *this;}
94
96
99 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
100 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
101 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
102 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
103 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
105 inline CapacityReservation& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
106 inline CapacityReservation& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
108
110
114 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
115 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
116 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
117 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
118 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
119 inline CapacityReservation& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
120 inline CapacityReservation& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
121 inline CapacityReservation& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
123
125
129 inline const CapacityReservationInstancePlatform& GetInstancePlatform() const{ return m_instancePlatform; }
130 inline bool InstancePlatformHasBeenSet() const { return m_instancePlatformHasBeenSet; }
131 inline void SetInstancePlatform(const CapacityReservationInstancePlatform& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = value; }
132 inline void SetInstancePlatform(CapacityReservationInstancePlatform&& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = std::move(value); }
136
138
141 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
142 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
143 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
144 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
145 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
146 inline CapacityReservation& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
147 inline CapacityReservation& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
148 inline CapacityReservation& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
150
152
161 inline const CapacityReservationTenancy& GetTenancy() const{ return m_tenancy; }
162 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
163 inline void SetTenancy(const CapacityReservationTenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
164 inline void SetTenancy(CapacityReservationTenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
165 inline CapacityReservation& WithTenancy(const CapacityReservationTenancy& value) { SetTenancy(value); return *this;}
166 inline CapacityReservation& WithTenancy(CapacityReservationTenancy&& value) { SetTenancy(std::move(value)); return *this;}
168
170
174 inline int GetTotalInstanceCount() const{ return m_totalInstanceCount; }
175 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
176 inline void SetTotalInstanceCount(int value) { m_totalInstanceCountHasBeenSet = true; m_totalInstanceCount = value; }
177 inline CapacityReservation& WithTotalInstanceCount(int value) { SetTotalInstanceCount(value); return *this;}
179
181
185 inline int GetAvailableInstanceCount() const{ return m_availableInstanceCount; }
186 inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; }
187 inline void SetAvailableInstanceCount(int value) { m_availableInstanceCountHasBeenSet = true; m_availableInstanceCount = value; }
190
192
199 inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
200 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
201 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
202 inline CapacityReservation& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
204
206
209 inline bool GetEphemeralStorage() const{ return m_ephemeralStorage; }
210 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
211 inline void SetEphemeralStorage(bool value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
212 inline CapacityReservation& WithEphemeralStorage(bool value) { SetEphemeralStorage(value); return *this;}
214
216
231 inline const CapacityReservationState& GetState() const{ return m_state; }
232 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
233 inline void SetState(const CapacityReservationState& value) { m_stateHasBeenSet = true; m_state = value; }
234 inline void SetState(CapacityReservationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
235 inline CapacityReservation& WithState(const CapacityReservationState& value) { SetState(value); return *this;}
236 inline CapacityReservation& WithState(CapacityReservationState&& value) { SetState(std::move(value)); return *this;}
238
240
243 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
244 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
245 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
246 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
247 inline CapacityReservation& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
248 inline CapacityReservation& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
250
252
258 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
259 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
260 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
261 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
262 inline CapacityReservation& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
263 inline CapacityReservation& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
265
267
274 inline const EndDateType& GetEndDateType() const{ return m_endDateType; }
275 inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
276 inline void SetEndDateType(const EndDateType& value) { m_endDateTypeHasBeenSet = true; m_endDateType = value; }
277 inline void SetEndDateType(EndDateType&& value) { m_endDateTypeHasBeenSet = true; m_endDateType = std::move(value); }
278 inline CapacityReservation& WithEndDateType(const EndDateType& value) { SetEndDateType(value); return *this;}
279 inline CapacityReservation& WithEndDateType(EndDateType&& value) { SetEndDateType(std::move(value)); return *this;}
281
283
295 inline const InstanceMatchCriteria& GetInstanceMatchCriteria() const{ return m_instanceMatchCriteria; }
296 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
297 inline void SetInstanceMatchCriteria(const InstanceMatchCriteria& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = value; }
298 inline void SetInstanceMatchCriteria(InstanceMatchCriteria&& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = std::move(value); }
302
304
307 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
308 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
309 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
310 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
311 inline CapacityReservation& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
312 inline CapacityReservation& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
314
316
319 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
320 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
321 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
322 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
323 inline CapacityReservation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
324 inline CapacityReservation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
325 inline CapacityReservation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
326 inline CapacityReservation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
328
330
334 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
335 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
336 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
337 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
338 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
339 inline CapacityReservation& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
340 inline CapacityReservation& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
341 inline CapacityReservation& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
343
345
350 inline const Aws::String& GetCapacityReservationFleetId() const{ return m_capacityReservationFleetId; }
351 inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
352 inline void SetCapacityReservationFleetId(const Aws::String& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = value; }
353 inline void SetCapacityReservationFleetId(Aws::String&& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = std::move(value); }
354 inline void SetCapacityReservationFleetId(const char* value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId.assign(value); }
357 inline CapacityReservation& WithCapacityReservationFleetId(const char* value) { SetCapacityReservationFleetId(value); return *this;}
359
361
368 inline const Aws::String& GetPlacementGroupArn() const{ return m_placementGroupArn; }
369 inline bool PlacementGroupArnHasBeenSet() const { return m_placementGroupArnHasBeenSet; }
370 inline void SetPlacementGroupArn(const Aws::String& value) { m_placementGroupArnHasBeenSet = true; m_placementGroupArn = value; }
371 inline void SetPlacementGroupArn(Aws::String&& value) { m_placementGroupArnHasBeenSet = true; m_placementGroupArn = std::move(value); }
372 inline void SetPlacementGroupArn(const char* value) { m_placementGroupArnHasBeenSet = true; m_placementGroupArn.assign(value); }
373 inline CapacityReservation& WithPlacementGroupArn(const Aws::String& value) { SetPlacementGroupArn(value); return *this;}
374 inline CapacityReservation& WithPlacementGroupArn(Aws::String&& value) { SetPlacementGroupArn(std::move(value)); return *this;}
375 inline CapacityReservation& WithPlacementGroupArn(const char* value) { SetPlacementGroupArn(value); return *this;}
377
379
382 inline const Aws::Vector<CapacityAllocation>& GetCapacityAllocations() const{ return m_capacityAllocations; }
383 inline bool CapacityAllocationsHasBeenSet() const { return m_capacityAllocationsHasBeenSet; }
384 inline void SetCapacityAllocations(const Aws::Vector<CapacityAllocation>& value) { m_capacityAllocationsHasBeenSet = true; m_capacityAllocations = value; }
385 inline void SetCapacityAllocations(Aws::Vector<CapacityAllocation>&& value) { m_capacityAllocationsHasBeenSet = true; m_capacityAllocations = std::move(value); }
388 inline CapacityReservation& AddCapacityAllocations(const CapacityAllocation& value) { m_capacityAllocationsHasBeenSet = true; m_capacityAllocations.push_back(value); return *this; }
389 inline CapacityReservation& AddCapacityAllocations(CapacityAllocation&& value) { m_capacityAllocationsHasBeenSet = true; m_capacityAllocations.push_back(std::move(value)); return *this; }
391
393
396 inline const CapacityReservationType& GetReservationType() const{ return m_reservationType; }
397 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
398 inline void SetReservationType(const CapacityReservationType& value) { m_reservationTypeHasBeenSet = true; m_reservationType = value; }
399 inline void SetReservationType(CapacityReservationType&& value) { m_reservationTypeHasBeenSet = true; m_reservationType = std::move(value); }
401 inline CapacityReservation& WithReservationType(CapacityReservationType&& value) { SetReservationType(std::move(value)); return *this;}
403
405
409 inline const Aws::String& GetUnusedReservationBillingOwnerId() const{ return m_unusedReservationBillingOwnerId; }
410 inline bool UnusedReservationBillingOwnerIdHasBeenSet() const { return m_unusedReservationBillingOwnerIdHasBeenSet; }
411 inline void SetUnusedReservationBillingOwnerId(const Aws::String& value) { m_unusedReservationBillingOwnerIdHasBeenSet = true; m_unusedReservationBillingOwnerId = value; }
412 inline void SetUnusedReservationBillingOwnerId(Aws::String&& value) { m_unusedReservationBillingOwnerIdHasBeenSet = true; m_unusedReservationBillingOwnerId = std::move(value); }
413 inline void SetUnusedReservationBillingOwnerId(const char* value) { m_unusedReservationBillingOwnerIdHasBeenSet = true; m_unusedReservationBillingOwnerId.assign(value); }
418 private:
419
420 Aws::String m_capacityReservationId;
421 bool m_capacityReservationIdHasBeenSet = false;
422
423 Aws::String m_ownerId;
424 bool m_ownerIdHasBeenSet = false;
425
426 Aws::String m_capacityReservationArn;
427 bool m_capacityReservationArnHasBeenSet = false;
428
429 Aws::String m_availabilityZoneId;
430 bool m_availabilityZoneIdHasBeenSet = false;
431
432 Aws::String m_instanceType;
433 bool m_instanceTypeHasBeenSet = false;
434
435 CapacityReservationInstancePlatform m_instancePlatform;
436 bool m_instancePlatformHasBeenSet = false;
437
438 Aws::String m_availabilityZone;
439 bool m_availabilityZoneHasBeenSet = false;
440
442 bool m_tenancyHasBeenSet = false;
443
444 int m_totalInstanceCount;
445 bool m_totalInstanceCountHasBeenSet = false;
446
447 int m_availableInstanceCount;
448 bool m_availableInstanceCountHasBeenSet = false;
449
450 bool m_ebsOptimized;
451 bool m_ebsOptimizedHasBeenSet = false;
452
453 bool m_ephemeralStorage;
454 bool m_ephemeralStorageHasBeenSet = false;
455
457 bool m_stateHasBeenSet = false;
458
459 Aws::Utils::DateTime m_startDate;
460 bool m_startDateHasBeenSet = false;
461
462 Aws::Utils::DateTime m_endDate;
463 bool m_endDateHasBeenSet = false;
464
465 EndDateType m_endDateType;
466 bool m_endDateTypeHasBeenSet = false;
467
468 InstanceMatchCriteria m_instanceMatchCriteria;
469 bool m_instanceMatchCriteriaHasBeenSet = false;
470
471 Aws::Utils::DateTime m_createDate;
472 bool m_createDateHasBeenSet = false;
473
474 Aws::Vector<Tag> m_tags;
475 bool m_tagsHasBeenSet = false;
476
477 Aws::String m_outpostArn;
478 bool m_outpostArnHasBeenSet = false;
479
480 Aws::String m_capacityReservationFleetId;
481 bool m_capacityReservationFleetIdHasBeenSet = false;
482
483 Aws::String m_placementGroupArn;
484 bool m_placementGroupArnHasBeenSet = false;
485
486 Aws::Vector<CapacityAllocation> m_capacityAllocations;
487 bool m_capacityAllocationsHasBeenSet = false;
488
489 CapacityReservationType m_reservationType;
490 bool m_reservationTypeHasBeenSet = false;
491
492 Aws::String m_unusedReservationBillingOwnerId;
493 bool m_unusedReservationBillingOwnerIdHasBeenSet = false;
494 };
495
496} // namespace Model
497} // namespace EC2
498} // namespace Aws
void SetReservationType(CapacityReservationType &&value)
CapacityReservation & WithInstanceType(const Aws::String &value)
void SetCreateDate(Aws::Utils::DateTime &&value)
const InstanceMatchCriteria & GetInstanceMatchCriteria() const
CapacityReservation & WithAvailableInstanceCount(int value)
void SetCapacityReservationId(const char *value)
CapacityReservation & WithCapacityAllocations(Aws::Vector< CapacityAllocation > &&value)
const Aws::Utils::DateTime & GetStartDate() const
const CapacityReservationInstancePlatform & GetInstancePlatform() const
void SetCapacityReservationArn(Aws::String &&value)
const Aws::String & GetInstanceType() const
CapacityReservation & WithState(const CapacityReservationState &value)
void SetTenancy(const CapacityReservationTenancy &value)
void SetInstanceMatchCriteria(InstanceMatchCriteria &&value)
CapacityReservation & WithCapacityReservationArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateDate() const
void SetCapacityReservationFleetId(const char *value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::DateTime & GetEndDate() const
CapacityReservation & WithPlacementGroupArn(const char *value)
void SetCapacityReservationArn(const Aws::String &value)
CapacityReservation & WithAvailabilityZoneId(const char *value)
void SetOwnerId(const Aws::String &value)
CapacityReservation & WithInstanceType(const char *value)
CapacityReservation & WithInstanceMatchCriteria(InstanceMatchCriteria &&value)
void SetAvailabilityZoneId(const Aws::String &value)
AWS_EC2_API CapacityReservation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservation & WithOutpostArn(const Aws::String &value)
CapacityReservation & AddTags(Tag &&value)
void SetReservationType(const CapacityReservationType &value)
CapacityReservation & WithOwnerId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityReservation & WithOutpostArn(const char *value)
void SetInstanceType(const Aws::String &value)
const Aws::String & GetCapacityReservationFleetId() const
void SetPlacementGroupArn(Aws::String &&value)
void SetState(const CapacityReservationState &value)
CapacityReservation & WithUnusedReservationBillingOwnerId(Aws::String &&value)
CapacityReservation & WithEndDateType(EndDateType &&value)
void SetCapacityReservationId(Aws::String &&value)
void SetOutpostArn(const Aws::String &value)
CapacityReservation & WithCapacityReservationFleetId(const Aws::String &value)
CapacityReservation & WithTags(const Aws::Vector< Tag > &value)
CapacityReservation & WithAvailabilityZoneId(Aws::String &&value)
CapacityReservation & WithPlacementGroupArn(Aws::String &&value)
void SetInstanceType(Aws::String &&value)
void SetState(CapacityReservationState &&value)
CapacityReservation & WithEndDateType(const EndDateType &value)
const Aws::String & GetPlacementGroupArn() const
CapacityReservation & WithEndDate(Aws::Utils::DateTime &&value)
CapacityReservation & WithInstanceMatchCriteria(const InstanceMatchCriteria &value)
void SetTags(Aws::Vector< Tag > &&value)
CapacityReservation & WithTags(Aws::Vector< Tag > &&value)
AWS_EC2_API CapacityReservation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEndDateType(const EndDateType &value)
void SetStartDate(Aws::Utils::DateTime &&value)
CapacityReservation & WithUnusedReservationBillingOwnerId(const char *value)
CapacityReservation & WithReservationType(const CapacityReservationType &value)
void SetInstancePlatform(const CapacityReservationInstancePlatform &value)
void SetAvailabilityZone(const Aws::String &value)
void SetUnusedReservationBillingOwnerId(Aws::String &&value)
CapacityReservation & WithCapacityReservationId(const Aws::String &value)
CapacityReservation & WithOwnerId(Aws::String &&value)
void SetCapacityReservationArn(const char *value)
CapacityReservation & WithEphemeralStorage(bool value)
CapacityReservation & AddTags(const Tag &value)
CapacityReservation & WithCapacityReservationFleetId(const char *value)
CapacityReservation & WithOutpostArn(Aws::String &&value)
CapacityReservation & WithCapacityAllocations(const Aws::Vector< CapacityAllocation > &value)
CapacityReservation & WithOwnerId(const char *value)
CapacityReservation & WithCapacityReservationArn(const char *value)
void SetTenancy(CapacityReservationTenancy &&value)
void SetCapacityAllocations(Aws::Vector< CapacityAllocation > &&value)
void SetCapacityReservationFleetId(Aws::String &&value)
CapacityReservation & AddCapacityAllocations(const CapacityAllocation &value)
void SetUnusedReservationBillingOwnerId(const Aws::String &value)
void SetAvailabilityZone(Aws::String &&value)
CapacityReservation & WithPlacementGroupArn(const Aws::String &value)
CapacityReservation & WithCreateDate(Aws::Utils::DateTime &&value)
const Aws::String & GetOwnerId() const
CapacityReservation & WithUnusedReservationBillingOwnerId(const Aws::String &value)
const Aws::String & GetAvailabilityZoneId() const
CapacityReservation & WithState(CapacityReservationState &&value)
CapacityReservation & WithInstanceType(Aws::String &&value)
void SetInstanceMatchCriteria(const InstanceMatchCriteria &value)
CapacityReservation & WithStartDate(const Aws::Utils::DateTime &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
CapacityReservation & WithEndDate(const Aws::Utils::DateTime &value)
CapacityReservation & WithCapacityReservationFleetId(Aws::String &&value)
void SetPlacementGroupArn(const Aws::String &value)
const Aws::String & GetCapacityReservationId() const
void SetStartDate(const Aws::Utils::DateTime &value)
const CapacityReservationState & GetState() const
CapacityReservation & WithTenancy(const CapacityReservationTenancy &value)
const Aws::Vector< CapacityAllocation > & GetCapacityAllocations() const
void SetUnusedReservationBillingOwnerId(const char *value)
const CapacityReservationTenancy & GetTenancy() const
CapacityReservation & WithAvailabilityZone(const char *value)
CapacityReservation & WithReservationType(CapacityReservationType &&value)
void SetInstancePlatform(CapacityReservationInstancePlatform &&value)
const Aws::String & GetAvailabilityZone() const
void SetCapacityReservationId(const Aws::String &value)
CapacityReservation & WithAvailabilityZone(const Aws::String &value)
CapacityReservation & WithCapacityReservationId(const char *value)
void SetEndDate(const Aws::Utils::DateTime &value)
void SetEndDate(Aws::Utils::DateTime &&value)
const Aws::String & GetCapacityReservationArn() const
CapacityReservation & WithEbsOptimized(bool value)
const Aws::String & GetOutpostArn() const
const CapacityReservationType & GetReservationType() const
void SetCapacityReservationFleetId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetUnusedReservationBillingOwnerId() const
CapacityReservation & WithTotalInstanceCount(int value)
void SetAvailabilityZoneId(Aws::String &&value)
CapacityReservation & WithInstancePlatform(const CapacityReservationInstancePlatform &value)
CapacityReservation & WithCreateDate(const Aws::Utils::DateTime &value)
CapacityReservation & WithAvailabilityZoneId(const Aws::String &value)
CapacityReservation & WithCapacityReservationArn(Aws::String &&value)
CapacityReservation & WithAvailabilityZone(Aws::String &&value)
CapacityReservation & WithTenancy(CapacityReservationTenancy &&value)
CapacityReservation & WithCapacityReservationId(Aws::String &&value)
void SetAvailabilityZoneId(const char *value)
CapacityReservation & WithInstancePlatform(CapacityReservationInstancePlatform &&value)
CapacityReservation & AddCapacityAllocations(CapacityAllocation &&value)
CapacityReservation & WithStartDate(Aws::Utils::DateTime &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetCapacityAllocations(const Aws::Vector< CapacityAllocation > &value)
const EndDateType & GetEndDateType() const
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