AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CapacityReservation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/CapacityReservationInstancePlatform.h>
11#include <aws/ec2/model/CapacityReservationTenancy.h>
12#include <aws/ec2/model/CapacityReservationState.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/ec2/model/EndDateType.h>
15#include <aws/ec2/model/InstanceMatchCriteria.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/ec2/model/CapacityReservationType.h>
18#include <aws/ec2/model/CapacityReservationCommitmentInfo.h>
19#include <aws/ec2/model/CapacityReservationDeliveryPreference.h>
20#include <aws/ec2/model/Tag.h>
21#include <aws/ec2/model/CapacityAllocation.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Xml
29{
30 class XmlNode;
31} // namespace Xml
32} // namespace Utils
33namespace EC2
34{
35namespace Model
36{
37
44 {
45 public:
46 AWS_EC2_API CapacityReservation() = default;
47 AWS_EC2_API CapacityReservation(const Aws::Utils::Xml::XmlNode& xmlNode);
49
50 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
52
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) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::forward<CapacityReservationIdT>(value); }
62 template<typename CapacityReservationIdT = Aws::String>
63 CapacityReservation& WithCapacityReservationId(CapacityReservationIdT&& value) { SetCapacityReservationId(std::forward<CapacityReservationIdT>(value)); return *this;}
65
67
71 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
72 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
73 template<typename OwnerIdT = Aws::String>
74 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
75 template<typename OwnerIdT = Aws::String>
76 CapacityReservation& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetCapacityReservationArn() const { return m_capacityReservationArn; }
84 inline bool CapacityReservationArnHasBeenSet() const { return m_capacityReservationArnHasBeenSet; }
85 template<typename CapacityReservationArnT = Aws::String>
86 void SetCapacityReservationArn(CapacityReservationArnT&& value) { m_capacityReservationArnHasBeenSet = true; m_capacityReservationArn = std::forward<CapacityReservationArnT>(value); }
87 template<typename CapacityReservationArnT = Aws::String>
88 CapacityReservation& WithCapacityReservationArn(CapacityReservationArnT&& value) { SetCapacityReservationArn(std::forward<CapacityReservationArnT>(value)); return *this;}
90
92
95 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
96 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
97 template<typename AvailabilityZoneIdT = Aws::String>
98 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
99 template<typename AvailabilityZoneIdT = Aws::String>
100 CapacityReservation& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
102
104
108 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
109 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
110 template<typename InstanceTypeT = Aws::String>
111 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
112 template<typename InstanceTypeT = Aws::String>
113 CapacityReservation& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
115
117
121 inline CapacityReservationInstancePlatform GetInstancePlatform() const { return m_instancePlatform; }
122 inline bool InstancePlatformHasBeenSet() const { return m_instancePlatformHasBeenSet; }
123 inline void SetInstancePlatform(CapacityReservationInstancePlatform value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = value; }
126
128
131 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
132 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
133 template<typename AvailabilityZoneT = Aws::String>
134 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
135 template<typename AvailabilityZoneT = Aws::String>
136 CapacityReservation& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
138
140
149 inline CapacityReservationTenancy GetTenancy() const { return m_tenancy; }
150 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
151 inline void SetTenancy(CapacityReservationTenancy value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
154
156
160 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
161 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
162 inline void SetTotalInstanceCount(int value) { m_totalInstanceCountHasBeenSet = true; m_totalInstanceCount = value; }
163 inline CapacityReservation& WithTotalInstanceCount(int value) { SetTotalInstanceCount(value); return *this;}
165
167
171 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
172 inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; }
173 inline void SetAvailableInstanceCount(int value) { m_availableInstanceCountHasBeenSet = true; m_availableInstanceCount = value; }
176
178
185 inline bool GetEbsOptimized() const { return m_ebsOptimized; }
186 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
187 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
188 inline CapacityReservation& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
190
192
195 inline bool GetEphemeralStorage() const { return m_ephemeralStorage; }
196 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
197 inline void SetEphemeralStorage(bool value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
198 inline CapacityReservation& WithEphemeralStorage(bool value) { SetEphemeralStorage(value); return *this;}
200
202
233 inline CapacityReservationState GetState() const { return m_state; }
234 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
235 inline void SetState(CapacityReservationState value) { m_stateHasBeenSet = true; m_state = value; }
236 inline CapacityReservation& WithState(CapacityReservationState value) { SetState(value); return *this;}
238
240
243 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
244 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
245 template<typename StartDateT = Aws::Utils::DateTime>
246 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
247 template<typename StartDateT = Aws::Utils::DateTime>
248 CapacityReservation& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
250
252
258 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
259 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
260 template<typename EndDateT = Aws::Utils::DateTime>
261 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
262 template<typename EndDateT = Aws::Utils::DateTime>
263 CapacityReservation& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
265
267
274 inline EndDateType GetEndDateType() const { return m_endDateType; }
275 inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
276 inline void SetEndDateType(EndDateType value) { m_endDateTypeHasBeenSet = true; m_endDateType = value; }
277 inline CapacityReservation& WithEndDateType(EndDateType value) { SetEndDateType(value); return *this;}
279
281
293 inline InstanceMatchCriteria GetInstanceMatchCriteria() const { return m_instanceMatchCriteria; }
294 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
295 inline void SetInstanceMatchCriteria(InstanceMatchCriteria value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = value; }
298
300
303 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
304 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
305 template<typename CreateDateT = Aws::Utils::DateTime>
306 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
307 template<typename CreateDateT = Aws::Utils::DateTime>
308 CapacityReservation& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
310
312
315 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
316 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
317 template<typename TagsT = Aws::Vector<Tag>>
318 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
319 template<typename TagsT = Aws::Vector<Tag>>
320 CapacityReservation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
321 template<typename TagsT = Tag>
322 CapacityReservation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
324
326
330 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
331 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
332 template<typename OutpostArnT = Aws::String>
333 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::forward<OutpostArnT>(value); }
334 template<typename OutpostArnT = Aws::String>
335 CapacityReservation& WithOutpostArn(OutpostArnT&& value) { SetOutpostArn(std::forward<OutpostArnT>(value)); return *this;}
337
339
344 inline const Aws::String& GetCapacityReservationFleetId() const { return m_capacityReservationFleetId; }
345 inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
346 template<typename CapacityReservationFleetIdT = Aws::String>
347 void SetCapacityReservationFleetId(CapacityReservationFleetIdT&& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value); }
348 template<typename CapacityReservationFleetIdT = Aws::String>
349 CapacityReservation& WithCapacityReservationFleetId(CapacityReservationFleetIdT&& value) { SetCapacityReservationFleetId(std::forward<CapacityReservationFleetIdT>(value)); return *this;}
351
353
360 inline const Aws::String& GetPlacementGroupArn() const { return m_placementGroupArn; }
361 inline bool PlacementGroupArnHasBeenSet() const { return m_placementGroupArnHasBeenSet; }
362 template<typename PlacementGroupArnT = Aws::String>
363 void SetPlacementGroupArn(PlacementGroupArnT&& value) { m_placementGroupArnHasBeenSet = true; m_placementGroupArn = std::forward<PlacementGroupArnT>(value); }
364 template<typename PlacementGroupArnT = Aws::String>
365 CapacityReservation& WithPlacementGroupArn(PlacementGroupArnT&& value) { SetPlacementGroupArn(std::forward<PlacementGroupArnT>(value)); return *this;}
367
369
372 inline const Aws::Vector<CapacityAllocation>& GetCapacityAllocations() const { return m_capacityAllocations; }
373 inline bool CapacityAllocationsHasBeenSet() const { return m_capacityAllocationsHasBeenSet; }
374 template<typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
375 void SetCapacityAllocations(CapacityAllocationsT&& value) { m_capacityAllocationsHasBeenSet = true; m_capacityAllocations = std::forward<CapacityAllocationsT>(value); }
376 template<typename CapacityAllocationsT = Aws::Vector<CapacityAllocation>>
377 CapacityReservation& WithCapacityAllocations(CapacityAllocationsT&& value) { SetCapacityAllocations(std::forward<CapacityAllocationsT>(value)); return *this;}
378 template<typename CapacityAllocationsT = CapacityAllocation>
379 CapacityReservation& AddCapacityAllocations(CapacityAllocationsT&& value) { m_capacityAllocationsHasBeenSet = true; m_capacityAllocations.emplace_back(std::forward<CapacityAllocationsT>(value)); return *this; }
381
383
386 inline CapacityReservationType GetReservationType() const { return m_reservationType; }
387 inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; }
388 inline void SetReservationType(CapacityReservationType value) { m_reservationTypeHasBeenSet = true; m_reservationType = value; }
391
393
397 inline const Aws::String& GetUnusedReservationBillingOwnerId() const { return m_unusedReservationBillingOwnerId; }
398 inline bool UnusedReservationBillingOwnerIdHasBeenSet() const { return m_unusedReservationBillingOwnerIdHasBeenSet; }
399 template<typename UnusedReservationBillingOwnerIdT = Aws::String>
400 void SetUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) { m_unusedReservationBillingOwnerIdHasBeenSet = true; m_unusedReservationBillingOwnerId = std::forward<UnusedReservationBillingOwnerIdT>(value); }
401 template<typename UnusedReservationBillingOwnerIdT = Aws::String>
402 CapacityReservation& WithUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) { SetUnusedReservationBillingOwnerId(std::forward<UnusedReservationBillingOwnerIdT>(value)); return *this;}
404
406
410 inline const CapacityReservationCommitmentInfo& GetCommitmentInfo() const { return m_commitmentInfo; }
411 inline bool CommitmentInfoHasBeenSet() const { return m_commitmentInfoHasBeenSet; }
412 template<typename CommitmentInfoT = CapacityReservationCommitmentInfo>
413 void SetCommitmentInfo(CommitmentInfoT&& value) { m_commitmentInfoHasBeenSet = true; m_commitmentInfo = std::forward<CommitmentInfoT>(value); }
414 template<typename CommitmentInfoT = CapacityReservationCommitmentInfo>
415 CapacityReservation& WithCommitmentInfo(CommitmentInfoT&& value) { SetCommitmentInfo(std::forward<CommitmentInfoT>(value)); return *this;}
417
419
425 inline CapacityReservationDeliveryPreference GetDeliveryPreference() const { return m_deliveryPreference; }
426 inline bool DeliveryPreferenceHasBeenSet() const { return m_deliveryPreferenceHasBeenSet; }
427 inline void SetDeliveryPreference(CapacityReservationDeliveryPreference value) { m_deliveryPreferenceHasBeenSet = true; m_deliveryPreference = value; }
430
432
435 inline const Aws::String& GetCapacityBlockId() const { return m_capacityBlockId; }
436 inline bool CapacityBlockIdHasBeenSet() const { return m_capacityBlockIdHasBeenSet; }
437 template<typename CapacityBlockIdT = Aws::String>
438 void SetCapacityBlockId(CapacityBlockIdT&& value) { m_capacityBlockIdHasBeenSet = true; m_capacityBlockId = std::forward<CapacityBlockIdT>(value); }
439 template<typename CapacityBlockIdT = Aws::String>
440 CapacityReservation& WithCapacityBlockId(CapacityBlockIdT&& value) { SetCapacityBlockId(std::forward<CapacityBlockIdT>(value)); return *this;}
442 private:
443
444 Aws::String m_capacityReservationId;
445 bool m_capacityReservationIdHasBeenSet = false;
446
447 Aws::String m_ownerId;
448 bool m_ownerIdHasBeenSet = false;
449
450 Aws::String m_capacityReservationArn;
451 bool m_capacityReservationArnHasBeenSet = false;
452
453 Aws::String m_availabilityZoneId;
454 bool m_availabilityZoneIdHasBeenSet = false;
455
456 Aws::String m_instanceType;
457 bool m_instanceTypeHasBeenSet = false;
458
460 bool m_instancePlatformHasBeenSet = false;
461
462 Aws::String m_availabilityZone;
463 bool m_availabilityZoneHasBeenSet = false;
464
466 bool m_tenancyHasBeenSet = false;
467
468 int m_totalInstanceCount{0};
469 bool m_totalInstanceCountHasBeenSet = false;
470
471 int m_availableInstanceCount{0};
472 bool m_availableInstanceCountHasBeenSet = false;
473
474 bool m_ebsOptimized{false};
475 bool m_ebsOptimizedHasBeenSet = false;
476
477 bool m_ephemeralStorage{false};
478 bool m_ephemeralStorageHasBeenSet = false;
479
481 bool m_stateHasBeenSet = false;
482
483 Aws::Utils::DateTime m_startDate{};
484 bool m_startDateHasBeenSet = false;
485
486 Aws::Utils::DateTime m_endDate{};
487 bool m_endDateHasBeenSet = false;
488
489 EndDateType m_endDateType{EndDateType::NOT_SET};
490 bool m_endDateTypeHasBeenSet = false;
491
493 bool m_instanceMatchCriteriaHasBeenSet = false;
494
495 Aws::Utils::DateTime m_createDate{};
496 bool m_createDateHasBeenSet = false;
497
498 Aws::Vector<Tag> m_tags;
499 bool m_tagsHasBeenSet = false;
500
501 Aws::String m_outpostArn;
502 bool m_outpostArnHasBeenSet = false;
503
504 Aws::String m_capacityReservationFleetId;
505 bool m_capacityReservationFleetIdHasBeenSet = false;
506
507 Aws::String m_placementGroupArn;
508 bool m_placementGroupArnHasBeenSet = false;
509
510 Aws::Vector<CapacityAllocation> m_capacityAllocations;
511 bool m_capacityAllocationsHasBeenSet = false;
512
514 bool m_reservationTypeHasBeenSet = false;
515
516 Aws::String m_unusedReservationBillingOwnerId;
517 bool m_unusedReservationBillingOwnerIdHasBeenSet = false;
518
519 CapacityReservationCommitmentInfo m_commitmentInfo;
520 bool m_commitmentInfoHasBeenSet = false;
521
523 bool m_deliveryPreferenceHasBeenSet = false;
524
525 Aws::String m_capacityBlockId;
526 bool m_capacityBlockIdHasBeenSet = false;
527 };
528
529} // namespace Model
530} // namespace EC2
531} // namespace Aws
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 & 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 & 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)
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)
const Aws::String & GetUnusedReservationBillingOwnerId() const
CapacityReservation & WithTotalInstanceCount(int value)
AWS_EC2_API CapacityReservation()=default
CapacityReservation & WithCapacityReservationArn(CapacityReservationArnT &&value)
void SetCapacityBlockId(CapacityBlockIdT &&value)
CapacityReservation & WithInstanceType(InstanceTypeT &&value)
CapacityReservation & WithCapacityReservationId(CapacityReservationIdT &&value)
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