AWS SDK for C++  1.9.132
AWS SDK for C++
CapacityReservation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/model/Tag.h>
18 #include <utility>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
40  {
41  public:
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
49 
53  inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
54 
58  inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
59 
63  inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
64 
68  inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
69 
73  inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
74 
78  inline CapacityReservation& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;}
79 
83  inline CapacityReservation& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;}
84 
88  inline CapacityReservation& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
89 
90 
95  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
96 
101  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
102 
107  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
108 
113  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
114 
119  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
120 
125  inline CapacityReservation& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
126 
131  inline CapacityReservation& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
132 
137  inline CapacityReservation& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
138 
139 
143  inline const Aws::String& GetCapacityReservationArn() const{ return m_capacityReservationArn; }
144 
148  inline bool CapacityReservationArnHasBeenSet() const { return m_capacityReservationArnHasBeenSet; }
149 
153  inline void SetCapacityReservationArn(const Aws::String& value) { m_capacityReservationArnHasBeenSet = true; m_capacityReservationArn = value; }
154 
158  inline void SetCapacityReservationArn(Aws::String&& value) { m_capacityReservationArnHasBeenSet = true; m_capacityReservationArn = std::move(value); }
159 
163  inline void SetCapacityReservationArn(const char* value) { m_capacityReservationArnHasBeenSet = true; m_capacityReservationArn.assign(value); }
164 
168  inline CapacityReservation& WithCapacityReservationArn(const Aws::String& value) { SetCapacityReservationArn(value); return *this;}
169 
173  inline CapacityReservation& WithCapacityReservationArn(Aws::String&& value) { SetCapacityReservationArn(std::move(value)); return *this;}
174 
178  inline CapacityReservation& WithCapacityReservationArn(const char* value) { SetCapacityReservationArn(value); return *this;}
179 
180 
184  inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
185 
189  inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
190 
194  inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
195 
199  inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
200 
204  inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
205 
209  inline CapacityReservation& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
210 
214  inline CapacityReservation& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
215 
219  inline CapacityReservation& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
220 
221 
226  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
227 
232  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
233 
238  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
239 
244  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
245 
250  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
251 
256  inline CapacityReservation& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
257 
262  inline CapacityReservation& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
263 
268  inline CapacityReservation& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
269 
270 
275  inline const CapacityReservationInstancePlatform& GetInstancePlatform() const{ return m_instancePlatform; }
276 
281  inline bool InstancePlatformHasBeenSet() const { return m_instancePlatformHasBeenSet; }
282 
287  inline void SetInstancePlatform(const CapacityReservationInstancePlatform& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = value; }
288 
293  inline void SetInstancePlatform(CapacityReservationInstancePlatform&& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = std::move(value); }
294 
299  inline CapacityReservation& WithInstancePlatform(const CapacityReservationInstancePlatform& value) { SetInstancePlatform(value); return *this;}
300 
305  inline CapacityReservation& WithInstancePlatform(CapacityReservationInstancePlatform&& value) { SetInstancePlatform(std::move(value)); return *this;}
306 
307 
311  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
312 
316  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
317 
321  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
322 
326  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
327 
331  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
332 
336  inline CapacityReservation& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
337 
341  inline CapacityReservation& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
342 
346  inline CapacityReservation& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
347 
348 
358  inline const CapacityReservationTenancy& GetTenancy() const{ return m_tenancy; }
359 
369  inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
370 
380  inline void SetTenancy(const CapacityReservationTenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
381 
391  inline void SetTenancy(CapacityReservationTenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
392 
402  inline CapacityReservation& WithTenancy(const CapacityReservationTenancy& value) { SetTenancy(value); return *this;}
403 
413  inline CapacityReservation& WithTenancy(CapacityReservationTenancy&& value) { SetTenancy(std::move(value)); return *this;}
414 
415 
420  inline int GetTotalInstanceCount() const{ return m_totalInstanceCount; }
421 
426  inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
427 
432  inline void SetTotalInstanceCount(int value) { m_totalInstanceCountHasBeenSet = true; m_totalInstanceCount = value; }
433 
438  inline CapacityReservation& WithTotalInstanceCount(int value) { SetTotalInstanceCount(value); return *this;}
439 
440 
445  inline int GetAvailableInstanceCount() const{ return m_availableInstanceCount; }
446 
451  inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; }
452 
457  inline void SetAvailableInstanceCount(int value) { m_availableInstanceCountHasBeenSet = true; m_availableInstanceCount = value; }
458 
463  inline CapacityReservation& WithAvailableInstanceCount(int value) { SetAvailableInstanceCount(value); return *this;}
464 
465 
473  inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
474 
482  inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
483 
491  inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
492 
500  inline CapacityReservation& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
501 
502 
507  inline bool GetEphemeralStorage() const{ return m_ephemeralStorage; }
508 
513  inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
514 
519  inline void SetEphemeralStorage(bool value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
520 
525  inline CapacityReservation& WithEphemeralStorage(bool value) { SetEphemeralStorage(value); return *this;}
526 
527 
543  inline const CapacityReservationState& GetState() const{ return m_state; }
544 
560  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
561 
577  inline void SetState(const CapacityReservationState& value) { m_stateHasBeenSet = true; m_state = value; }
578 
594  inline void SetState(CapacityReservationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
595 
611  inline CapacityReservation& WithState(const CapacityReservationState& value) { SetState(value); return *this;}
612 
628  inline CapacityReservation& WithState(CapacityReservationState&& value) { SetState(std::move(value)); return *this;}
629 
630 
634  inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
635 
639  inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
640 
644  inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
645 
649  inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
650 
654  inline CapacityReservation& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
655 
659  inline CapacityReservation& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
660 
661 
668  inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
669 
676  inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
677 
684  inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
685 
692  inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
693 
700  inline CapacityReservation& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
701 
708  inline CapacityReservation& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
709 
710 
718  inline const EndDateType& GetEndDateType() const{ return m_endDateType; }
719 
727  inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
728 
736  inline void SetEndDateType(const EndDateType& value) { m_endDateTypeHasBeenSet = true; m_endDateType = value; }
737 
745  inline void SetEndDateType(EndDateType&& value) { m_endDateTypeHasBeenSet = true; m_endDateType = std::move(value); }
746 
754  inline CapacityReservation& WithEndDateType(const EndDateType& value) { SetEndDateType(value); return *this;}
755 
763  inline CapacityReservation& WithEndDateType(EndDateType&& value) { SetEndDateType(std::move(value)); return *this;}
764 
765 
778  inline const InstanceMatchCriteria& GetInstanceMatchCriteria() const{ return m_instanceMatchCriteria; }
779 
792  inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
793 
806  inline void SetInstanceMatchCriteria(const InstanceMatchCriteria& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = value; }
807 
820  inline void SetInstanceMatchCriteria(InstanceMatchCriteria&& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = std::move(value); }
821 
834  inline CapacityReservation& WithInstanceMatchCriteria(const InstanceMatchCriteria& value) { SetInstanceMatchCriteria(value); return *this;}
835 
848  inline CapacityReservation& WithInstanceMatchCriteria(InstanceMatchCriteria&& value) { SetInstanceMatchCriteria(std::move(value)); return *this;}
849 
850 
854  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
855 
859  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
860 
864  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
865 
869  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
870 
874  inline CapacityReservation& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
875 
879  inline CapacityReservation& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
880 
881 
885  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
886 
890  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
891 
895  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
896 
900  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
901 
905  inline CapacityReservation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
906 
910  inline CapacityReservation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
911 
915  inline CapacityReservation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
916 
920  inline CapacityReservation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
921 
922 
927  inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
928 
933  inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
934 
939  inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
940 
945  inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
946 
951  inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
952 
957  inline CapacityReservation& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
958 
963  inline CapacityReservation& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
964 
969  inline CapacityReservation& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
970 
971 
977  inline const Aws::String& GetCapacityReservationFleetId() const{ return m_capacityReservationFleetId; }
978 
984  inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
985 
991  inline void SetCapacityReservationFleetId(const Aws::String& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = value; }
992 
998  inline void SetCapacityReservationFleetId(Aws::String&& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = std::move(value); }
999 
1005  inline void SetCapacityReservationFleetId(const char* value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId.assign(value); }
1006 
1012  inline CapacityReservation& WithCapacityReservationFleetId(const Aws::String& value) { SetCapacityReservationFleetId(value); return *this;}
1013 
1019  inline CapacityReservation& WithCapacityReservationFleetId(Aws::String&& value) { SetCapacityReservationFleetId(std::move(value)); return *this;}
1020 
1026  inline CapacityReservation& WithCapacityReservationFleetId(const char* value) { SetCapacityReservationFleetId(value); return *this;}
1027 
1028  private:
1029 
1030  Aws::String m_capacityReservationId;
1031  bool m_capacityReservationIdHasBeenSet;
1032 
1033  Aws::String m_ownerId;
1034  bool m_ownerIdHasBeenSet;
1035 
1036  Aws::String m_capacityReservationArn;
1037  bool m_capacityReservationArnHasBeenSet;
1038 
1039  Aws::String m_availabilityZoneId;
1040  bool m_availabilityZoneIdHasBeenSet;
1041 
1042  Aws::String m_instanceType;
1043  bool m_instanceTypeHasBeenSet;
1044 
1045  CapacityReservationInstancePlatform m_instancePlatform;
1046  bool m_instancePlatformHasBeenSet;
1047 
1048  Aws::String m_availabilityZone;
1049  bool m_availabilityZoneHasBeenSet;
1050 
1051  CapacityReservationTenancy m_tenancy;
1052  bool m_tenancyHasBeenSet;
1053 
1054  int m_totalInstanceCount;
1055  bool m_totalInstanceCountHasBeenSet;
1056 
1057  int m_availableInstanceCount;
1058  bool m_availableInstanceCountHasBeenSet;
1059 
1060  bool m_ebsOptimized;
1061  bool m_ebsOptimizedHasBeenSet;
1062 
1063  bool m_ephemeralStorage;
1064  bool m_ephemeralStorageHasBeenSet;
1065 
1066  CapacityReservationState m_state;
1067  bool m_stateHasBeenSet;
1068 
1069  Aws::Utils::DateTime m_startDate;
1070  bool m_startDateHasBeenSet;
1071 
1072  Aws::Utils::DateTime m_endDate;
1073  bool m_endDateHasBeenSet;
1074 
1075  EndDateType m_endDateType;
1076  bool m_endDateTypeHasBeenSet;
1077 
1078  InstanceMatchCriteria m_instanceMatchCriteria;
1079  bool m_instanceMatchCriteriaHasBeenSet;
1080 
1081  Aws::Utils::DateTime m_createDate;
1082  bool m_createDateHasBeenSet;
1083 
1084  Aws::Vector<Tag> m_tags;
1085  bool m_tagsHasBeenSet;
1086 
1087  Aws::String m_outpostArn;
1088  bool m_outpostArnHasBeenSet;
1089 
1090  Aws::String m_capacityReservationFleetId;
1091  bool m_capacityReservationFleetIdHasBeenSet;
1092  };
1093 
1094 } // namespace Model
1095 } // namespace EC2
1096 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::CapacityReservation::EbsOptimizedHasBeenSet
bool EbsOptimizedHasBeenSet() const
Definition: CapacityReservation.h:482
Aws::EC2::Model::CapacityReservation::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CapacityReservation.h:890
Aws::EC2::Model::CapacityReservation::GetCreateDate
const Aws::Utils::DateTime & GetCreateDate() const
Definition: CapacityReservation.h:854
Aws::EC2::Model::CapacityReservation::OutpostArnHasBeenSet
bool OutpostArnHasBeenSet() const
Definition: CapacityReservation.h:933
Aws::EC2::Model::CapacityReservation::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: CapacityReservation.h:95
Aws::EC2::Model::CapacityReservation::WithCapacityReservationFleetId
CapacityReservation & WithCapacityReservationFleetId(const Aws::String &value)
Definition: CapacityReservation.h:1012
Aws::EC2::Model::CapacityReservation::SetInstanceType
void SetInstanceType(const char *value)
Definition: CapacityReservation.h:250
Aws::EC2::Model::CapacityReservation::SetOutpostArn
void SetOutpostArn(const char *value)
Definition: CapacityReservation.h:951
Aws::EC2::Model::CapacityReservation::SetCapacityReservationFleetId
void SetCapacityReservationFleetId(const char *value)
Definition: CapacityReservation.h:1005
Aws::EC2::Model::CapacityReservation::operator=
CapacityReservation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservation::GetCapacityReservationId
const Aws::String & GetCapacityReservationId() const
Definition: CapacityReservation.h:53
Aws::EC2::Model::CapacityReservation::WithInstanceType
CapacityReservation & WithInstanceType(const Aws::String &value)
Definition: CapacityReservation.h:256
Aws::EC2::Model::CapacityReservation::SetCapacityReservationId
void SetCapacityReservationId(const char *value)
Definition: CapacityReservation.h:73
Aws::EC2::Model::CapacityReservation::WithInstancePlatform
CapacityReservation & WithInstancePlatform(const CapacityReservationInstancePlatform &value)
Definition: CapacityReservation.h:299
Aws::EC2::Model::CapacityReservation::SetEndDate
void SetEndDate(const Aws::Utils::DateTime &value)
Definition: CapacityReservation.h:684
Aws::EC2::Model::CapacityReservation::WithEbsOptimized
CapacityReservation & WithEbsOptimized(bool value)
Definition: CapacityReservation.h:500
Aws::EC2::Model::CapacityReservation::WithCapacityReservationFleetId
CapacityReservation & WithCapacityReservationFleetId(Aws::String &&value)
Definition: CapacityReservation.h:1019
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::CapacityReservation::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CapacityReservation.h:900
Aws::EC2::Model::CapacityReservation::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: CapacityReservation.h:107
Aws::EC2::Model::CapacityReservation::WithEndDate
CapacityReservation & WithEndDate(Aws::Utils::DateTime &&value)
Definition: CapacityReservation.h:708
Aws::EC2::Model::CapacityReservation::CapacityReservationFleetIdHasBeenSet
bool CapacityReservationFleetIdHasBeenSet() const
Definition: CapacityReservation.h:984
Aws::EC2::Model::CapacityReservation::SetEndDateType
void SetEndDateType(const EndDateType &value)
Definition: CapacityReservation.h:736
Aws::EC2::Model::CapacityReservation::WithStartDate
CapacityReservation & WithStartDate(const Aws::Utils::DateTime &value)
Definition: CapacityReservation.h:654
Aws::EC2::Model::CapacityReservation::GetTenancy
const CapacityReservationTenancy & GetTenancy() const
Definition: CapacityReservation.h:358
Aws::EC2::Model::CapacityReservation::SetTenancy
void SetTenancy(CapacityReservationTenancy &&value)
Definition: CapacityReservation.h:391
DateTime.h
Aws::EC2::Model::CapacityReservation::CapacityReservation
CapacityReservation()
Aws::EC2::Model::CapacityReservation::WithCapacityReservationId
CapacityReservation & WithCapacityReservationId(Aws::String &&value)
Definition: CapacityReservation.h:83
Aws::EC2::Model::CapacityReservation::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: CapacityReservation.h:101
Aws::EC2::Model::CapacityReservation::SetEbsOptimized
void SetEbsOptimized(bool value)
Definition: CapacityReservation.h:491
Aws::EC2::Model::CapacityReservation::SetAvailableInstanceCount
void SetAvailableInstanceCount(int value)
Definition: CapacityReservation.h:457
Aws::EC2::Model::CapacityReservation::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CapacityReservation.h:885
Aws::EC2::Model::CapacityReservation::WithInstanceMatchCriteria
CapacityReservation & WithInstanceMatchCriteria(const InstanceMatchCriteria &value)
Definition: CapacityReservation.h:834
Aws::EC2::Model::CapacityReservation
Definition: CapacityReservation.h:40
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::EndDateType
EndDateType
Definition: EndDateType.h:17
Aws::EC2::Model::CapacityReservation::WithAvailableInstanceCount
CapacityReservation & WithAvailableInstanceCount(int value)
Definition: CapacityReservation.h:463
Aws::EC2::Model::CapacityReservation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CapacityReservation::SetStartDate
void SetStartDate(Aws::Utils::DateTime &&value)
Definition: CapacityReservation.h:649
Aws::EC2::Model::CapacityReservation::WithCapacityReservationFleetId
CapacityReservation & WithCapacityReservationFleetId(const char *value)
Definition: CapacityReservation.h:1026
Aws::EC2::Model::CapacityReservation::WithOwnerId
CapacityReservation & WithOwnerId(const Aws::String &value)
Definition: CapacityReservation.h:125
Aws::EC2::Model::CapacityReservation::WithState
CapacityReservation & WithState(const CapacityReservationState &value)
Definition: CapacityReservation.h:611
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
EndDateType.h
Aws::EC2::Model::CapacityReservation::WithAvailabilityZone
CapacityReservation & WithAvailabilityZone(const Aws::String &value)
Definition: CapacityReservation.h:336
Aws::EC2::Model::CapacityReservation::TenancyHasBeenSet
bool TenancyHasBeenSet() const
Definition: CapacityReservation.h:369
Aws::EC2::Model::CapacityReservation::GetOutpostArn
const Aws::String & GetOutpostArn() const
Definition: CapacityReservation.h:927
AWSStreamFwd.h
Aws::EC2::Model::CapacityReservation::TotalInstanceCountHasBeenSet
bool TotalInstanceCountHasBeenSet() const
Definition: CapacityReservation.h:426
Aws::EC2::Model::CapacityReservation::WithEphemeralStorage
CapacityReservation & WithEphemeralStorage(bool value)
Definition: CapacityReservation.h:525
Aws::EC2::Model::CapacityReservation::WithStartDate
CapacityReservation & WithStartDate(Aws::Utils::DateTime &&value)
Definition: CapacityReservation.h:659
AWSVector.h
Tag.h
Aws::EC2::Model::CapacityReservation::EndDateTypeHasBeenSet
bool EndDateTypeHasBeenSet() const
Definition: CapacityReservation.h:727
Aws::EC2::Model::CapacityReservation::InstanceMatchCriteriaHasBeenSet
bool InstanceMatchCriteriaHasBeenSet() const
Definition: CapacityReservation.h:792
Aws::EC2::Model::CapacityReservation::WithEndDateType
CapacityReservation & WithEndDateType(EndDateType &&value)
Definition: CapacityReservation.h:763
Aws::EC2::Model::CapacityReservation::GetCapacityReservationFleetId
const Aws::String & GetCapacityReservationFleetId() const
Definition: CapacityReservation.h:977
Aws::EC2::Model::CapacityReservation::GetAvailabilityZoneId
const Aws::String & GetAvailabilityZoneId() const
Definition: CapacityReservation.h:184
Aws::EC2::Model::CapacityReservation::WithTenancy
CapacityReservation & WithTenancy(const CapacityReservationTenancy &value)
Definition: CapacityReservation.h:402
Aws::EC2::Model::CapacityReservation::EphemeralStorageHasBeenSet
bool EphemeralStorageHasBeenSet() const
Definition: CapacityReservation.h:513
Aws::EC2::Model::CapacityReservation::AvailableInstanceCountHasBeenSet
bool AvailableInstanceCountHasBeenSet() const
Definition: CapacityReservation.h:451
Aws::EC2::Model::CapacityReservation::EndDateHasBeenSet
bool EndDateHasBeenSet() const
Definition: CapacityReservation.h:676
Aws::EC2::Model::CapacityReservation::WithCreateDate
CapacityReservation & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: CapacityReservation.h:874
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CapacityReservation::SetCreateDate
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: CapacityReservation.h:864
Aws::EC2::Model::CapacityReservation::GetStartDate
const Aws::Utils::DateTime & GetStartDate() const
Definition: CapacityReservation.h:634
Aws::EC2::Model::CapacityReservation::GetEbsOptimized
bool GetEbsOptimized() const
Definition: CapacityReservation.h:473
Aws::EC2::Model::CapacityReservation::SetTotalInstanceCount
void SetTotalInstanceCount(int value)
Definition: CapacityReservation.h:432
Aws::EC2::Model::CapacityReservation::SetInstanceMatchCriteria
void SetInstanceMatchCriteria(InstanceMatchCriteria &&value)
Definition: CapacityReservation.h:820
Aws::EC2::Model::CapacityReservation::WithTenancy
CapacityReservation & WithTenancy(CapacityReservationTenancy &&value)
Definition: CapacityReservation.h:413
Aws::EC2::Model::CapacityReservation::WithAvailabilityZoneId
CapacityReservation & WithAvailabilityZoneId(Aws::String &&value)
Definition: CapacityReservation.h:214
Aws::EC2::Model::CapacityReservation::GetAvailableInstanceCount
int GetAvailableInstanceCount() const
Definition: CapacityReservation.h:445
Aws::EC2::Model::CapacityReservation::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: CapacityReservation.h:113
Aws::EC2::Model::CapacityReservationState
CapacityReservationState
Definition: CapacityReservationState.h:17
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CapacityReservation::SetOutpostArn
void SetOutpostArn(const Aws::String &value)
Definition: CapacityReservation.h:939
Aws::EC2::Model::CapacityReservation::WithTags
CapacityReservation & WithTags(const Aws::Vector< Tag > &value)
Definition: CapacityReservation.h:905
Aws::EC2::Model::CapacityReservation::GetInstanceMatchCriteria
const InstanceMatchCriteria & GetInstanceMatchCriteria() const
Definition: CapacityReservation.h:778
Aws::EC2::Model::CapacityReservation::StateHasBeenSet
bool StateHasBeenSet() const
Definition: CapacityReservation.h:560
Aws::EC2::Model::CapacityReservation::SetAvailabilityZoneId
void SetAvailabilityZoneId(const char *value)
Definition: CapacityReservation.h:204
Aws::EC2::Model::CapacityReservation::WithCapacityReservationArn
CapacityReservation & WithCapacityReservationArn(const char *value)
Definition: CapacityReservation.h:178
Aws::EC2::Model::CapacityReservation::WithAvailabilityZoneId
CapacityReservation & WithAvailabilityZoneId(const Aws::String &value)
Definition: CapacityReservation.h:209
Aws::EC2::Model::CapacityReservation::SetCapacityReservationArn
void SetCapacityReservationArn(const char *value)
Definition: CapacityReservation.h:163
Aws::EC2::Model::CapacityReservationInstancePlatform
CapacityReservationInstancePlatform
Definition: CapacityReservationInstancePlatform.h:17
Aws::EC2::Model::CapacityReservation::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: CapacityReservation.h:311
CapacityReservationState.h
Aws::EC2::Model::CapacityReservation::WithTotalInstanceCount
CapacityReservation & WithTotalInstanceCount(int value)
Definition: CapacityReservation.h:438
Aws::EC2::Model::CapacityReservation::SetInstancePlatform
void SetInstancePlatform(const CapacityReservationInstancePlatform &value)
Definition: CapacityReservation.h:287
Aws::EC2::Model::CapacityReservation::CapacityReservation
CapacityReservation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CapacityReservation::CapacityReservationArnHasBeenSet
bool CapacityReservationArnHasBeenSet() const
Definition: CapacityReservation.h:148
AWSString.h
Aws::EC2::Model::CapacityReservation::WithCapacityReservationArn
CapacityReservation & WithCapacityReservationArn(const Aws::String &value)
Definition: CapacityReservation.h:168
Aws::EC2::Model::CapacityReservation::GetEndDateType
const EndDateType & GetEndDateType() const
Definition: CapacityReservation.h:718
Aws::EC2::Model::CapacityReservation::SetState
void SetState(const CapacityReservationState &value)
Definition: CapacityReservation.h:577
Aws::EC2::Model::CapacityReservation::CapacityReservationIdHasBeenSet
bool CapacityReservationIdHasBeenSet() const
Definition: CapacityReservation.h:58
Aws::EC2::Model::CapacityReservation::SetAvailabilityZoneId
void SetAvailabilityZoneId(const Aws::String &value)
Definition: CapacityReservation.h:194
Aws::EC2::Model::CapacityReservationTenancy
CapacityReservationTenancy
Definition: CapacityReservationTenancy.h:17
Aws::EC2::Model::CapacityReservation::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: CapacityReservation.h:316
Aws::EC2::Model::CapacityReservation::WithCapacityReservationArn
CapacityReservation & WithCapacityReservationArn(Aws::String &&value)
Definition: CapacityReservation.h:173
Aws::EC2::Model::CapacityReservation::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: CapacityReservation.h:226
Aws::EC2::Model::CapacityReservation::SetEndDateType
void SetEndDateType(EndDateType &&value)
Definition: CapacityReservation.h:745
Aws::EC2::Model::CapacityReservation::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CapacityReservation.h:895
Aws::EC2::Model::CapacityReservation::WithCreateDate
CapacityReservation & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: CapacityReservation.h:879
Aws::EC2::Model::CapacityReservation::WithInstanceMatchCriteria
CapacityReservation & WithInstanceMatchCriteria(InstanceMatchCriteria &&value)
Definition: CapacityReservation.h:848
Aws::EC2::Model::CapacityReservation::WithOutpostArn
CapacityReservation & WithOutpostArn(const Aws::String &value)
Definition: CapacityReservation.h:957
Aws::EC2::Model::CapacityReservation::SetCapacityReservationId
void SetCapacityReservationId(Aws::String &&value)
Definition: CapacityReservation.h:68
Aws::EC2::Model::CapacityReservation::WithState
CapacityReservation & WithState(CapacityReservationState &&value)
Definition: CapacityReservation.h:628
Aws::EC2::Model::CapacityReservation::WithOutpostArn
CapacityReservation & WithOutpostArn(const char *value)
Definition: CapacityReservation.h:969
Aws::EC2::Model::CapacityReservation::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: CapacityReservation.h:232
Aws::EC2::Model::CapacityReservation::GetInstancePlatform
const CapacityReservationInstancePlatform & GetInstancePlatform() const
Definition: CapacityReservation.h:275
Aws::EC2::Model::CapacityReservation::WithOwnerId
CapacityReservation & WithOwnerId(const char *value)
Definition: CapacityReservation.h:137
Aws::EC2::Model::CapacityReservation::SetInstanceMatchCriteria
void SetInstanceMatchCriteria(const InstanceMatchCriteria &value)
Definition: CapacityReservation.h:806
Aws::EC2::Model::CapacityReservation::WithTags
CapacityReservation & WithTags(Aws::Vector< Tag > &&value)
Definition: CapacityReservation.h:910
Aws::EC2::Model::CapacityReservation::SetState
void SetState(CapacityReservationState &&value)
Definition: CapacityReservation.h:594
Aws::EC2::Model::CapacityReservation::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: CapacityReservation.h:238
Aws::EC2::Model::CapacityReservation::SetCapacityReservationId
void SetCapacityReservationId(const Aws::String &value)
Definition: CapacityReservation.h:63
Aws::EC2::Model::CapacityReservation::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: CapacityReservation.h:321
Aws::EC2::Model::CapacityReservation::CreateDateHasBeenSet
bool CreateDateHasBeenSet() const
Definition: CapacityReservation.h:859
Aws::EC2::Model::CapacityReservation::SetCapacityReservationFleetId
void SetCapacityReservationFleetId(Aws::String &&value)
Definition: CapacityReservation.h:998
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CapacityReservation::WithInstanceType
CapacityReservation & WithInstanceType(Aws::String &&value)
Definition: CapacityReservation.h:262
Aws::EC2::Model::CapacityReservation::WithAvailabilityZone
CapacityReservation & WithAvailabilityZone(Aws::String &&value)
Definition: CapacityReservation.h:341
Aws::EC2::Model::CapacityReservation::SetAvailabilityZoneId
void SetAvailabilityZoneId(Aws::String &&value)
Definition: CapacityReservation.h:199
Aws::EC2::Model::CapacityReservation::SetCreateDate
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: CapacityReservation.h:869
Aws::EC2::Model::CapacityReservation::AddTags
CapacityReservation & AddTags(const Tag &value)
Definition: CapacityReservation.h:915
Aws::EC2::Model::CapacityReservation::SetInstancePlatform
void SetInstancePlatform(CapacityReservationInstancePlatform &&value)
Definition: CapacityReservation.h:293
CapacityReservationInstancePlatform.h
Aws::EC2::Model::CapacityReservation::GetCapacityReservationArn
const Aws::String & GetCapacityReservationArn() const
Definition: CapacityReservation.h:143
Aws::EC2::Model::CapacityReservation::AddTags
CapacityReservation & AddTags(Tag &&value)
Definition: CapacityReservation.h:920
Aws::EC2::Model::CapacityReservation::GetTotalInstanceCount
int GetTotalInstanceCount() const
Definition: CapacityReservation.h:420
Aws::EC2::Model::CapacityReservation::SetTenancy
void SetTenancy(const CapacityReservationTenancy &value)
Definition: CapacityReservation.h:380
Aws::EC2::Model::CapacityReservation::WithOutpostArn
CapacityReservation & WithOutpostArn(Aws::String &&value)
Definition: CapacityReservation.h:963
Aws::EC2::Model::CapacityReservation::SetEphemeralStorage
void SetEphemeralStorage(bool value)
Definition: CapacityReservation.h:519
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CapacityReservation::SetEndDate
void SetEndDate(Aws::Utils::DateTime &&value)
Definition: CapacityReservation.h:692
Aws::EC2::Model::CapacityReservation::WithCapacityReservationId
CapacityReservation & WithCapacityReservationId(const char *value)
Definition: CapacityReservation.h:88
Aws::EC2::Model::CapacityReservation::WithEndDateType
CapacityReservation & WithEndDateType(const EndDateType &value)
Definition: CapacityReservation.h:754
Aws::EC2::Model::InstanceMatchCriteria
InstanceMatchCriteria
Definition: InstanceMatchCriteria.h:17
Aws::EC2::Model::CapacityReservation::WithInstanceType
CapacityReservation & WithInstanceType(const char *value)
Definition: CapacityReservation.h:268
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::CapacityReservation::WithAvailabilityZone
CapacityReservation & WithAvailabilityZone(const char *value)
Definition: CapacityReservation.h:346
Aws::EC2::Model::CapacityReservation::GetState
const CapacityReservationState & GetState() const
Definition: CapacityReservation.h:543
Aws::EC2::Model::CapacityReservation::WithAvailabilityZoneId
CapacityReservation & WithAvailabilityZoneId(const char *value)
Definition: CapacityReservation.h:219
Aws::EC2::Model::CapacityReservation::WithInstancePlatform
CapacityReservation & WithInstancePlatform(CapacityReservationInstancePlatform &&value)
Definition: CapacityReservation.h:305
Aws::EC2::Model::CapacityReservation::WithCapacityReservationId
CapacityReservation & WithCapacityReservationId(const Aws::String &value)
Definition: CapacityReservation.h:78
Aws::EC2::Model::CapacityReservation::StartDateHasBeenSet
bool StartDateHasBeenSet() const
Definition: CapacityReservation.h:639
Aws::EC2::Model::CapacityReservation::SetStartDate
void SetStartDate(const Aws::Utils::DateTime &value)
Definition: CapacityReservation.h:644
InstanceMatchCriteria.h
Aws::EC2::Model::CapacityReservation::WithEndDate
CapacityReservation & WithEndDate(const Aws::Utils::DateTime &value)
Definition: CapacityReservation.h:700
Aws::EC2::Model::CapacityReservation::SetOutpostArn
void SetOutpostArn(Aws::String &&value)
Definition: CapacityReservation.h:945
Aws::EC2::Model::CapacityReservation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CapacityReservation::SetCapacityReservationArn
void SetCapacityReservationArn(Aws::String &&value)
Definition: CapacityReservation.h:158
EC2_EXPORTS.h
Aws::EC2::Model::CapacityReservation::SetCapacityReservationArn
void SetCapacityReservationArn(const Aws::String &value)
Definition: CapacityReservation.h:153
Aws::EC2::Model::CapacityReservation::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: CapacityReservation.h:326
Aws::EC2::Model::CapacityReservation::GetEphemeralStorage
bool GetEphemeralStorage() const
Definition: CapacityReservation.h:507
Aws::EC2::Model::CapacityReservation::AvailabilityZoneIdHasBeenSet
bool AvailabilityZoneIdHasBeenSet() const
Definition: CapacityReservation.h:189
Aws::EC2::Model::CapacityReservation::WithOwnerId
CapacityReservation & WithOwnerId(Aws::String &&value)
Definition: CapacityReservation.h:131
CapacityReservationTenancy.h
Aws::EC2::Model::CapacityReservation::SetOwnerId
void SetOwnerId(const char *value)
Definition: CapacityReservation.h:119
Aws::EC2::Model::CapacityReservation::SetCapacityReservationFleetId
void SetCapacityReservationFleetId(const Aws::String &value)
Definition: CapacityReservation.h:991
Aws::EC2::Model::CapacityReservation::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: CapacityReservation.h:331
Aws::EC2::Model::CapacityReservation::InstancePlatformHasBeenSet
bool InstancePlatformHasBeenSet() const
Definition: CapacityReservation.h:281
Aws::EC2::Model::CapacityReservation::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: CapacityReservation.h:244
Aws::EC2::Model::CapacityReservation::GetEndDate
const Aws::Utils::DateTime & GetEndDate() const
Definition: CapacityReservation.h:668