AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
CapacityReservation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/CapacityAllocation.h>
13#include <aws/ec2/model/CapacityReservationCommitmentInfo.h>
14#include <aws/ec2/model/CapacityReservationDeliveryPreference.h>
15#include <aws/ec2/model/CapacityReservationInstancePlatform.h>
16#include <aws/ec2/model/CapacityReservationState.h>
17#include <aws/ec2/model/CapacityReservationTenancy.h>
18#include <aws/ec2/model/CapacityReservationType.h>
19#include <aws/ec2/model/EndDateType.h>
20#include <aws/ec2/model/InstanceMatchCriteria.h>
21#include <aws/ec2/model/InterruptibleCapacityAllocation.h>
22#include <aws/ec2/model/InterruptionInfo.h>
23#include <aws/ec2/model/Tag.h>
24
25#include <utility>
26
27namespace Aws {
28namespace Utils {
29namespace Xml {
30class XmlNode;
31} // namespace Xml
32} // namespace Utils
33namespace EC2 {
34namespace Model {
35
42 public:
43 AWS_EC2_API CapacityReservation() = default;
44 AWS_EC2_API CapacityReservation(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
51
54 inline const Aws::String& GetCapacityReservationId() const { return m_capacityReservationId; }
55 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
56 template <typename CapacityReservationIdT = Aws::String>
57 void SetCapacityReservationId(CapacityReservationIdT&& value) {
58 m_capacityReservationIdHasBeenSet = true;
59 m_capacityReservationId = std::forward<CapacityReservationIdT>(value);
60 }
61 template <typename CapacityReservationIdT = Aws::String>
62 CapacityReservation& WithCapacityReservationId(CapacityReservationIdT&& value) {
63 SetCapacityReservationId(std::forward<CapacityReservationIdT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
74 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
75 template <typename OwnerIdT = Aws::String>
76 void SetOwnerId(OwnerIdT&& value) {
77 m_ownerIdHasBeenSet = true;
78 m_ownerId = std::forward<OwnerIdT>(value);
79 }
80 template <typename OwnerIdT = Aws::String>
81 CapacityReservation& WithOwnerId(OwnerIdT&& value) {
82 SetOwnerId(std::forward<OwnerIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetCapacityReservationArn() const { return m_capacityReservationArn; }
92 inline bool CapacityReservationArnHasBeenSet() const { return m_capacityReservationArnHasBeenSet; }
93 template <typename CapacityReservationArnT = Aws::String>
94 void SetCapacityReservationArn(CapacityReservationArnT&& value) {
95 m_capacityReservationArnHasBeenSet = true;
96 m_capacityReservationArn = std::forward<CapacityReservationArnT>(value);
97 }
98 template <typename CapacityReservationArnT = Aws::String>
99 CapacityReservation& WithCapacityReservationArn(CapacityReservationArnT&& value) {
100 SetCapacityReservationArn(std::forward<CapacityReservationArnT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
110 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
111 template <typename AvailabilityZoneIdT = Aws::String>
112 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
113 m_availabilityZoneIdHasBeenSet = true;
114 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
115 }
116 template <typename AvailabilityZoneIdT = Aws::String>
117 CapacityReservation& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
118 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
129 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
130 template <typename InstanceTypeT = Aws::String>
131 void SetInstanceType(InstanceTypeT&& value) {
132 m_instanceTypeHasBeenSet = true;
133 m_instanceType = std::forward<InstanceTypeT>(value);
134 }
135 template <typename InstanceTypeT = Aws::String>
136 CapacityReservation& WithInstanceType(InstanceTypeT&& value) {
137 SetInstanceType(std::forward<InstanceTypeT>(value));
138 return *this;
139 }
141
143
147 inline CapacityReservationInstancePlatform GetInstancePlatform() const { return m_instancePlatform; }
148 inline bool InstancePlatformHasBeenSet() const { return m_instancePlatformHasBeenSet; }
150 m_instancePlatformHasBeenSet = true;
151 m_instancePlatform = value;
152 }
154 SetInstancePlatform(value);
155 return *this;
156 }
158
160
163 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
164 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
165 template <typename AvailabilityZoneT = Aws::String>
166 void SetAvailabilityZone(AvailabilityZoneT&& value) {
167 m_availabilityZoneHasBeenSet = true;
168 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
169 }
170 template <typename AvailabilityZoneT = Aws::String>
171 CapacityReservation& WithAvailabilityZone(AvailabilityZoneT&& value) {
172 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
173 return *this;
174 }
176
178
187 inline CapacityReservationTenancy GetTenancy() const { return m_tenancy; }
188 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
190 m_tenancyHasBeenSet = true;
191 m_tenancy = value;
192 }
194 SetTenancy(value);
195 return *this;
196 }
198
200
204 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
205 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
206 inline void SetTotalInstanceCount(int value) {
207 m_totalInstanceCountHasBeenSet = true;
208 m_totalInstanceCount = value;
209 }
212 return *this;
213 }
215
217
221 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
222 inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; }
223 inline void SetAvailableInstanceCount(int value) {
224 m_availableInstanceCountHasBeenSet = true;
225 m_availableInstanceCount = value;
226 }
229 return *this;
230 }
232
234
241 inline bool GetEbsOptimized() const { return m_ebsOptimized; }
242 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
243 inline void SetEbsOptimized(bool value) {
244 m_ebsOptimizedHasBeenSet = true;
245 m_ebsOptimized = value;
246 }
248 SetEbsOptimized(value);
249 return *this;
250 }
252
254
257 inline bool GetEphemeralStorage() const { return m_ephemeralStorage; }
258 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
259 inline void SetEphemeralStorage(bool value) {
260 m_ephemeralStorageHasBeenSet = true;
261 m_ephemeralStorage = value;
262 }
264 SetEphemeralStorage(value);
265 return *this;
266 }
268
270
305 inline CapacityReservationState GetState() const { return m_state; }
306 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
308 m_stateHasBeenSet = true;
309 m_state = value;
310 }
312 SetState(value);
313 return *this;
314 }
316
318
321 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
322 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
323 template <typename StartDateT = Aws::Utils::DateTime>
324 void SetStartDate(StartDateT&& value) {
325 m_startDateHasBeenSet = true;
326 m_startDate = std::forward<StartDateT>(value);
327 }
328 template <typename StartDateT = Aws::Utils::DateTime>
329 CapacityReservation& WithStartDate(StartDateT&& value) {
330 SetStartDate(std::forward<StartDateT>(value));
331 return *this;
332 }
334
336
342 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
343 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
344 template <typename EndDateT = Aws::Utils::DateTime>
345 void SetEndDate(EndDateT&& value) {
346 m_endDateHasBeenSet = true;
347 m_endDate = std::forward<EndDateT>(value);
348 }
349 template <typename EndDateT = Aws::Utils::DateTime>
350 CapacityReservation& WithEndDate(EndDateT&& value) {
351 SetEndDate(std::forward<EndDateT>(value));
352 return *this;
353 }
355
357
364 inline EndDateType GetEndDateType() const { return m_endDateType; }
365 inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
366 inline void SetEndDateType(EndDateType value) {
367 m_endDateTypeHasBeenSet = true;
368 m_endDateType = value;
369 }
371 SetEndDateType(value);
372 return *this;
373 }
375
377
389 inline InstanceMatchCriteria GetInstanceMatchCriteria() const { return m_instanceMatchCriteria; }
390 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
392 m_instanceMatchCriteriaHasBeenSet = true;
393 m_instanceMatchCriteria = value;
394 }
397 return *this;
398 }
400
402
405 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
406 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
407 template <typename CreateDateT = Aws::Utils::DateTime>
408 void SetCreateDate(CreateDateT&& value) {
409 m_createDateHasBeenSet = true;
410 m_createDate = std::forward<CreateDateT>(value);
411 }
412 template <typename CreateDateT = Aws::Utils::DateTime>
413 CapacityReservation& WithCreateDate(CreateDateT&& value) {
414 SetCreateDate(std::forward<CreateDateT>(value));
415 return *this;
416 }
418
420
423 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
424 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
425 template <typename TagsT = Aws::Vector<Tag>>
426 void SetTags(TagsT&& value) {
427 m_tagsHasBeenSet = true;
428 m_tags = std::forward<TagsT>(value);
429 }
430 template <typename TagsT = Aws::Vector<Tag>>
432 SetTags(std::forward<TagsT>(value));
433 return *this;
434 }
435 template <typename TagsT = Tag>
436 CapacityReservation& AddTags(TagsT&& value) {
437 m_tagsHasBeenSet = true;
438 m_tags.emplace_back(std::forward<TagsT>(value));
439 return *this;
440 }
442
444
448 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
449 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
450 template <typename OutpostArnT = Aws::String>
451 void SetOutpostArn(OutpostArnT&& value) {
452 m_outpostArnHasBeenSet = true;
453 m_outpostArn = std::forward<OutpostArnT>(value);
454 }
455 template <typename OutpostArnT = Aws::String>
456 CapacityReservation& WithOutpostArn(OutpostArnT&& value) {
457 SetOutpostArn(std::forward<OutpostArnT>(value));
458 return *this;
459 }
461
463
468 inline const Aws::String& GetCapacityReservationFleetId() const { return m_capacityReservationFleetId; }
469 inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
470 template <typename CapacityReservationFleetIdT = Aws::String>
471 void SetCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
472 m_capacityReservationFleetIdHasBeenSet = true;
473 m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value);
474 }
475 template <typename CapacityReservationFleetIdT = Aws::String>
476 CapacityReservation& WithCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
477 SetCapacityReservationFleetId(std::forward<CapacityReservationFleetIdT>(value));
478 return *this;
479 }
481
483
490 inline const Aws::String& GetPlacementGroupArn() const { return m_placementGroupArn; }
491 inline bool PlacementGroupArnHasBeenSet() const { return m_placementGroupArnHasBeenSet; }
492 template <typename PlacementGroupArnT = Aws::String>
493 void SetPlacementGroupArn(PlacementGroupArnT&& value) {
494 m_placementGroupArnHasBeenSet = true;
495 m_placementGroupArn = std::forward<PlacementGroupArnT>(value);
496 }
497 template <typename PlacementGroupArnT = Aws::String>
498 CapacityReservation& WithPlacementGroupArn(PlacementGroupArnT&& value) {
499 SetPlacementGroupArn(std::forward<PlacementGroupArnT>(value));
500 return *this;
501 }
503
505
508 inline const Aws::Vector<CapacityAllocation>& GetCapacityAllocations() const { return m_capacityAllocations; }
509 inline bool CapacityAllocationsHasBeenSet() const { return m_capacityAllocationsHasBeenSet; }
510 template <typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
511 void SetCapacityAllocations(CapacityAllocationsT&& value) {
512 m_capacityAllocationsHasBeenSet = true;
513 m_capacityAllocations = std::forward<CapacityAllocationsT>(value);
514 }
515 template <typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
516 CapacityReservation& WithCapacityAllocations(CapacityAllocationsT&& value) {
517 SetCapacityAllocations(std::forward<CapacityAllocationsT>(value));
518 return *this;
519 }
520 template <typename CapacityAllocationsT = CapacityAllocation>
521 CapacityReservation& AddCapacityAllocations(CapacityAllocationsT&& value) {
522 m_capacityAllocationsHasBeenSet = true;
523 m_capacityAllocations.emplace_back(std::forward<CapacityAllocationsT>(value));
524 return *this;
525 }
527
529
532 inline CapacityReservationType GetReservationType() const { return m_reservationType; }
533 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
535 m_reservationTypeHasBeenSet = true;
536 m_reservationType = value;
537 }
539 SetReservationType(value);
540 return *this;
541 }
543
545
549 inline const Aws::String& GetUnusedReservationBillingOwnerId() const { return m_unusedReservationBillingOwnerId; }
550 inline bool UnusedReservationBillingOwnerIdHasBeenSet() const { return m_unusedReservationBillingOwnerIdHasBeenSet; }
551 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
552 void SetUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) {
553 m_unusedReservationBillingOwnerIdHasBeenSet = true;
554 m_unusedReservationBillingOwnerId = std::forward<UnusedReservationBillingOwnerIdT>(value);
555 }
556 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
557 CapacityReservation& WithUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) {
558 SetUnusedReservationBillingOwnerId(std::forward<UnusedReservationBillingOwnerIdT>(value));
559 return *this;
560 }
562
564
568 inline const CapacityReservationCommitmentInfo& GetCommitmentInfo() const { return m_commitmentInfo; }
569 inline bool CommitmentInfoHasBeenSet() const { return m_commitmentInfoHasBeenSet; }
570 template <typename CommitmentInfoT = CapacityReservationCommitmentInfo>
571 void SetCommitmentInfo(CommitmentInfoT&& value) {
572 m_commitmentInfoHasBeenSet = true;
573 m_commitmentInfo = std::forward<CommitmentInfoT>(value);
574 }
575 template <typename CommitmentInfoT = CapacityReservationCommitmentInfo>
576 CapacityReservation& WithCommitmentInfo(CommitmentInfoT&& value) {
577 SetCommitmentInfo(std::forward<CommitmentInfoT>(value));
578 return *this;
579 }
581
583
589 inline CapacityReservationDeliveryPreference GetDeliveryPreference() const { return m_deliveryPreference; }
590 inline bool DeliveryPreferenceHasBeenSet() const { return m_deliveryPreferenceHasBeenSet; }
592 m_deliveryPreferenceHasBeenSet = true;
593 m_deliveryPreference = value;
594 }
597 return *this;
598 }
600
602
605 inline const Aws::String& GetCapacityBlockId() const { return m_capacityBlockId; }
606 inline bool CapacityBlockIdHasBeenSet() const { return m_capacityBlockIdHasBeenSet; }
607 template <typename CapacityBlockIdT = Aws::String>
608 void SetCapacityBlockId(CapacityBlockIdT&& value) {
609 m_capacityBlockIdHasBeenSet = true;
610 m_capacityBlockId = std::forward<CapacityBlockIdT>(value);
611 }
612 template <typename CapacityBlockIdT = Aws::String>
613 CapacityReservation& WithCapacityBlockId(CapacityBlockIdT&& value) {
614 SetCapacityBlockId(std::forward<CapacityBlockIdT>(value));
615 return *this;
616 }
618
620
624 inline bool GetInterruptible() const { return m_interruptible; }
625 inline bool InterruptibleHasBeenSet() const { return m_interruptibleHasBeenSet; }
626 inline void SetInterruptible(bool value) {
627 m_interruptibleHasBeenSet = true;
628 m_interruptible = value;
629 }
631 SetInterruptible(value);
632 return *this;
633 }
635
637
642 inline const InterruptibleCapacityAllocation& GetInterruptibleCapacityAllocation() const { return m_interruptibleCapacityAllocation; }
643 inline bool InterruptibleCapacityAllocationHasBeenSet() const { return m_interruptibleCapacityAllocationHasBeenSet; }
644 template <typename InterruptibleCapacityAllocationT = InterruptibleCapacityAllocation>
645 void SetInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT&& value) {
646 m_interruptibleCapacityAllocationHasBeenSet = true;
647 m_interruptibleCapacityAllocation = std::forward<InterruptibleCapacityAllocationT>(value);
648 }
649 template <typename InterruptibleCapacityAllocationT = InterruptibleCapacityAllocation>
650 CapacityReservation& WithInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT&& value) {
651 SetInterruptibleCapacityAllocation(std::forward<InterruptibleCapacityAllocationT>(value));
652 return *this;
653 }
655
657
661 inline const InterruptionInfo& GetInterruptionInfo() const { return m_interruptionInfo; }
662 inline bool InterruptionInfoHasBeenSet() const { return m_interruptionInfoHasBeenSet; }
663 template <typename InterruptionInfoT = InterruptionInfo>
664 void SetInterruptionInfo(InterruptionInfoT&& value) {
665 m_interruptionInfoHasBeenSet = true;
666 m_interruptionInfo = std::forward<InterruptionInfoT>(value);
667 }
668 template <typename InterruptionInfoT = InterruptionInfo>
669 CapacityReservation& WithInterruptionInfo(InterruptionInfoT&& value) {
670 SetInterruptionInfo(std::forward<InterruptionInfoT>(value));
671 return *this;
672 }
674 private:
675 Aws::String m_capacityReservationId;
676
677 Aws::String m_ownerId;
678
679 Aws::String m_capacityReservationArn;
680
681 Aws::String m_availabilityZoneId;
682
683 Aws::String m_instanceType;
684
686
687 Aws::String m_availabilityZone;
688
690
691 int m_totalInstanceCount{0};
692
693 int m_availableInstanceCount{0};
694
695 bool m_ebsOptimized{false};
696
697 bool m_ephemeralStorage{false};
698
700
701 Aws::Utils::DateTime m_startDate{};
702
703 Aws::Utils::DateTime m_endDate{};
704
705 EndDateType m_endDateType{EndDateType::NOT_SET};
706
708
709 Aws::Utils::DateTime m_createDate{};
710
711 Aws::Vector<Tag> m_tags;
712
713 Aws::String m_outpostArn;
714
715 Aws::String m_capacityReservationFleetId;
716
717 Aws::String m_placementGroupArn;
718
719 Aws::Vector<CapacityAllocation> m_capacityAllocations;
720
722
723 Aws::String m_unusedReservationBillingOwnerId;
724
725 CapacityReservationCommitmentInfo m_commitmentInfo;
726
728
729 Aws::String m_capacityBlockId;
730
731 bool m_interruptible{false};
732
733 InterruptibleCapacityAllocation m_interruptibleCapacityAllocation;
734
735 InterruptionInfo m_interruptionInfo;
736 bool m_capacityReservationIdHasBeenSet = false;
737 bool m_ownerIdHasBeenSet = false;
738 bool m_capacityReservationArnHasBeenSet = false;
739 bool m_availabilityZoneIdHasBeenSet = false;
740 bool m_instanceTypeHasBeenSet = false;
741 bool m_instancePlatformHasBeenSet = false;
742 bool m_availabilityZoneHasBeenSet = false;
743 bool m_tenancyHasBeenSet = false;
744 bool m_totalInstanceCountHasBeenSet = false;
745 bool m_availableInstanceCountHasBeenSet = false;
746 bool m_ebsOptimizedHasBeenSet = false;
747 bool m_ephemeralStorageHasBeenSet = false;
748 bool m_stateHasBeenSet = false;
749 bool m_startDateHasBeenSet = false;
750 bool m_endDateHasBeenSet = false;
751 bool m_endDateTypeHasBeenSet = false;
752 bool m_instanceMatchCriteriaHasBeenSet = false;
753 bool m_createDateHasBeenSet = false;
754 bool m_tagsHasBeenSet = false;
755 bool m_outpostArnHasBeenSet = false;
756 bool m_capacityReservationFleetIdHasBeenSet = false;
757 bool m_placementGroupArnHasBeenSet = false;
758 bool m_capacityAllocationsHasBeenSet = false;
759 bool m_reservationTypeHasBeenSet = false;
760 bool m_unusedReservationBillingOwnerIdHasBeenSet = false;
761 bool m_commitmentInfoHasBeenSet = false;
762 bool m_deliveryPreferenceHasBeenSet = false;
763 bool m_capacityBlockIdHasBeenSet = false;
764 bool m_interruptibleHasBeenSet = false;
765 bool m_interruptibleCapacityAllocationHasBeenSet = false;
766 bool m_interruptionInfoHasBeenSet = false;
767};
768
769} // namespace Model
770} // namespace EC2
771} // namespace Aws
void SetInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT &&value)
CapacityReservation & WithState(CapacityReservationState value)
CapacityReservation & WithStartDate(StartDateT &&value)
void SetInstanceType(InstanceTypeT &&value)
CapacityReservation & WithAvailableInstanceCount(int value)
CapacityReservation & WithAvailabilityZone(AvailabilityZoneT &&value)
const Aws::Utils::DateTime & GetStartDate() const
void SetUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT &&value)
void SetPlacementGroupArn(PlacementGroupArnT &&value)
CapacityReservation & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
InstanceMatchCriteria GetInstanceMatchCriteria() const
const Aws::String & GetInstanceType() const
CapacityReservationDeliveryPreference GetDeliveryPreference() const
CapacityReservation & AddCapacityAllocations(CapacityAllocationsT &&value)
const Aws::Utils::DateTime & GetCreateDate() const
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::DateTime & GetEndDate() const
CapacityReservation & WithInterruptionInfo(InterruptionInfoT &&value)
CapacityReservation & WithInstanceMatchCriteria(InstanceMatchCriteria value)
const Aws::String & GetCapacityBlockId() const
AWS_EC2_API CapacityReservation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCapacityReservationArn(CapacityReservationArnT &&value)
const Aws::String & GetCapacityReservationFleetId() const
void SetCapacityReservationFleetId(CapacityReservationFleetIdT &&value)
CapacityReservation & WithDeliveryPreference(CapacityReservationDeliveryPreference value)
CapacityReservation & WithCommitmentInfo(CommitmentInfoT &&value)
CapacityReservation & WithOutpostArn(OutpostArnT &&value)
const Aws::String & GetPlacementGroupArn() const
AWS_EC2_API CapacityReservation(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservation & WithEndDateType(EndDateType value)
CapacityReservation & WithPlacementGroupArn(PlacementGroupArnT &&value)
CapacityReservation & AddTags(TagsT &&value)
void SetDeliveryPreference(CapacityReservationDeliveryPreference value)
void SetReservationType(CapacityReservationType value)
CapacityReservation & WithInterruptible(bool value)
CapacityReservation & WithInstancePlatform(CapacityReservationInstancePlatform value)
CapacityReservation & WithEphemeralStorage(bool value)
void SetCommitmentInfo(CommitmentInfoT &&value)
CapacityReservation & WithCapacityAllocations(CapacityAllocationsT &&value)
CapacityReservationType GetReservationType() const
CapacityReservationInstancePlatform GetInstancePlatform() const
const Aws::String & GetOwnerId() const
const Aws::String & GetAvailabilityZoneId() const
CapacityReservation & WithUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT &&value)
void SetCapacityReservationId(CapacityReservationIdT &&value)
void SetInterruptionInfo(InterruptionInfoT &&value)
const Aws::String & GetCapacityReservationId() const
const CapacityReservationCommitmentInfo & GetCommitmentInfo() const
void SetCapacityAllocations(CapacityAllocationsT &&value)
const Aws::Vector< CapacityAllocation > & GetCapacityAllocations() const
const Aws::String & GetAvailabilityZone() const
CapacityReservation & WithCapacityReservationFleetId(CapacityReservationFleetIdT &&value)
const Aws::String & GetCapacityReservationArn() const
CapacityReservation & WithEbsOptimized(bool value)
const Aws::String & GetOutpostArn() const
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
CapacityReservation & WithTags(TagsT &&value)
void SetTenancy(CapacityReservationTenancy value)
void SetInstancePlatform(CapacityReservationInstancePlatform value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CapacityReservationState GetState() const
CapacityReservation & WithReservationType(CapacityReservationType value)
CapacityReservation & WithInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT &&value)
const Aws::String & GetUnusedReservationBillingOwnerId() const
CapacityReservation & WithTotalInstanceCount(int value)
AWS_EC2_API CapacityReservation()=default
CapacityReservation & WithCapacityReservationArn(CapacityReservationArnT &&value)
const InterruptionInfo & GetInterruptionInfo() const
void SetCapacityBlockId(CapacityBlockIdT &&value)
CapacityReservation & WithInstanceType(InstanceTypeT &&value)
CapacityReservation & WithCapacityReservationId(CapacityReservationIdT &&value)
const InterruptibleCapacityAllocation & GetInterruptibleCapacityAllocation() const
CapacityReservation & WithEndDate(EndDateT &&value)
CapacityReservation & WithTenancy(CapacityReservationTenancy value)
CapacityReservation & WithOwnerId(OwnerIdT &&value)
CapacityReservation & WithCreateDate(CreateDateT &&value)
void SetInstanceMatchCriteria(InstanceMatchCriteria value)
CapacityReservationTenancy GetTenancy() const
void SetState(CapacityReservationState value)
CapacityReservation & WithCapacityBlockId(CapacityBlockIdT &&value)
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