AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
41 AWS_EC2_API CapacityReservationFleet() = default;
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 template<typename CapacityReservationFleetIdT = Aws::String>
56 void SetCapacityReservationFleetId(CapacityReservationFleetIdT&& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value); }
57 template<typename CapacityReservationFleetIdT = Aws::String>
58 CapacityReservationFleet& WithCapacityReservationFleetId(CapacityReservationFleetIdT&& value) { SetCapacityReservationFleetId(std::forward<CapacityReservationFleetIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetCapacityReservationFleetArn() const { return m_capacityReservationFleetArn; }
66 inline bool CapacityReservationFleetArnHasBeenSet() const { return m_capacityReservationFleetArnHasBeenSet; }
67 template<typename CapacityReservationFleetArnT = Aws::String>
68 void SetCapacityReservationFleetArn(CapacityReservationFleetArnT&& value) { m_capacityReservationFleetArnHasBeenSet = true; m_capacityReservationFleetArn = std::forward<CapacityReservationFleetArnT>(value); }
69 template<typename CapacityReservationFleetArnT = Aws::String>
70 CapacityReservationFleet& WithCapacityReservationFleetArn(CapacityReservationFleetArnT&& value) { SetCapacityReservationFleetArn(std::forward<CapacityReservationFleetArnT>(value)); return *this;}
72
74
101 inline CapacityReservationFleetState GetState() const { return m_state; }
102 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
103 inline void SetState(CapacityReservationFleetState value) { m_stateHasBeenSet = true; m_state = value; }
106
108
114 inline int GetTotalTargetCapacity() const { return m_totalTargetCapacity; }
115 inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
116 inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacityHasBeenSet = true; m_totalTargetCapacity = value; }
119
121
124 inline double GetTotalFulfilledCapacity() const { return m_totalFulfilledCapacity; }
125 inline bool TotalFulfilledCapacityHasBeenSet() const { return m_totalFulfilledCapacityHasBeenSet; }
126 inline void SetTotalFulfilledCapacity(double value) { m_totalFulfilledCapacityHasBeenSet = true; m_totalFulfilledCapacity = value; }
129
131
139 inline FleetCapacityReservationTenancy GetTenancy() const { return m_tenancy; }
140 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
141 inline void SetTenancy(FleetCapacityReservationTenancy value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
144
146
149 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
150 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
151 template<typename EndDateT = Aws::Utils::DateTime>
152 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
153 template<typename EndDateT = Aws::Utils::DateTime>
154 CapacityReservationFleet& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
156
158
161 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
162 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
163 template<typename CreateTimeT = Aws::Utils::DateTime>
164 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
165 template<typename CreateTimeT = Aws::Utils::DateTime>
166 CapacityReservationFleet& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
168
170
179 inline FleetInstanceMatchCriteria GetInstanceMatchCriteria() const { return m_instanceMatchCriteria; }
180 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
181 inline void SetInstanceMatchCriteria(FleetInstanceMatchCriteria value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = value; }
184
186
193 inline const Aws::String& GetAllocationStrategy() const { return m_allocationStrategy; }
194 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
195 template<typename AllocationStrategyT = Aws::String>
196 void SetAllocationStrategy(AllocationStrategyT&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::forward<AllocationStrategyT>(value); }
197 template<typename AllocationStrategyT = Aws::String>
198 CapacityReservationFleet& WithAllocationStrategy(AllocationStrategyT&& value) { SetAllocationStrategy(std::forward<AllocationStrategyT>(value)); return *this;}
200
202
205 inline const Aws::Vector<FleetCapacityReservation>& GetInstanceTypeSpecifications() const { return m_instanceTypeSpecifications; }
206 inline bool InstanceTypeSpecificationsHasBeenSet() const { return m_instanceTypeSpecificationsHasBeenSet; }
207 template<typename InstanceTypeSpecificationsT = Aws::Vector<FleetCapacityReservation>>
208 void SetInstanceTypeSpecifications(InstanceTypeSpecificationsT&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications = std::forward<InstanceTypeSpecificationsT>(value); }
209 template<typename InstanceTypeSpecificationsT = Aws::Vector<FleetCapacityReservation>>
210 CapacityReservationFleet& WithInstanceTypeSpecifications(InstanceTypeSpecificationsT&& value) { SetInstanceTypeSpecifications(std::forward<InstanceTypeSpecificationsT>(value)); return *this;}
211 template<typename InstanceTypeSpecificationsT = FleetCapacityReservation>
212 CapacityReservationFleet& AddInstanceTypeSpecifications(InstanceTypeSpecificationsT&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications.emplace_back(std::forward<InstanceTypeSpecificationsT>(value)); return *this; }
214
216
219 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template<typename TagsT = Aws::Vector<Tag>>
222 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
223 template<typename TagsT = Aws::Vector<Tag>>
224 CapacityReservationFleet& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
225 template<typename TagsT = Tag>
226 CapacityReservationFleet& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
228 private:
229
230 Aws::String m_capacityReservationFleetId;
231 bool m_capacityReservationFleetIdHasBeenSet = false;
232
233 Aws::String m_capacityReservationFleetArn;
234 bool m_capacityReservationFleetArnHasBeenSet = false;
235
237 bool m_stateHasBeenSet = false;
238
239 int m_totalTargetCapacity{0};
240 bool m_totalTargetCapacityHasBeenSet = false;
241
242 double m_totalFulfilledCapacity{0.0};
243 bool m_totalFulfilledCapacityHasBeenSet = false;
244
246 bool m_tenancyHasBeenSet = false;
247
248 Aws::Utils::DateTime m_endDate{};
249 bool m_endDateHasBeenSet = false;
250
251 Aws::Utils::DateTime m_createTime{};
252 bool m_createTimeHasBeenSet = false;
253
255 bool m_instanceMatchCriteriaHasBeenSet = false;
256
257 Aws::String m_allocationStrategy;
258 bool m_allocationStrategyHasBeenSet = false;
259
260 Aws::Vector<FleetCapacityReservation> m_instanceTypeSpecifications;
261 bool m_instanceTypeSpecificationsHasBeenSet = false;
262
263 Aws::Vector<Tag> m_tags;
264 bool m_tagsHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace EC2
269} // namespace Aws
void SetState(CapacityReservationFleetState value)
void SetInstanceMatchCriteria(FleetInstanceMatchCriteria value)
CapacityReservationFleet & WithTags(TagsT &&value)
const Aws::Vector< FleetCapacityReservation > & GetInstanceTypeSpecifications() const
CapacityReservationFleet & WithAllocationStrategy(AllocationStrategyT &&value)
CapacityReservationFleet & WithTotalFulfilledCapacity(double value)
CapacityReservationFleet & AddTags(TagsT &&value)
CapacityReservationFleet & AddInstanceTypeSpecifications(InstanceTypeSpecificationsT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetCapacityReservationFleetId() const
CapacityReservationFleet & WithCapacityReservationFleetArn(CapacityReservationFleetArnT &&value)
CapacityReservationFleet & WithInstanceMatchCriteria(FleetInstanceMatchCriteria value)
void SetInstanceTypeSpecifications(InstanceTypeSpecificationsT &&value)
AWS_EC2_API CapacityReservationFleet()=default
CapacityReservationFleet & WithState(CapacityReservationFleetState value)
void SetAllocationStrategy(AllocationStrategyT &&value)
void SetTenancy(FleetCapacityReservationTenancy value)
CapacityReservationFleet & WithCreateTime(CreateTimeT &&value)
void SetCapacityReservationFleetArn(CapacityReservationFleetArnT &&value)
CapacityReservationFleet & WithCapacityReservationFleetId(CapacityReservationFleetIdT &&value)
FleetCapacityReservationTenancy GetTenancy() const
AWS_EC2_API CapacityReservationFleet(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationFleet & WithTotalTargetCapacity(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetEndDate() const
FleetInstanceMatchCriteria GetInstanceMatchCriteria() const
const Aws::String & GetCapacityReservationFleetArn() const
AWS_EC2_API CapacityReservationFleet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationFleet & WithInstanceTypeSpecifications(InstanceTypeSpecificationsT &&value)
void SetCapacityReservationFleetId(CapacityReservationFleetIdT &&value)
CapacityReservationFleet & WithEndDate(EndDateT &&value)
CapacityReservationFleet & WithTenancy(FleetCapacityReservationTenancy value)
CapacityReservationFleetState GetState() const
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