AWS SDK for C++

AWS SDK for C++ Version 1.11.891

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#include <aws/ec2/model/ZeroSizePreference.h>
25
26#include <utility>
27
28namespace Aws {
29namespace Utils {
30namespace Xml {
31class XmlNode;
32} // namespace Xml
33} // namespace Utils
34namespace EC2 {
35namespace Model {
36
43 public:
44 AWS_EC2_API CapacityReservation() = default;
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
52
55 inline const Aws::String& GetCapacityReservationId() const { return m_capacityReservationId; }
56 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
57 template <typename CapacityReservationIdT = Aws::String>
58 void SetCapacityReservationId(CapacityReservationIdT&& value) {
59 m_capacityReservationIdHasBeenSet = true;
60 m_capacityReservationId = std::forward<CapacityReservationIdT>(value);
61 }
62 template <typename CapacityReservationIdT = Aws::String>
63 CapacityReservation& WithCapacityReservationId(CapacityReservationIdT&& value) {
64 SetCapacityReservationId(std::forward<CapacityReservationIdT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
75 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
76 template <typename OwnerIdT = Aws::String>
77 void SetOwnerId(OwnerIdT&& value) {
78 m_ownerIdHasBeenSet = true;
79 m_ownerId = std::forward<OwnerIdT>(value);
80 }
81 template <typename OwnerIdT = Aws::String>
82 CapacityReservation& WithOwnerId(OwnerIdT&& value) {
83 SetOwnerId(std::forward<OwnerIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetCapacityReservationArn() const { return m_capacityReservationArn; }
93 inline bool CapacityReservationArnHasBeenSet() const { return m_capacityReservationArnHasBeenSet; }
94 template <typename CapacityReservationArnT = Aws::String>
95 void SetCapacityReservationArn(CapacityReservationArnT&& value) {
96 m_capacityReservationArnHasBeenSet = true;
97 m_capacityReservationArn = std::forward<CapacityReservationArnT>(value);
98 }
99 template <typename CapacityReservationArnT = Aws::String>
100 CapacityReservation& WithCapacityReservationArn(CapacityReservationArnT&& value) {
101 SetCapacityReservationArn(std::forward<CapacityReservationArnT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
111 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
112 template <typename AvailabilityZoneIdT = Aws::String>
113 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
114 m_availabilityZoneIdHasBeenSet = true;
115 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
116 }
117 template <typename AvailabilityZoneIdT = Aws::String>
118 CapacityReservation& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
119 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
130 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
131 template <typename InstanceTypeT = Aws::String>
132 void SetInstanceType(InstanceTypeT&& value) {
133 m_instanceTypeHasBeenSet = true;
134 m_instanceType = std::forward<InstanceTypeT>(value);
135 }
136 template <typename InstanceTypeT = Aws::String>
137 CapacityReservation& WithInstanceType(InstanceTypeT&& value) {
138 SetInstanceType(std::forward<InstanceTypeT>(value));
139 return *this;
140 }
142
144
148 inline CapacityReservationInstancePlatform GetInstancePlatform() const { return m_instancePlatform; }
149 inline bool InstancePlatformHasBeenSet() const { return m_instancePlatformHasBeenSet; }
151 m_instancePlatformHasBeenSet = true;
152 m_instancePlatform = value;
153 }
155 SetInstancePlatform(value);
156 return *this;
157 }
159
161
164 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
165 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
166 template <typename AvailabilityZoneT = Aws::String>
167 void SetAvailabilityZone(AvailabilityZoneT&& value) {
168 m_availabilityZoneHasBeenSet = true;
169 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
170 }
171 template <typename AvailabilityZoneT = Aws::String>
172 CapacityReservation& WithAvailabilityZone(AvailabilityZoneT&& value) {
173 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
174 return *this;
175 }
177
179
188 inline CapacityReservationTenancy GetTenancy() const { return m_tenancy; }
189 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
191 m_tenancyHasBeenSet = true;
192 m_tenancy = value;
193 }
195 SetTenancy(value);
196 return *this;
197 }
199
201
205 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
206 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
207 inline void SetTotalInstanceCount(int value) {
208 m_totalInstanceCountHasBeenSet = true;
209 m_totalInstanceCount = value;
210 }
213 return *this;
214 }
216
218
222 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
223 inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; }
224 inline void SetAvailableInstanceCount(int value) {
225 m_availableInstanceCountHasBeenSet = true;
226 m_availableInstanceCount = value;
227 }
230 return *this;
231 }
233
235
242 inline bool GetEbsOptimized() const { return m_ebsOptimized; }
243 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
244 inline void SetEbsOptimized(bool value) {
245 m_ebsOptimizedHasBeenSet = true;
246 m_ebsOptimized = value;
247 }
249 SetEbsOptimized(value);
250 return *this;
251 }
253
255
258 inline bool GetEphemeralStorage() const { return m_ephemeralStorage; }
259 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
260 inline void SetEphemeralStorage(bool value) {
261 m_ephemeralStorageHasBeenSet = true;
262 m_ephemeralStorage = value;
263 }
265 SetEphemeralStorage(value);
266 return *this;
267 }
269
271
306 inline CapacityReservationState GetState() const { return m_state; }
307 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
309 m_stateHasBeenSet = true;
310 m_state = value;
311 }
313 SetState(value);
314 return *this;
315 }
317
319
322 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
323 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
324 template <typename StartDateT = Aws::Utils::DateTime>
325 void SetStartDate(StartDateT&& value) {
326 m_startDateHasBeenSet = true;
327 m_startDate = std::forward<StartDateT>(value);
328 }
329 template <typename StartDateT = Aws::Utils::DateTime>
330 CapacityReservation& WithStartDate(StartDateT&& value) {
331 SetStartDate(std::forward<StartDateT>(value));
332 return *this;
333 }
335
337
343 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
344 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
345 template <typename EndDateT = Aws::Utils::DateTime>
346 void SetEndDate(EndDateT&& value) {
347 m_endDateHasBeenSet = true;
348 m_endDate = std::forward<EndDateT>(value);
349 }
350 template <typename EndDateT = Aws::Utils::DateTime>
351 CapacityReservation& WithEndDate(EndDateT&& value) {
352 SetEndDate(std::forward<EndDateT>(value));
353 return *this;
354 }
356
358
365 inline EndDateType GetEndDateType() const { return m_endDateType; }
366 inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
367 inline void SetEndDateType(EndDateType value) {
368 m_endDateTypeHasBeenSet = true;
369 m_endDateType = value;
370 }
372 SetEndDateType(value);
373 return *this;
374 }
376
378
390 inline InstanceMatchCriteria GetInstanceMatchCriteria() const { return m_instanceMatchCriteria; }
391 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
393 m_instanceMatchCriteriaHasBeenSet = true;
394 m_instanceMatchCriteria = value;
395 }
398 return *this;
399 }
401
403
406 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
407 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
408 template <typename CreateDateT = Aws::Utils::DateTime>
409 void SetCreateDate(CreateDateT&& value) {
410 m_createDateHasBeenSet = true;
411 m_createDate = std::forward<CreateDateT>(value);
412 }
413 template <typename CreateDateT = Aws::Utils::DateTime>
414 CapacityReservation& WithCreateDate(CreateDateT&& value) {
415 SetCreateDate(std::forward<CreateDateT>(value));
416 return *this;
417 }
419
421
424 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
425 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
426 template <typename TagsT = Aws::Vector<Tag>>
427 void SetTags(TagsT&& value) {
428 m_tagsHasBeenSet = true;
429 m_tags = std::forward<TagsT>(value);
430 }
431 template <typename TagsT = Aws::Vector<Tag>>
433 SetTags(std::forward<TagsT>(value));
434 return *this;
435 }
436 template <typename TagsT = Tag>
437 CapacityReservation& AddTags(TagsT&& value) {
438 m_tagsHasBeenSet = true;
439 m_tags.emplace_back(std::forward<TagsT>(value));
440 return *this;
441 }
443
445
449 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
450 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
451 template <typename OutpostArnT = Aws::String>
452 void SetOutpostArn(OutpostArnT&& value) {
453 m_outpostArnHasBeenSet = true;
454 m_outpostArn = std::forward<OutpostArnT>(value);
455 }
456 template <typename OutpostArnT = Aws::String>
457 CapacityReservation& WithOutpostArn(OutpostArnT&& value) {
458 SetOutpostArn(std::forward<OutpostArnT>(value));
459 return *this;
460 }
462
464
469 inline const Aws::String& GetCapacityReservationFleetId() const { return m_capacityReservationFleetId; }
470 inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
471 template <typename CapacityReservationFleetIdT = Aws::String>
472 void SetCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
473 m_capacityReservationFleetIdHasBeenSet = true;
474 m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value);
475 }
476 template <typename CapacityReservationFleetIdT = Aws::String>
477 CapacityReservation& WithCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
478 SetCapacityReservationFleetId(std::forward<CapacityReservationFleetIdT>(value));
479 return *this;
480 }
482
484
491 inline const Aws::String& GetPlacementGroupArn() const { return m_placementGroupArn; }
492 inline bool PlacementGroupArnHasBeenSet() const { return m_placementGroupArnHasBeenSet; }
493 template <typename PlacementGroupArnT = Aws::String>
494 void SetPlacementGroupArn(PlacementGroupArnT&& value) {
495 m_placementGroupArnHasBeenSet = true;
496 m_placementGroupArn = std::forward<PlacementGroupArnT>(value);
497 }
498 template <typename PlacementGroupArnT = Aws::String>
499 CapacityReservation& WithPlacementGroupArn(PlacementGroupArnT&& value) {
500 SetPlacementGroupArn(std::forward<PlacementGroupArnT>(value));
501 return *this;
502 }
504
506
509 inline const Aws::Vector<CapacityAllocation>& GetCapacityAllocations() const { return m_capacityAllocations; }
510 inline bool CapacityAllocationsHasBeenSet() const { return m_capacityAllocationsHasBeenSet; }
511 template <typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
512 void SetCapacityAllocations(CapacityAllocationsT&& value) {
513 m_capacityAllocationsHasBeenSet = true;
514 m_capacityAllocations = std::forward<CapacityAllocationsT>(value);
515 }
516 template <typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
517 CapacityReservation& WithCapacityAllocations(CapacityAllocationsT&& value) {
518 SetCapacityAllocations(std::forward<CapacityAllocationsT>(value));
519 return *this;
520 }
521 template <typename CapacityAllocationsT = CapacityAllocation>
522 CapacityReservation& AddCapacityAllocations(CapacityAllocationsT&& value) {
523 m_capacityAllocationsHasBeenSet = true;
524 m_capacityAllocations.emplace_back(std::forward<CapacityAllocationsT>(value));
525 return *this;
526 }
528
530
533 inline CapacityReservationType GetReservationType() const { return m_reservationType; }
534 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
536 m_reservationTypeHasBeenSet = true;
537 m_reservationType = value;
538 }
540 SetReservationType(value);
541 return *this;
542 }
544
546
550 inline const Aws::String& GetUnusedReservationBillingOwnerId() const { return m_unusedReservationBillingOwnerId; }
551 inline bool UnusedReservationBillingOwnerIdHasBeenSet() const { return m_unusedReservationBillingOwnerIdHasBeenSet; }
552 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
553 void SetUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) {
554 m_unusedReservationBillingOwnerIdHasBeenSet = true;
555 m_unusedReservationBillingOwnerId = std::forward<UnusedReservationBillingOwnerIdT>(value);
556 }
557 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
558 CapacityReservation& WithUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) {
559 SetUnusedReservationBillingOwnerId(std::forward<UnusedReservationBillingOwnerIdT>(value));
560 return *this;
561 }
563
565
569 inline const CapacityReservationCommitmentInfo& GetCommitmentInfo() const { return m_commitmentInfo; }
570 inline bool CommitmentInfoHasBeenSet() const { return m_commitmentInfoHasBeenSet; }
571 template <typename CommitmentInfoT = CapacityReservationCommitmentInfo>
572 void SetCommitmentInfo(CommitmentInfoT&& value) {
573 m_commitmentInfoHasBeenSet = true;
574 m_commitmentInfo = std::forward<CommitmentInfoT>(value);
575 }
576 template <typename CommitmentInfoT = CapacityReservationCommitmentInfo>
577 CapacityReservation& WithCommitmentInfo(CommitmentInfoT&& value) {
578 SetCommitmentInfo(std::forward<CommitmentInfoT>(value));
579 return *this;
580 }
582
584
590 inline CapacityReservationDeliveryPreference GetDeliveryPreference() const { return m_deliveryPreference; }
591 inline bool DeliveryPreferenceHasBeenSet() const { return m_deliveryPreferenceHasBeenSet; }
593 m_deliveryPreferenceHasBeenSet = true;
594 m_deliveryPreference = value;
595 }
598 return *this;
599 }
601
603
606 inline const Aws::String& GetCapacityBlockId() const { return m_capacityBlockId; }
607 inline bool CapacityBlockIdHasBeenSet() const { return m_capacityBlockIdHasBeenSet; }
608 template <typename CapacityBlockIdT = Aws::String>
609 void SetCapacityBlockId(CapacityBlockIdT&& value) {
610 m_capacityBlockIdHasBeenSet = true;
611 m_capacityBlockId = std::forward<CapacityBlockIdT>(value);
612 }
613 template <typename CapacityBlockIdT = Aws::String>
614 CapacityReservation& WithCapacityBlockId(CapacityBlockIdT&& value) {
615 SetCapacityBlockId(std::forward<CapacityBlockIdT>(value));
616 return *this;
617 }
619
621
625 inline bool GetInterruptible() const { return m_interruptible; }
626 inline bool InterruptibleHasBeenSet() const { return m_interruptibleHasBeenSet; }
627 inline void SetInterruptible(bool value) {
628 m_interruptibleHasBeenSet = true;
629 m_interruptible = value;
630 }
632 SetInterruptible(value);
633 return *this;
634 }
636
638
643 inline const InterruptibleCapacityAllocation& GetInterruptibleCapacityAllocation() const { return m_interruptibleCapacityAllocation; }
644 inline bool InterruptibleCapacityAllocationHasBeenSet() const { return m_interruptibleCapacityAllocationHasBeenSet; }
645 template <typename InterruptibleCapacityAllocationT = InterruptibleCapacityAllocation>
646 void SetInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT&& value) {
647 m_interruptibleCapacityAllocationHasBeenSet = true;
648 m_interruptibleCapacityAllocation = std::forward<InterruptibleCapacityAllocationT>(value);
649 }
650 template <typename InterruptibleCapacityAllocationT = InterruptibleCapacityAllocation>
651 CapacityReservation& WithInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT&& value) {
652 SetInterruptibleCapacityAllocation(std::forward<InterruptibleCapacityAllocationT>(value));
653 return *this;
654 }
656
658
662 inline const InterruptionInfo& GetInterruptionInfo() const { return m_interruptionInfo; }
663 inline bool InterruptionInfoHasBeenSet() const { return m_interruptionInfoHasBeenSet; }
664 template <typename InterruptionInfoT = InterruptionInfo>
665 void SetInterruptionInfo(InterruptionInfoT&& value) {
666 m_interruptionInfoHasBeenSet = true;
667 m_interruptionInfo = std::forward<InterruptionInfoT>(value);
668 }
669 template <typename InterruptionInfoT = InterruptionInfo>
670 CapacityReservation& WithInterruptionInfo(InterruptionInfoT&& value) {
671 SetInterruptionInfo(std::forward<InterruptionInfoT>(value));
672 return *this;
673 }
675
677
684 inline ZeroSizePreference GetZeroSizePreference() const { return m_zeroSizePreference; }
685 inline bool ZeroSizePreferenceHasBeenSet() const { return m_zeroSizePreferenceHasBeenSet; }
687 m_zeroSizePreferenceHasBeenSet = true;
688 m_zeroSizePreference = value;
689 }
692 return *this;
693 }
695 private:
696 Aws::String m_capacityReservationId;
697
698 Aws::String m_ownerId;
699
700 Aws::String m_capacityReservationArn;
701
702 Aws::String m_availabilityZoneId;
703
704 Aws::String m_instanceType;
705
707
708 Aws::String m_availabilityZone;
709
711
712 int m_totalInstanceCount{0};
713
714 int m_availableInstanceCount{0};
715
716 bool m_ebsOptimized{false};
717
718 bool m_ephemeralStorage{false};
719
721
722 Aws::Utils::DateTime m_startDate{};
723
724 Aws::Utils::DateTime m_endDate{};
725
726 EndDateType m_endDateType{EndDateType::NOT_SET};
727
729
730 Aws::Utils::DateTime m_createDate{};
731
732 Aws::Vector<Tag> m_tags;
733
734 Aws::String m_outpostArn;
735
736 Aws::String m_capacityReservationFleetId;
737
738 Aws::String m_placementGroupArn;
739
740 Aws::Vector<CapacityAllocation> m_capacityAllocations;
741
743
744 Aws::String m_unusedReservationBillingOwnerId;
745
746 CapacityReservationCommitmentInfo m_commitmentInfo;
747
749
750 Aws::String m_capacityBlockId;
751
752 bool m_interruptible{false};
753
754 InterruptibleCapacityAllocation m_interruptibleCapacityAllocation;
755
756 InterruptionInfo m_interruptionInfo;
757
759 bool m_capacityReservationIdHasBeenSet = false;
760 bool m_ownerIdHasBeenSet = false;
761 bool m_capacityReservationArnHasBeenSet = false;
762 bool m_availabilityZoneIdHasBeenSet = false;
763 bool m_instanceTypeHasBeenSet = false;
764 bool m_instancePlatformHasBeenSet = false;
765 bool m_availabilityZoneHasBeenSet = false;
766 bool m_tenancyHasBeenSet = false;
767 bool m_totalInstanceCountHasBeenSet = false;
768 bool m_availableInstanceCountHasBeenSet = false;
769 bool m_ebsOptimizedHasBeenSet = false;
770 bool m_ephemeralStorageHasBeenSet = false;
771 bool m_stateHasBeenSet = false;
772 bool m_startDateHasBeenSet = false;
773 bool m_endDateHasBeenSet = false;
774 bool m_endDateTypeHasBeenSet = false;
775 bool m_instanceMatchCriteriaHasBeenSet = false;
776 bool m_createDateHasBeenSet = false;
777 bool m_tagsHasBeenSet = false;
778 bool m_outpostArnHasBeenSet = false;
779 bool m_capacityReservationFleetIdHasBeenSet = false;
780 bool m_placementGroupArnHasBeenSet = false;
781 bool m_capacityAllocationsHasBeenSet = false;
782 bool m_reservationTypeHasBeenSet = false;
783 bool m_unusedReservationBillingOwnerIdHasBeenSet = false;
784 bool m_commitmentInfoHasBeenSet = false;
785 bool m_deliveryPreferenceHasBeenSet = false;
786 bool m_capacityBlockIdHasBeenSet = false;
787 bool m_interruptibleHasBeenSet = false;
788 bool m_interruptibleCapacityAllocationHasBeenSet = false;
789 bool m_interruptionInfoHasBeenSet = false;
790 bool m_zeroSizePreferenceHasBeenSet = false;
791};
792
793} // namespace Model
794} // namespace EC2
795} // 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
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 & 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 & 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)
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