AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
301 inline CapacityReservationState GetState() const { return m_state; }
302 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
304 m_stateHasBeenSet = true;
305 m_state = value;
306 }
308 SetState(value);
309 return *this;
310 }
312
314
317 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
318 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
319 template <typename StartDateT = Aws::Utils::DateTime>
320 void SetStartDate(StartDateT&& value) {
321 m_startDateHasBeenSet = true;
322 m_startDate = std::forward<StartDateT>(value);
323 }
324 template <typename StartDateT = Aws::Utils::DateTime>
325 CapacityReservation& WithStartDate(StartDateT&& value) {
326 SetStartDate(std::forward<StartDateT>(value));
327 return *this;
328 }
330
332
338 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
339 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
340 template <typename EndDateT = Aws::Utils::DateTime>
341 void SetEndDate(EndDateT&& value) {
342 m_endDateHasBeenSet = true;
343 m_endDate = std::forward<EndDateT>(value);
344 }
345 template <typename EndDateT = Aws::Utils::DateTime>
346 CapacityReservation& WithEndDate(EndDateT&& value) {
347 SetEndDate(std::forward<EndDateT>(value));
348 return *this;
349 }
351
353
360 inline EndDateType GetEndDateType() const { return m_endDateType; }
361 inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
362 inline void SetEndDateType(EndDateType value) {
363 m_endDateTypeHasBeenSet = true;
364 m_endDateType = value;
365 }
367 SetEndDateType(value);
368 return *this;
369 }
371
373
385 inline InstanceMatchCriteria GetInstanceMatchCriteria() const { return m_instanceMatchCriteria; }
386 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
388 m_instanceMatchCriteriaHasBeenSet = true;
389 m_instanceMatchCriteria = value;
390 }
393 return *this;
394 }
396
398
401 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
402 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
403 template <typename CreateDateT = Aws::Utils::DateTime>
404 void SetCreateDate(CreateDateT&& value) {
405 m_createDateHasBeenSet = true;
406 m_createDate = std::forward<CreateDateT>(value);
407 }
408 template <typename CreateDateT = Aws::Utils::DateTime>
409 CapacityReservation& WithCreateDate(CreateDateT&& value) {
410 SetCreateDate(std::forward<CreateDateT>(value));
411 return *this;
412 }
414
416
419 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
420 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
421 template <typename TagsT = Aws::Vector<Tag>>
422 void SetTags(TagsT&& value) {
423 m_tagsHasBeenSet = true;
424 m_tags = std::forward<TagsT>(value);
425 }
426 template <typename TagsT = Aws::Vector<Tag>>
428 SetTags(std::forward<TagsT>(value));
429 return *this;
430 }
431 template <typename TagsT = Tag>
432 CapacityReservation& AddTags(TagsT&& value) {
433 m_tagsHasBeenSet = true;
434 m_tags.emplace_back(std::forward<TagsT>(value));
435 return *this;
436 }
438
440
444 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
445 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
446 template <typename OutpostArnT = Aws::String>
447 void SetOutpostArn(OutpostArnT&& value) {
448 m_outpostArnHasBeenSet = true;
449 m_outpostArn = std::forward<OutpostArnT>(value);
450 }
451 template <typename OutpostArnT = Aws::String>
452 CapacityReservation& WithOutpostArn(OutpostArnT&& value) {
453 SetOutpostArn(std::forward<OutpostArnT>(value));
454 return *this;
455 }
457
459
464 inline const Aws::String& GetCapacityReservationFleetId() const { return m_capacityReservationFleetId; }
465 inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
466 template <typename CapacityReservationFleetIdT = Aws::String>
467 void SetCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
468 m_capacityReservationFleetIdHasBeenSet = true;
469 m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value);
470 }
471 template <typename CapacityReservationFleetIdT = Aws::String>
472 CapacityReservation& WithCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
473 SetCapacityReservationFleetId(std::forward<CapacityReservationFleetIdT>(value));
474 return *this;
475 }
477
479
486 inline const Aws::String& GetPlacementGroupArn() const { return m_placementGroupArn; }
487 inline bool PlacementGroupArnHasBeenSet() const { return m_placementGroupArnHasBeenSet; }
488 template <typename PlacementGroupArnT = Aws::String>
489 void SetPlacementGroupArn(PlacementGroupArnT&& value) {
490 m_placementGroupArnHasBeenSet = true;
491 m_placementGroupArn = std::forward<PlacementGroupArnT>(value);
492 }
493 template <typename PlacementGroupArnT = Aws::String>
494 CapacityReservation& WithPlacementGroupArn(PlacementGroupArnT&& value) {
495 SetPlacementGroupArn(std::forward<PlacementGroupArnT>(value));
496 return *this;
497 }
499
501
504 inline const Aws::Vector<CapacityAllocation>& GetCapacityAllocations() const { return m_capacityAllocations; }
505 inline bool CapacityAllocationsHasBeenSet() const { return m_capacityAllocationsHasBeenSet; }
506 template <typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
507 void SetCapacityAllocations(CapacityAllocationsT&& value) {
508 m_capacityAllocationsHasBeenSet = true;
509 m_capacityAllocations = std::forward<CapacityAllocationsT>(value);
510 }
511 template <typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
512 CapacityReservation& WithCapacityAllocations(CapacityAllocationsT&& value) {
513 SetCapacityAllocations(std::forward<CapacityAllocationsT>(value));
514 return *this;
515 }
516 template <typename CapacityAllocationsT = CapacityAllocation>
517 CapacityReservation& AddCapacityAllocations(CapacityAllocationsT&& value) {
518 m_capacityAllocationsHasBeenSet = true;
519 m_capacityAllocations.emplace_back(std::forward<CapacityAllocationsT>(value));
520 return *this;
521 }
523
525
528 inline CapacityReservationType GetReservationType() const { return m_reservationType; }
529 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
531 m_reservationTypeHasBeenSet = true;
532 m_reservationType = value;
533 }
535 SetReservationType(value);
536 return *this;
537 }
539
541
545 inline const Aws::String& GetUnusedReservationBillingOwnerId() const { return m_unusedReservationBillingOwnerId; }
546 inline bool UnusedReservationBillingOwnerIdHasBeenSet() const { return m_unusedReservationBillingOwnerIdHasBeenSet; }
547 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
548 void SetUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) {
549 m_unusedReservationBillingOwnerIdHasBeenSet = true;
550 m_unusedReservationBillingOwnerId = std::forward<UnusedReservationBillingOwnerIdT>(value);
551 }
552 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
553 CapacityReservation& WithUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) {
554 SetUnusedReservationBillingOwnerId(std::forward<UnusedReservationBillingOwnerIdT>(value));
555 return *this;
556 }
558
560
564 inline const CapacityReservationCommitmentInfo& GetCommitmentInfo() const { return m_commitmentInfo; }
565 inline bool CommitmentInfoHasBeenSet() const { return m_commitmentInfoHasBeenSet; }
566 template <typename CommitmentInfoT = CapacityReservationCommitmentInfo>
567 void SetCommitmentInfo(CommitmentInfoT&& value) {
568 m_commitmentInfoHasBeenSet = true;
569 m_commitmentInfo = std::forward<CommitmentInfoT>(value);
570 }
571 template <typename CommitmentInfoT = CapacityReservationCommitmentInfo>
572 CapacityReservation& WithCommitmentInfo(CommitmentInfoT&& value) {
573 SetCommitmentInfo(std::forward<CommitmentInfoT>(value));
574 return *this;
575 }
577
579
585 inline CapacityReservationDeliveryPreference GetDeliveryPreference() const { return m_deliveryPreference; }
586 inline bool DeliveryPreferenceHasBeenSet() const { return m_deliveryPreferenceHasBeenSet; }
588 m_deliveryPreferenceHasBeenSet = true;
589 m_deliveryPreference = value;
590 }
593 return *this;
594 }
596
598
601 inline const Aws::String& GetCapacityBlockId() const { return m_capacityBlockId; }
602 inline bool CapacityBlockIdHasBeenSet() const { return m_capacityBlockIdHasBeenSet; }
603 template <typename CapacityBlockIdT = Aws::String>
604 void SetCapacityBlockId(CapacityBlockIdT&& value) {
605 m_capacityBlockIdHasBeenSet = true;
606 m_capacityBlockId = std::forward<CapacityBlockIdT>(value);
607 }
608 template <typename CapacityBlockIdT = Aws::String>
609 CapacityReservation& WithCapacityBlockId(CapacityBlockIdT&& value) {
610 SetCapacityBlockId(std::forward<CapacityBlockIdT>(value));
611 return *this;
612 }
614
616
620 inline bool GetInterruptible() const { return m_interruptible; }
621 inline bool InterruptibleHasBeenSet() const { return m_interruptibleHasBeenSet; }
622 inline void SetInterruptible(bool value) {
623 m_interruptibleHasBeenSet = true;
624 m_interruptible = value;
625 }
627 SetInterruptible(value);
628 return *this;
629 }
631
633
638 inline const InterruptibleCapacityAllocation& GetInterruptibleCapacityAllocation() const { return m_interruptibleCapacityAllocation; }
639 inline bool InterruptibleCapacityAllocationHasBeenSet() const { return m_interruptibleCapacityAllocationHasBeenSet; }
640 template <typename InterruptibleCapacityAllocationT = InterruptibleCapacityAllocation>
641 void SetInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT&& value) {
642 m_interruptibleCapacityAllocationHasBeenSet = true;
643 m_interruptibleCapacityAllocation = std::forward<InterruptibleCapacityAllocationT>(value);
644 }
645 template <typename InterruptibleCapacityAllocationT = InterruptibleCapacityAllocation>
646 CapacityReservation& WithInterruptibleCapacityAllocation(InterruptibleCapacityAllocationT&& value) {
647 SetInterruptibleCapacityAllocation(std::forward<InterruptibleCapacityAllocationT>(value));
648 return *this;
649 }
651
653
657 inline const InterruptionInfo& GetInterruptionInfo() const { return m_interruptionInfo; }
658 inline bool InterruptionInfoHasBeenSet() const { return m_interruptionInfoHasBeenSet; }
659 template <typename InterruptionInfoT = InterruptionInfo>
660 void SetInterruptionInfo(InterruptionInfoT&& value) {
661 m_interruptionInfoHasBeenSet = true;
662 m_interruptionInfo = std::forward<InterruptionInfoT>(value);
663 }
664 template <typename InterruptionInfoT = InterruptionInfo>
665 CapacityReservation& WithInterruptionInfo(InterruptionInfoT&& value) {
666 SetInterruptionInfo(std::forward<InterruptionInfoT>(value));
667 return *this;
668 }
670 private:
671 Aws::String m_capacityReservationId;
672
673 Aws::String m_ownerId;
674
675 Aws::String m_capacityReservationArn;
676
677 Aws::String m_availabilityZoneId;
678
679 Aws::String m_instanceType;
680
682
683 Aws::String m_availabilityZone;
684
686
687 int m_totalInstanceCount{0};
688
689 int m_availableInstanceCount{0};
690
691 bool m_ebsOptimized{false};
692
693 bool m_ephemeralStorage{false};
694
696
697 Aws::Utils::DateTime m_startDate{};
698
699 Aws::Utils::DateTime m_endDate{};
700
701 EndDateType m_endDateType{EndDateType::NOT_SET};
702
704
705 Aws::Utils::DateTime m_createDate{};
706
707 Aws::Vector<Tag> m_tags;
708
709 Aws::String m_outpostArn;
710
711 Aws::String m_capacityReservationFleetId;
712
713 Aws::String m_placementGroupArn;
714
715 Aws::Vector<CapacityAllocation> m_capacityAllocations;
716
718
719 Aws::String m_unusedReservationBillingOwnerId;
720
721 CapacityReservationCommitmentInfo m_commitmentInfo;
722
724
725 Aws::String m_capacityBlockId;
726
727 bool m_interruptible{false};
728
729 InterruptibleCapacityAllocation m_interruptibleCapacityAllocation;
730
731 InterruptionInfo m_interruptionInfo;
732 bool m_capacityReservationIdHasBeenSet = false;
733 bool m_ownerIdHasBeenSet = false;
734 bool m_capacityReservationArnHasBeenSet = false;
735 bool m_availabilityZoneIdHasBeenSet = false;
736 bool m_instanceTypeHasBeenSet = false;
737 bool m_instancePlatformHasBeenSet = false;
738 bool m_availabilityZoneHasBeenSet = false;
739 bool m_tenancyHasBeenSet = false;
740 bool m_totalInstanceCountHasBeenSet = false;
741 bool m_availableInstanceCountHasBeenSet = false;
742 bool m_ebsOptimizedHasBeenSet = false;
743 bool m_ephemeralStorageHasBeenSet = false;
744 bool m_stateHasBeenSet = false;
745 bool m_startDateHasBeenSet = false;
746 bool m_endDateHasBeenSet = false;
747 bool m_endDateTypeHasBeenSet = false;
748 bool m_instanceMatchCriteriaHasBeenSet = false;
749 bool m_createDateHasBeenSet = false;
750 bool m_tagsHasBeenSet = false;
751 bool m_outpostArnHasBeenSet = false;
752 bool m_capacityReservationFleetIdHasBeenSet = false;
753 bool m_placementGroupArnHasBeenSet = false;
754 bool m_capacityAllocationsHasBeenSet = false;
755 bool m_reservationTypeHasBeenSet = false;
756 bool m_unusedReservationBillingOwnerIdHasBeenSet = false;
757 bool m_commitmentInfoHasBeenSet = false;
758 bool m_deliveryPreferenceHasBeenSet = false;
759 bool m_capacityBlockIdHasBeenSet = false;
760 bool m_interruptibleHasBeenSet = false;
761 bool m_interruptibleCapacityAllocationHasBeenSet = false;
762 bool m_interruptionInfoHasBeenSet = false;
763};
764
765} // namespace Model
766} // namespace EC2
767} // 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