AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityReservationFleet.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/CapacityReservationFleetState.h>
11#include <aws/ec2/model/FleetCapacityReservationTenancy.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/FleetInstanceMatchCriteria.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/ec2/model/FleetCapacityReservation.h>
16#include <aws/ec2/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace EC2
29{
30namespace Model
31{
32
39 {
40 public:
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetCapacityReservationFleetId() const{ return m_capacityReservationFleetId; }
54 inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
55 inline void SetCapacityReservationFleetId(const Aws::String& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = value; }
56 inline void SetCapacityReservationFleetId(Aws::String&& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = std::move(value); }
57 inline void SetCapacityReservationFleetId(const char* value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId.assign(value); }
62
64
67 inline const Aws::String& GetCapacityReservationFleetArn() const{ return m_capacityReservationFleetArn; }
68 inline bool CapacityReservationFleetArnHasBeenSet() const { return m_capacityReservationFleetArnHasBeenSet; }
69 inline void SetCapacityReservationFleetArn(const Aws::String& value) { m_capacityReservationFleetArnHasBeenSet = true; m_capacityReservationFleetArn = value; }
70 inline void SetCapacityReservationFleetArn(Aws::String&& value) { m_capacityReservationFleetArnHasBeenSet = true; m_capacityReservationFleetArn = std::move(value); }
71 inline void SetCapacityReservationFleetArn(const char* value) { m_capacityReservationFleetArnHasBeenSet = true; m_capacityReservationFleetArn.assign(value); }
76
78
105 inline const CapacityReservationFleetState& GetState() const{ return m_state; }
106 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
107 inline void SetState(const CapacityReservationFleetState& value) { m_stateHasBeenSet = true; m_state = value; }
108 inline void SetState(CapacityReservationFleetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
109 inline CapacityReservationFleet& WithState(const CapacityReservationFleetState& value) { SetState(value); return *this;}
110 inline CapacityReservationFleet& WithState(CapacityReservationFleetState&& value) { SetState(std::move(value)); return *this;}
112
114
120 inline int GetTotalTargetCapacity() const{ return m_totalTargetCapacity; }
121 inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
122 inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacityHasBeenSet = true; m_totalTargetCapacity = value; }
125
127
130 inline double GetTotalFulfilledCapacity() const{ return m_totalFulfilledCapacity; }
131 inline bool TotalFulfilledCapacityHasBeenSet() const { return m_totalFulfilledCapacityHasBeenSet; }
132 inline void SetTotalFulfilledCapacity(double value) { m_totalFulfilledCapacityHasBeenSet = true; m_totalFulfilledCapacity = value; }
135
137
145 inline const FleetCapacityReservationTenancy& GetTenancy() const{ return m_tenancy; }
146 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
147 inline void SetTenancy(const FleetCapacityReservationTenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
148 inline void SetTenancy(FleetCapacityReservationTenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
150 inline CapacityReservationFleet& WithTenancy(FleetCapacityReservationTenancy&& value) { SetTenancy(std::move(value)); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
158 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
159 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
160 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
161 inline CapacityReservationFleet& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
162 inline CapacityReservationFleet& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
170 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
171 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
172 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
173 inline CapacityReservationFleet& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
174 inline CapacityReservationFleet& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
176
178
187 inline const FleetInstanceMatchCriteria& GetInstanceMatchCriteria() const{ return m_instanceMatchCriteria; }
188 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
189 inline void SetInstanceMatchCriteria(const FleetInstanceMatchCriteria& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = value; }
190 inline void SetInstanceMatchCriteria(FleetInstanceMatchCriteria&& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = std::move(value); }
194
196
203 inline const Aws::String& GetAllocationStrategy() const{ return m_allocationStrategy; }
204 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
205 inline void SetAllocationStrategy(const Aws::String& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
206 inline void SetAllocationStrategy(Aws::String&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
207 inline void SetAllocationStrategy(const char* value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy.assign(value); }
209 inline CapacityReservationFleet& WithAllocationStrategy(Aws::String&& value) { SetAllocationStrategy(std::move(value)); return *this;}
210 inline CapacityReservationFleet& WithAllocationStrategy(const char* value) { SetAllocationStrategy(value); return *this;}
212
214
217 inline const Aws::Vector<FleetCapacityReservation>& GetInstanceTypeSpecifications() const{ return m_instanceTypeSpecifications; }
218 inline bool InstanceTypeSpecificationsHasBeenSet() const { return m_instanceTypeSpecificationsHasBeenSet; }
219 inline void SetInstanceTypeSpecifications(const Aws::Vector<FleetCapacityReservation>& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications = value; }
220 inline void SetInstanceTypeSpecifications(Aws::Vector<FleetCapacityReservation>&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications = std::move(value); }
223 inline CapacityReservationFleet& AddInstanceTypeSpecifications(const FleetCapacityReservation& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications.push_back(value); return *this; }
224 inline CapacityReservationFleet& AddInstanceTypeSpecifications(FleetCapacityReservation&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications.push_back(std::move(value)); return *this; }
226
228
231 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
232 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
233 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
234 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
235 inline CapacityReservationFleet& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
236 inline CapacityReservationFleet& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
237 inline CapacityReservationFleet& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
238 inline CapacityReservationFleet& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
240 private:
241
242 Aws::String m_capacityReservationFleetId;
243 bool m_capacityReservationFleetIdHasBeenSet = false;
244
245 Aws::String m_capacityReservationFleetArn;
246 bool m_capacityReservationFleetArnHasBeenSet = false;
247
249 bool m_stateHasBeenSet = false;
250
251 int m_totalTargetCapacity;
252 bool m_totalTargetCapacityHasBeenSet = false;
253
254 double m_totalFulfilledCapacity;
255 bool m_totalFulfilledCapacityHasBeenSet = false;
256
258 bool m_tenancyHasBeenSet = false;
259
260 Aws::Utils::DateTime m_endDate;
261 bool m_endDateHasBeenSet = false;
262
263 Aws::Utils::DateTime m_createTime;
264 bool m_createTimeHasBeenSet = false;
265
266 FleetInstanceMatchCriteria m_instanceMatchCriteria;
267 bool m_instanceMatchCriteriaHasBeenSet = false;
268
269 Aws::String m_allocationStrategy;
270 bool m_allocationStrategyHasBeenSet = false;
271
272 Aws::Vector<FleetCapacityReservation> m_instanceTypeSpecifications;
273 bool m_instanceTypeSpecificationsHasBeenSet = false;
274
275 Aws::Vector<Tag> m_tags;
276 bool m_tagsHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace EC2
281} // namespace Aws
CapacityReservationFleet & WithState(const CapacityReservationFleetState &value)
void SetInstanceMatchCriteria(const FleetInstanceMatchCriteria &value)
CapacityReservationFleet & WithAllocationStrategy(const Aws::String &value)
CapacityReservationFleet & WithCapacityReservationFleetArn(Aws::String &&value)
const Aws::Vector< FleetCapacityReservation > & GetInstanceTypeSpecifications() const
CapacityReservationFleet & WithTags(Aws::Vector< Tag > &&value)
CapacityReservationFleet & AddInstanceTypeSpecifications(const FleetCapacityReservation &value)
CapacityReservationFleet & WithCreateTime(const Aws::Utils::DateTime &value)
void SetCapacityReservationFleetId(const Aws::String &value)
void SetAllocationStrategy(const Aws::String &value)
void SetState(CapacityReservationFleetState &&value)
CapacityReservationFleet & WithTotalFulfilledCapacity(double value)
void SetCreateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreateTime() const
CapacityReservationFleet & WithCapacityReservationFleetArn(const Aws::String &value)
void SetTenancy(const FleetCapacityReservationTenancy &value)
CapacityReservationFleet & WithCapacityReservationFleetArn(const char *value)
CapacityReservationFleet & WithEndDate(Aws::Utils::DateTime &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityReservationFleet & WithInstanceMatchCriteria(const FleetInstanceMatchCriteria &value)
const CapacityReservationFleetState & GetState() const
void SetEndDate(Aws::Utils::DateTime &&value)
const Aws::String & GetCapacityReservationFleetId() const
CapacityReservationFleet & WithTenancy(FleetCapacityReservationTenancy &&value)
CapacityReservationFleet & AddTags(const Tag &value)
CapacityReservationFleet & WithAllocationStrategy(Aws::String &&value)
CapacityReservationFleet & WithState(CapacityReservationFleetState &&value)
CapacityReservationFleet & WithInstanceMatchCriteria(FleetInstanceMatchCriteria &&value)
void SetCapacityReservationFleetArn(const Aws::String &value)
CapacityReservationFleet & WithCreateTime(Aws::Utils::DateTime &&value)
CapacityReservationFleet & WithTenancy(const FleetCapacityReservationTenancy &value)
CapacityReservationFleet & AddTags(Tag &&value)
CapacityReservationFleet & WithCapacityReservationFleetId(const char *value)
CapacityReservationFleet & AddInstanceTypeSpecifications(FleetCapacityReservation &&value)
const FleetInstanceMatchCriteria & GetInstanceMatchCriteria() const
void SetInstanceMatchCriteria(FleetInstanceMatchCriteria &&value)
const FleetCapacityReservationTenancy & GetTenancy() const
void SetTags(const Aws::Vector< Tag > &value)
CapacityReservationFleet & WithInstanceTypeSpecifications(const Aws::Vector< FleetCapacityReservation > &value)
CapacityReservationFleet & WithCapacityReservationFleetId(const Aws::String &value)
AWS_EC2_API CapacityReservationFleet(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationFleet & WithInstanceTypeSpecifications(Aws::Vector< FleetCapacityReservation > &&value)
CapacityReservationFleet & WithTotalTargetCapacity(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTenancy(FleetCapacityReservationTenancy &&value)
void SetInstanceTypeSpecifications(const Aws::Vector< FleetCapacityReservation > &value)
void SetState(const CapacityReservationFleetState &value)
const Aws::Utils::DateTime & GetEndDate() const
void SetEndDate(const Aws::Utils::DateTime &value)
CapacityReservationFleet & WithEndDate(const Aws::Utils::DateTime &value)
const Aws::String & GetCapacityReservationFleetArn() const
CapacityReservationFleet & WithTags(const Aws::Vector< Tag > &value)
AWS_EC2_API CapacityReservationFleet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceTypeSpecifications(Aws::Vector< FleetCapacityReservation > &&value)
CapacityReservationFleet & WithAllocationStrategy(const char *value)
void SetCreateTime(Aws::Utils::DateTime &&value)
CapacityReservationFleet & WithCapacityReservationFleetId(Aws::String &&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