AWS SDK for C++

AWS SDK for C++ Version 1.11.907

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/CapacityReservationAdjustmentDetails.h>
14#include <aws/ec2/model/CapacityReservationAdjustmentStatus.h>
15#include <aws/ec2/model/CapacityReservationCommitmentInfo.h>
16#include <aws/ec2/model/CapacityReservationDeliveryPreference.h>
17#include <aws/ec2/model/CapacityReservationInstancePlatform.h>
18#include <aws/ec2/model/CapacityReservationLaunchStatus.h>
19#include <aws/ec2/model/CapacityReservationState.h>
20#include <aws/ec2/model/CapacityReservationTenancy.h>
21#include <aws/ec2/model/CapacityReservationType.h>
22#include <aws/ec2/model/EndDateType.h>
23#include <aws/ec2/model/InstanceMatchCriteria.h>
24#include <aws/ec2/model/InterruptibleCapacityAllocation.h>
25#include <aws/ec2/model/InterruptionInfo.h>
26#include <aws/ec2/model/Tag.h>
27#include <aws/ec2/model/ZeroSizePreference.h>
28
29#include <utility>
30
31namespace Aws {
32namespace Utils {
33namespace Xml {
34class XmlNode;
35} // namespace Xml
36} // namespace Utils
37namespace EC2 {
38namespace Model {
39
46 public:
47 AWS_EC2_API CapacityReservation() = default;
48 AWS_EC2_API CapacityReservation(const Aws::Utils::Xml::XmlNode& xmlNode);
50
51 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
53
55
58 inline const Aws::String& GetCapacityReservationId() const { return m_capacityReservationId; }
59 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
60 template <typename CapacityReservationIdT = Aws::String>
61 void SetCapacityReservationId(CapacityReservationIdT&& value) {
62 m_capacityReservationIdHasBeenSet = true;
63 m_capacityReservationId = std::forward<CapacityReservationIdT>(value);
64 }
65 template <typename CapacityReservationIdT = Aws::String>
66 CapacityReservation& WithCapacityReservationId(CapacityReservationIdT&& value) {
67 SetCapacityReservationId(std::forward<CapacityReservationIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
78 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
79 template <typename OwnerIdT = Aws::String>
80 void SetOwnerId(OwnerIdT&& value) {
81 m_ownerIdHasBeenSet = true;
82 m_ownerId = std::forward<OwnerIdT>(value);
83 }
84 template <typename OwnerIdT = Aws::String>
85 CapacityReservation& WithOwnerId(OwnerIdT&& value) {
86 SetOwnerId(std::forward<OwnerIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetCapacityReservationArn() const { return m_capacityReservationArn; }
96 inline bool CapacityReservationArnHasBeenSet() const { return m_capacityReservationArnHasBeenSet; }
97 template <typename CapacityReservationArnT = Aws::String>
98 void SetCapacityReservationArn(CapacityReservationArnT&& value) {
99 m_capacityReservationArnHasBeenSet = true;
100 m_capacityReservationArn = std::forward<CapacityReservationArnT>(value);
101 }
102 template <typename CapacityReservationArnT = Aws::String>
103 CapacityReservation& WithCapacityReservationArn(CapacityReservationArnT&& value) {
104 SetCapacityReservationArn(std::forward<CapacityReservationArnT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
114 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
115 template <typename AvailabilityZoneIdT = Aws::String>
116 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
117 m_availabilityZoneIdHasBeenSet = true;
118 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
119 }
120 template <typename AvailabilityZoneIdT = Aws::String>
121 CapacityReservation& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
122 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
133 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
134 template <typename InstanceTypeT = Aws::String>
135 void SetInstanceType(InstanceTypeT&& value) {
136 m_instanceTypeHasBeenSet = true;
137 m_instanceType = std::forward<InstanceTypeT>(value);
138 }
139 template <typename InstanceTypeT = Aws::String>
140 CapacityReservation& WithInstanceType(InstanceTypeT&& value) {
141 SetInstanceType(std::forward<InstanceTypeT>(value));
142 return *this;
143 }
145
147
151 inline CapacityReservationInstancePlatform GetInstancePlatform() const { return m_instancePlatform; }
152 inline bool InstancePlatformHasBeenSet() const { return m_instancePlatformHasBeenSet; }
154 m_instancePlatformHasBeenSet = true;
155 m_instancePlatform = value;
156 }
158 SetInstancePlatform(value);
159 return *this;
160 }
162
164
167 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
168 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
169 template <typename AvailabilityZoneT = Aws::String>
170 void SetAvailabilityZone(AvailabilityZoneT&& value) {
171 m_availabilityZoneHasBeenSet = true;
172 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
173 }
174 template <typename AvailabilityZoneT = Aws::String>
175 CapacityReservation& WithAvailabilityZone(AvailabilityZoneT&& value) {
176 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
177 return *this;
178 }
180
182
191 inline CapacityReservationTenancy GetTenancy() const { return m_tenancy; }
192 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
194 m_tenancyHasBeenSet = true;
195 m_tenancy = value;
196 }
198 SetTenancy(value);
199 return *this;
200 }
202
204
208 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
209 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
210 inline void SetTotalInstanceCount(int value) {
211 m_totalInstanceCountHasBeenSet = true;
212 m_totalInstanceCount = value;
213 }
216 return *this;
217 }
219
221
225 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
226 inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; }
227 inline void SetAvailableInstanceCount(int value) {
228 m_availableInstanceCountHasBeenSet = true;
229 m_availableInstanceCount = value;
230 }
233 return *this;
234 }
236
238
245 inline bool GetEbsOptimized() const { return m_ebsOptimized; }
246 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
247 inline void SetEbsOptimized(bool value) {
248 m_ebsOptimizedHasBeenSet = true;
249 m_ebsOptimized = value;
250 }
252 SetEbsOptimized(value);
253 return *this;
254 }
256
258
261 inline bool GetEphemeralStorage() const { return m_ephemeralStorage; }
262 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
263 inline void SetEphemeralStorage(bool value) {
264 m_ephemeralStorageHasBeenSet = true;
265 m_ephemeralStorage = value;
266 }
268 SetEphemeralStorage(value);
269 return *this;
270 }
272
274
309 inline CapacityReservationState GetState() const { return m_state; }
310 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
312 m_stateHasBeenSet = true;
313 m_state = value;
314 }
316 SetState(value);
317 return *this;
318 }
320
322
325 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
326 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
327 template <typename StartDateT = Aws::Utils::DateTime>
328 void SetStartDate(StartDateT&& value) {
329 m_startDateHasBeenSet = true;
330 m_startDate = std::forward<StartDateT>(value);
331 }
332 template <typename StartDateT = Aws::Utils::DateTime>
333 CapacityReservation& WithStartDate(StartDateT&& value) {
334 SetStartDate(std::forward<StartDateT>(value));
335 return *this;
336 }
338
340
346 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
347 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
348 template <typename EndDateT = Aws::Utils::DateTime>
349 void SetEndDate(EndDateT&& value) {
350 m_endDateHasBeenSet = true;
351 m_endDate = std::forward<EndDateT>(value);
352 }
353 template <typename EndDateT = Aws::Utils::DateTime>
354 CapacityReservation& WithEndDate(EndDateT&& value) {
355 SetEndDate(std::forward<EndDateT>(value));
356 return *this;
357 }
359
361
368 inline EndDateType GetEndDateType() const { return m_endDateType; }
369 inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
370 inline void SetEndDateType(EndDateType value) {
371 m_endDateTypeHasBeenSet = true;
372 m_endDateType = value;
373 }
375 SetEndDateType(value);
376 return *this;
377 }
379
381
393 inline InstanceMatchCriteria GetInstanceMatchCriteria() const { return m_instanceMatchCriteria; }
394 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
396 m_instanceMatchCriteriaHasBeenSet = true;
397 m_instanceMatchCriteria = value;
398 }
401 return *this;
402 }
404
406
409 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
410 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
411 template <typename CreateDateT = Aws::Utils::DateTime>
412 void SetCreateDate(CreateDateT&& value) {
413 m_createDateHasBeenSet = true;
414 m_createDate = std::forward<CreateDateT>(value);
415 }
416 template <typename CreateDateT = Aws::Utils::DateTime>
417 CapacityReservation& WithCreateDate(CreateDateT&& value) {
418 SetCreateDate(std::forward<CreateDateT>(value));
419 return *this;
420 }
422
424
427 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
428 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
429 template <typename TagsT = Aws::Vector<Tag>>
430 void SetTags(TagsT&& value) {
431 m_tagsHasBeenSet = true;
432 m_tags = std::forward<TagsT>(value);
433 }
434 template <typename TagsT = Aws::Vector<Tag>>
436 SetTags(std::forward<TagsT>(value));
437 return *this;
438 }
439 template <typename TagsT = Tag>
440 CapacityReservation& AddTags(TagsT&& value) {
441 m_tagsHasBeenSet = true;
442 m_tags.emplace_back(std::forward<TagsT>(value));
443 return *this;
444 }
446
448
452 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
453 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
454 template <typename OutpostArnT = Aws::String>
455 void SetOutpostArn(OutpostArnT&& value) {
456 m_outpostArnHasBeenSet = true;
457 m_outpostArn = std::forward<OutpostArnT>(value);
458 }
459 template <typename OutpostArnT = Aws::String>
460 CapacityReservation& WithOutpostArn(OutpostArnT&& value) {
461 SetOutpostArn(std::forward<OutpostArnT>(value));
462 return *this;
463 }
465
467
472 inline const Aws::String& GetCapacityReservationFleetId() const { return m_capacityReservationFleetId; }
473 inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
474 template <typename CapacityReservationFleetIdT = Aws::String>
475 void SetCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
476 m_capacityReservationFleetIdHasBeenSet = true;
477 m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value);
478 }
479 template <typename CapacityReservationFleetIdT = Aws::String>
480 CapacityReservation& WithCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
481 SetCapacityReservationFleetId(std::forward<CapacityReservationFleetIdT>(value));
482 return *this;
483 }
485
487
494 inline const Aws::String& GetPlacementGroupArn() const { return m_placementGroupArn; }
495 inline bool PlacementGroupArnHasBeenSet() const { return m_placementGroupArnHasBeenSet; }
496 template <typename PlacementGroupArnT = Aws::String>
497 void SetPlacementGroupArn(PlacementGroupArnT&& value) {
498 m_placementGroupArnHasBeenSet = true;
499 m_placementGroupArn = std::forward<PlacementGroupArnT>(value);
500 }
501 template <typename PlacementGroupArnT = Aws::String>
502 CapacityReservation& WithPlacementGroupArn(PlacementGroupArnT&& value) {
503 SetPlacementGroupArn(std::forward<PlacementGroupArnT>(value));
504 return *this;
505 }
507
509
512 inline const Aws::Vector<CapacityAllocation>& GetCapacityAllocations() const { return m_capacityAllocations; }
513 inline bool CapacityAllocationsHasBeenSet() const { return m_capacityAllocationsHasBeenSet; }
514 template <typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
515 void SetCapacityAllocations(CapacityAllocationsT&& value) {
516 m_capacityAllocationsHasBeenSet = true;
517 m_capacityAllocations = std::forward<CapacityAllocationsT>(value);
518 }
519 template <typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
520 CapacityReservation& WithCapacityAllocations(CapacityAllocationsT&& value) {
521 SetCapacityAllocations(std::forward<CapacityAllocationsT>(value));
522 return *this;
523 }
524 template <typename CapacityAllocationsT = CapacityAllocation>
525 CapacityReservation& AddCapacityAllocations(CapacityAllocationsT&& value) {
526 m_capacityAllocationsHasBeenSet = true;
527 m_capacityAllocations.emplace_back(std::forward<CapacityAllocationsT>(value));
528 return *this;
529 }
531
533
536 inline CapacityReservationType GetReservationType() const { return m_reservationType; }
537 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
539 m_reservationTypeHasBeenSet = true;
540 m_reservationType = value;
541 }
543 SetReservationType(value);
544 return *this;
545 }
547
549
553 inline const Aws::String& GetUnusedReservationBillingOwnerId() const { return m_unusedReservationBillingOwnerId; }
554 inline bool UnusedReservationBillingOwnerIdHasBeenSet() const { return m_unusedReservationBillingOwnerIdHasBeenSet; }
555 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
556 void SetUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) {
557 m_unusedReservationBillingOwnerIdHasBeenSet = true;
558 m_unusedReservationBillingOwnerId = std::forward<UnusedReservationBillingOwnerIdT>(value);
559 }
560 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
561 CapacityReservation& WithUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) {
562 SetUnusedReservationBillingOwnerId(std::forward<UnusedReservationBillingOwnerIdT>(value));
563 return *this;
564 }
566
568
572 inline const CapacityReservationCommitmentInfo& GetCommitmentInfo() const { return m_commitmentInfo; }
573 inline bool CommitmentInfoHasBeenSet() const { return m_commitmentInfoHasBeenSet; }
574 template <typename CommitmentInfoT = CapacityReservationCommitmentInfo>
575 void SetCommitmentInfo(CommitmentInfoT&& value) {
576 m_commitmentInfoHasBeenSet = true;
577 m_commitmentInfo = std::forward<CommitmentInfoT>(value);
578 }
579 template <typename CommitmentInfoT = CapacityReservationCommitmentInfo>
580 CapacityReservation& WithCommitmentInfo(CommitmentInfoT&& value) {
581 SetCommitmentInfo(std::forward<CommitmentInfoT>(value));
582 return *this;
583 }
585
587
593 inline CapacityReservationDeliveryPreference GetDeliveryPreference() const { return m_deliveryPreference; }
594 inline bool DeliveryPreferenceHasBeenSet() const { return m_deliveryPreferenceHasBeenSet; }
596 m_deliveryPreferenceHasBeenSet = true;
597 m_deliveryPreference = value;
598 }
601 return *this;
602 }
604
606
609 inline const Aws::String& GetCapacityBlockId() const { return m_capacityBlockId; }
610 inline bool CapacityBlockIdHasBeenSet() const { return m_capacityBlockIdHasBeenSet; }
611 template <typename CapacityBlockIdT = Aws::String>
612 void SetCapacityBlockId(CapacityBlockIdT&& value) {
613 m_capacityBlockIdHasBeenSet = true;
614 m_capacityBlockId = std::forward<CapacityBlockIdT>(value);
615 }
616 template <typename CapacityBlockIdT = Aws::String>
617 CapacityReservation& WithCapacityBlockId(CapacityBlockIdT&& value) {
618 SetCapacityBlockId(std::forward<CapacityBlockIdT>(value));
619 return *this;
620 }
622
624
628 inline bool GetInterruptible() const { return m_interruptible; }
629 inline bool InterruptibleHasBeenSet() const { return m_interruptibleHasBeenSet; }
630 inline void SetInterruptible(bool value) {
631 m_interruptibleHasBeenSet = true;
632 m_interruptible = value;
633 }
635 SetInterruptible(value);
636 return *this;
637 }
639
641
646 inline const InterruptibleCapacityAllocation& GetInterruptibleCapacityAllocation() const { return m_interruptibleCapacityAllocation; }
647 inline bool InterruptibleCapacityAllocationHasBeenSet() const { return m_interruptibleCapacityAllocationHasBeenSet; }
648 template <typename InterruptibleCapacityAllocationT = InterruptibleCapacityAllocation>
649 void SetInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT&& value) {
650 m_interruptibleCapacityAllocationHasBeenSet = true;
651 m_interruptibleCapacityAllocation = std::forward<InterruptibleCapacityAllocationT>(value);
652 }
653 template <typename InterruptibleCapacityAllocationT = InterruptibleCapacityAllocation>
654 CapacityReservation& WithInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT&& value) {
655 SetInterruptibleCapacityAllocation(std::forward<InterruptibleCapacityAllocationT>(value));
656 return *this;
657 }
659
661
665 inline const InterruptionInfo& GetInterruptionInfo() const { return m_interruptionInfo; }
666 inline bool InterruptionInfoHasBeenSet() const { return m_interruptionInfoHasBeenSet; }
667 template <typename InterruptionInfoT = InterruptionInfo>
668 void SetInterruptionInfo(InterruptionInfoT&& value) {
669 m_interruptionInfoHasBeenSet = true;
670 m_interruptionInfo = std::forward<InterruptionInfoT>(value);
671 }
672 template <typename InterruptionInfoT = InterruptionInfo>
673 CapacityReservation& WithInterruptionInfo(InterruptionInfoT&& value) {
674 SetInterruptionInfo(std::forward<InterruptionInfoT>(value));
675 return *this;
676 }
678
680
690 inline CapacityReservationAdjustmentStatus GetAdjustmentStatus() const { return m_adjustmentStatus; }
691 inline bool AdjustmentStatusHasBeenSet() const { return m_adjustmentStatusHasBeenSet; }
693 m_adjustmentStatusHasBeenSet = true;
694 m_adjustmentStatus = value;
695 }
697 SetAdjustmentStatus(value);
698 return *this;
699 }
701
703
707 inline const CapacityReservationAdjustmentDetails& GetAdjustmentDetails() const { return m_adjustmentDetails; }
708 inline bool AdjustmentDetailsHasBeenSet() const { return m_adjustmentDetailsHasBeenSet; }
709 template <typename AdjustmentDetailsT = CapacityReservationAdjustmentDetails>
710 void SetAdjustmentDetails(AdjustmentDetailsT&& value) {
711 m_adjustmentDetailsHasBeenSet = true;
712 m_adjustmentDetails = std::forward<AdjustmentDetailsT>(value);
713 }
714 template <typename AdjustmentDetailsT = CapacityReservationAdjustmentDetails>
715 CapacityReservation& WithAdjustmentDetails(AdjustmentDetailsT&& value) {
716 SetAdjustmentDetails(std::forward<AdjustmentDetailsT>(value));
717 return *this;
718 }
720
722
727 inline const Aws::Utils::DateTime& GetOriginalStartDate() const { return m_originalStartDate; }
728 inline bool OriginalStartDateHasBeenSet() const { return m_originalStartDateHasBeenSet; }
729 template <typename OriginalStartDateT = Aws::Utils::DateTime>
730 void SetOriginalStartDate(OriginalStartDateT&& value) {
731 m_originalStartDateHasBeenSet = true;
732 m_originalStartDate = std::forward<OriginalStartDateT>(value);
733 }
734 template <typename OriginalStartDateT = Aws::Utils::DateTime>
735 CapacityReservation& WithOriginalStartDate(OriginalStartDateT&& value) {
736 SetOriginalStartDate(std::forward<OriginalStartDateT>(value));
737 return *this;
738 }
740
742
749 inline ZeroSizePreference GetZeroSizePreference() const { return m_zeroSizePreference; }
750 inline bool ZeroSizePreferenceHasBeenSet() const { return m_zeroSizePreferenceHasBeenSet; }
752 m_zeroSizePreferenceHasBeenSet = true;
753 m_zeroSizePreference = value;
754 }
757 return *this;
758 }
760
762
771 inline CapacityReservationLaunchStatus GetLaunchStatus() const { return m_launchStatus; }
772 inline bool LaunchStatusHasBeenSet() const { return m_launchStatusHasBeenSet; }
774 m_launchStatusHasBeenSet = true;
775 m_launchStatus = value;
776 }
778 SetLaunchStatus(value);
779 return *this;
780 }
782 private:
783 Aws::String m_capacityReservationId;
784
785 Aws::String m_ownerId;
786
787 Aws::String m_capacityReservationArn;
788
789 Aws::String m_availabilityZoneId;
790
791 Aws::String m_instanceType;
792
794
795 Aws::String m_availabilityZone;
796
798
799 int m_totalInstanceCount{0};
800
801 int m_availableInstanceCount{0};
802
803 bool m_ebsOptimized{false};
804
805 bool m_ephemeralStorage{false};
806
808
809 Aws::Utils::DateTime m_startDate{};
810
811 Aws::Utils::DateTime m_endDate{};
812
813 EndDateType m_endDateType{EndDateType::NOT_SET};
814
816
817 Aws::Utils::DateTime m_createDate{};
818
819 Aws::Vector<Tag> m_tags;
820
821 Aws::String m_outpostArn;
822
823 Aws::String m_capacityReservationFleetId;
824
825 Aws::String m_placementGroupArn;
826
827 Aws::Vector<CapacityAllocation> m_capacityAllocations;
828
830
831 Aws::String m_unusedReservationBillingOwnerId;
832
833 CapacityReservationCommitmentInfo m_commitmentInfo;
834
836
837 Aws::String m_capacityBlockId;
838
839 bool m_interruptible{false};
840
841 InterruptibleCapacityAllocation m_interruptibleCapacityAllocation;
842
843 InterruptionInfo m_interruptionInfo;
844
846
847 CapacityReservationAdjustmentDetails m_adjustmentDetails;
848
849 Aws::Utils::DateTime m_originalStartDate{};
850
852
854 bool m_capacityReservationIdHasBeenSet = false;
855 bool m_ownerIdHasBeenSet = false;
856 bool m_capacityReservationArnHasBeenSet = false;
857 bool m_availabilityZoneIdHasBeenSet = false;
858 bool m_instanceTypeHasBeenSet = false;
859 bool m_instancePlatformHasBeenSet = false;
860 bool m_availabilityZoneHasBeenSet = false;
861 bool m_tenancyHasBeenSet = false;
862 bool m_totalInstanceCountHasBeenSet = false;
863 bool m_availableInstanceCountHasBeenSet = false;
864 bool m_ebsOptimizedHasBeenSet = false;
865 bool m_ephemeralStorageHasBeenSet = false;
866 bool m_stateHasBeenSet = false;
867 bool m_startDateHasBeenSet = false;
868 bool m_endDateHasBeenSet = false;
869 bool m_endDateTypeHasBeenSet = false;
870 bool m_instanceMatchCriteriaHasBeenSet = false;
871 bool m_createDateHasBeenSet = false;
872 bool m_tagsHasBeenSet = false;
873 bool m_outpostArnHasBeenSet = false;
874 bool m_capacityReservationFleetIdHasBeenSet = false;
875 bool m_placementGroupArnHasBeenSet = false;
876 bool m_capacityAllocationsHasBeenSet = false;
877 bool m_reservationTypeHasBeenSet = false;
878 bool m_unusedReservationBillingOwnerIdHasBeenSet = false;
879 bool m_commitmentInfoHasBeenSet = false;
880 bool m_deliveryPreferenceHasBeenSet = false;
881 bool m_capacityBlockIdHasBeenSet = false;
882 bool m_interruptibleHasBeenSet = false;
883 bool m_interruptibleCapacityAllocationHasBeenSet = false;
884 bool m_interruptionInfoHasBeenSet = false;
885 bool m_adjustmentStatusHasBeenSet = false;
886 bool m_adjustmentDetailsHasBeenSet = false;
887 bool m_originalStartDateHasBeenSet = false;
888 bool m_zeroSizePreferenceHasBeenSet = false;
889 bool m_launchStatusHasBeenSet = false;
890};
891
892} // namespace Model
893} // namespace EC2
894} // namespace Aws
void SetInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT &&value)
CapacityReservation & WithState(CapacityReservationState value)
CapacityReservation & WithStartDate(StartDateT &&value)
void SetInstanceType(InstanceTypeT &&value)
CapacityReservation & WithAvailableInstanceCount(int value)
CapacityReservationAdjustmentStatus GetAdjustmentStatus() const
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 CapacityReservationAdjustmentDetails & GetAdjustmentDetails() const
const Aws::String & GetInstanceType() const
CapacityReservationDeliveryPreference GetDeliveryPreference() const
CapacityReservation & AddCapacityAllocations(CapacityAllocationsT &&value)
void SetAdjustmentDetails(AdjustmentDetailsT &&value)
const Aws::Utils::DateTime & GetCreateDate() const
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::DateTime & GetEndDate() const
void SetZeroSizePreference(ZeroSizePreference value)
ZeroSizePreference GetZeroSizePreference() 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 & WithAdjustmentDetails(AdjustmentDetailsT &&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 & WithOriginalStartDate(OriginalStartDateT &&value)
void SetLaunchStatus(CapacityReservationLaunchStatus value)
CapacityReservation & WithZeroSizePreference(ZeroSizePreference 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)
const Aws::Utils::DateTime & GetOriginalStartDate() const
CapacityReservation & WithCapacityAllocations(CapacityAllocationsT &&value)
CapacityReservationType GetReservationType() const
CapacityReservationInstancePlatform GetInstancePlatform() const
const Aws::String & GetOwnerId() const
const Aws::String & GetAvailabilityZoneId() const
CapacityReservation & WithUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT &&value)
CapacityReservationLaunchStatus GetLaunchStatus() const
CapacityReservation & WithLaunchStatus(CapacityReservationLaunchStatus 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)
void SetOriginalStartDate(OriginalStartDateT &&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)
void SetAdjustmentStatus(CapacityReservationAdjustmentStatus value)
CapacityReservation & WithOwnerId(OwnerIdT &&value)
CapacityReservation & WithCreateDate(CreateDateT &&value)
void SetInstanceMatchCriteria(InstanceMatchCriteria value)
CapacityReservationTenancy GetTenancy() const
void SetState(CapacityReservationState value)
CapacityReservation & WithAdjustmentStatus(CapacityReservationAdjustmentStatus 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