AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FleetCapacityReservation.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/InstanceType.h>
11#include <aws/ec2/model/CapacityReservationInstancePlatform.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
51 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
52 inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
53 inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
54 inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
57 inline FleetCapacityReservation& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
59
61
65 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
66 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
67 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
68 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
69 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
71 inline FleetCapacityReservation& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
72 inline FleetCapacityReservation& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
74
76
79 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
80 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
81 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
82 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
83 inline FleetCapacityReservation& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
84 inline FleetCapacityReservation& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
86
88
92 inline const CapacityReservationInstancePlatform& GetInstancePlatform() const{ return m_instancePlatform; }
93 inline bool InstancePlatformHasBeenSet() const { return m_instancePlatformHasBeenSet; }
94 inline void SetInstancePlatform(const CapacityReservationInstancePlatform& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = value; }
95 inline void SetInstancePlatform(CapacityReservationInstancePlatform&& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = std::move(value); }
99
101
105 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
106 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
107 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
108 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
109 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
111 inline FleetCapacityReservation& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
112 inline FleetCapacityReservation& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
114
116
120 inline int GetTotalInstanceCount() const{ return m_totalInstanceCount; }
121 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
122 inline void SetTotalInstanceCount(int value) { m_totalInstanceCountHasBeenSet = true; m_totalInstanceCount = value; }
125
127
133 inline double GetFulfilledCapacity() const{ return m_fulfilledCapacity; }
134 inline bool FulfilledCapacityHasBeenSet() const { return m_fulfilledCapacityHasBeenSet; }
135 inline void SetFulfilledCapacity(double value) { m_fulfilledCapacityHasBeenSet = true; m_fulfilledCapacity = value; }
136 inline FleetCapacityReservation& WithFulfilledCapacity(double value) { SetFulfilledCapacity(value); return *this;}
138
140
144 inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
145 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
146 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
147 inline FleetCapacityReservation& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
149
151
154 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
155 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
156 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
157 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
158 inline FleetCapacityReservation& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
159 inline FleetCapacityReservation& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
161
163
169 inline double GetWeight() const{ return m_weight; }
170 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
171 inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; }
172 inline FleetCapacityReservation& WithWeight(double value) { SetWeight(value); return *this;}
174
176
182 inline int GetPriority() const{ return m_priority; }
183 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
184 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
185 inline FleetCapacityReservation& WithPriority(int value) { SetPriority(value); return *this;}
187 private:
188
189 Aws::String m_capacityReservationId;
190 bool m_capacityReservationIdHasBeenSet = false;
191
192 Aws::String m_availabilityZoneId;
193 bool m_availabilityZoneIdHasBeenSet = false;
194
195 InstanceType m_instanceType;
196 bool m_instanceTypeHasBeenSet = false;
197
198 CapacityReservationInstancePlatform m_instancePlatform;
199 bool m_instancePlatformHasBeenSet = false;
200
201 Aws::String m_availabilityZone;
202 bool m_availabilityZoneHasBeenSet = false;
203
204 int m_totalInstanceCount;
205 bool m_totalInstanceCountHasBeenSet = false;
206
207 double m_fulfilledCapacity;
208 bool m_fulfilledCapacityHasBeenSet = false;
209
210 bool m_ebsOptimized;
211 bool m_ebsOptimizedHasBeenSet = false;
212
213 Aws::Utils::DateTime m_createDate;
214 bool m_createDateHasBeenSet = false;
215
216 double m_weight;
217 bool m_weightHasBeenSet = false;
218
219 int m_priority;
220 bool m_priorityHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace EC2
225} // namespace Aws
FleetCapacityReservation & WithTotalInstanceCount(int value)
FleetCapacityReservation & WithEbsOptimized(bool value)
FleetCapacityReservation & WithInstanceType(const InstanceType &value)
AWS_EC2_API FleetCapacityReservation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetCapacityReservation & WithAvailabilityZoneId(Aws::String &&value)
FleetCapacityReservation & WithWeight(double value)
void SetInstancePlatform(CapacityReservationInstancePlatform &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FleetCapacityReservation & WithFulfilledCapacity(double value)
void SetInstancePlatform(const CapacityReservationInstancePlatform &value)
FleetCapacityReservation & WithInstancePlatform(const CapacityReservationInstancePlatform &value)
FleetCapacityReservation & WithAvailabilityZone(Aws::String &&value)
FleetCapacityReservation & WithAvailabilityZoneId(const char *value)
FleetCapacityReservation & WithAvailabilityZone(const char *value)
FleetCapacityReservation & WithCreateDate(const Aws::Utils::DateTime &value)
const CapacityReservationInstancePlatform & GetInstancePlatform() const
AWS_EC2_API FleetCapacityReservation(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetCapacityReservation & WithCapacityReservationId(Aws::String &&value)
void SetCapacityReservationId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateDate() const
void SetInstanceType(const InstanceType &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FleetCapacityReservation & WithAvailabilityZoneId(const Aws::String &value)
void SetAvailabilityZoneId(const Aws::String &value)
FleetCapacityReservation & WithPriority(int value)
void SetCreateDate(const Aws::Utils::DateTime &value)
void SetCreateDate(Aws::Utils::DateTime &&value)
FleetCapacityReservation & WithCapacityReservationId(const char *value)
FleetCapacityReservation & WithCreateDate(Aws::Utils::DateTime &&value)
FleetCapacityReservation & WithInstancePlatform(CapacityReservationInstancePlatform &&value)
FleetCapacityReservation & WithCapacityReservationId(const Aws::String &value)
FleetCapacityReservation & WithAvailabilityZone(const Aws::String &value)
FleetCapacityReservation & WithInstanceType(InstanceType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream