AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledInstanceAvailability.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/core/utils/DateTime.h>
11#include <aws/ec2/model/ScheduledInstanceRecurrence.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
50 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
51 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
52 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
53 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
55 inline ScheduledInstanceAvailability& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
56 inline ScheduledInstanceAvailability& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
58
60
63 inline int GetAvailableInstanceCount() const{ return m_availableInstanceCount; }
64 inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; }
65 inline void SetAvailableInstanceCount(int value) { m_availableInstanceCountHasBeenSet = true; m_availableInstanceCount = value; }
68
70
73 inline const Aws::Utils::DateTime& GetFirstSlotStartTime() const{ return m_firstSlotStartTime; }
74 inline bool FirstSlotStartTimeHasBeenSet() const { return m_firstSlotStartTimeHasBeenSet; }
75 inline void SetFirstSlotStartTime(const Aws::Utils::DateTime& value) { m_firstSlotStartTimeHasBeenSet = true; m_firstSlotStartTime = value; }
76 inline void SetFirstSlotStartTime(Aws::Utils::DateTime&& value) { m_firstSlotStartTimeHasBeenSet = true; m_firstSlotStartTime = std::move(value); }
80
82
85 inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; }
86 inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; }
87 inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; }
88 inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); }
89 inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); }
90 inline ScheduledInstanceAvailability& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;}
91 inline ScheduledInstanceAvailability& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;}
92 inline ScheduledInstanceAvailability& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;}
94
96
100 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
101 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
102 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
103 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
104 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
105 inline ScheduledInstanceAvailability& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
106 inline ScheduledInstanceAvailability& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
107 inline ScheduledInstanceAvailability& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
109
111
114 inline int GetMaxTermDurationInDays() const{ return m_maxTermDurationInDays; }
115 inline bool MaxTermDurationInDaysHasBeenSet() const { return m_maxTermDurationInDaysHasBeenSet; }
116 inline void SetMaxTermDurationInDays(int value) { m_maxTermDurationInDaysHasBeenSet = true; m_maxTermDurationInDays = value; }
119
121
124 inline int GetMinTermDurationInDays() const{ return m_minTermDurationInDays; }
125 inline bool MinTermDurationInDaysHasBeenSet() const { return m_minTermDurationInDaysHasBeenSet; }
126 inline void SetMinTermDurationInDays(int value) { m_minTermDurationInDaysHasBeenSet = true; m_minTermDurationInDays = value; }
129
131
134 inline const Aws::String& GetNetworkPlatform() const{ return m_networkPlatform; }
135 inline bool NetworkPlatformHasBeenSet() const { return m_networkPlatformHasBeenSet; }
136 inline void SetNetworkPlatform(const Aws::String& value) { m_networkPlatformHasBeenSet = true; m_networkPlatform = value; }
137 inline void SetNetworkPlatform(Aws::String&& value) { m_networkPlatformHasBeenSet = true; m_networkPlatform = std::move(value); }
138 inline void SetNetworkPlatform(const char* value) { m_networkPlatformHasBeenSet = true; m_networkPlatform.assign(value); }
140 inline ScheduledInstanceAvailability& WithNetworkPlatform(Aws::String&& value) { SetNetworkPlatform(std::move(value)); return *this;}
141 inline ScheduledInstanceAvailability& WithNetworkPlatform(const char* value) { SetNetworkPlatform(value); return *this;}
143
145
148 inline const Aws::String& GetPlatform() const{ return m_platform; }
149 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
150 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
151 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
152 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
153 inline ScheduledInstanceAvailability& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
154 inline ScheduledInstanceAvailability& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
155 inline ScheduledInstanceAvailability& WithPlatform(const char* value) { SetPlatform(value); return *this;}
157
159
162 inline const Aws::String& GetPurchaseToken() const{ return m_purchaseToken; }
163 inline bool PurchaseTokenHasBeenSet() const { return m_purchaseTokenHasBeenSet; }
164 inline void SetPurchaseToken(const Aws::String& value) { m_purchaseTokenHasBeenSet = true; m_purchaseToken = value; }
165 inline void SetPurchaseToken(Aws::String&& value) { m_purchaseTokenHasBeenSet = true; m_purchaseToken = std::move(value); }
166 inline void SetPurchaseToken(const char* value) { m_purchaseTokenHasBeenSet = true; m_purchaseToken.assign(value); }
168 inline ScheduledInstanceAvailability& WithPurchaseToken(Aws::String&& value) { SetPurchaseToken(std::move(value)); return *this;}
169 inline ScheduledInstanceAvailability& WithPurchaseToken(const char* value) { SetPurchaseToken(value); return *this;}
171
173
176 inline const ScheduledInstanceRecurrence& GetRecurrence() const{ return m_recurrence; }
177 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
178 inline void SetRecurrence(const ScheduledInstanceRecurrence& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
179 inline void SetRecurrence(ScheduledInstanceRecurrence&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
183
185
188 inline int GetSlotDurationInHours() const{ return m_slotDurationInHours; }
189 inline bool SlotDurationInHoursHasBeenSet() const { return m_slotDurationInHoursHasBeenSet; }
190 inline void SetSlotDurationInHours(int value) { m_slotDurationInHoursHasBeenSet = true; m_slotDurationInHours = value; }
193
195
198 inline int GetTotalScheduledInstanceHours() const{ return m_totalScheduledInstanceHours; }
199 inline bool TotalScheduledInstanceHoursHasBeenSet() const { return m_totalScheduledInstanceHoursHasBeenSet; }
200 inline void SetTotalScheduledInstanceHours(int value) { m_totalScheduledInstanceHoursHasBeenSet = true; m_totalScheduledInstanceHours = value; }
203 private:
204
205 Aws::String m_availabilityZone;
206 bool m_availabilityZoneHasBeenSet = false;
207
208 int m_availableInstanceCount;
209 bool m_availableInstanceCountHasBeenSet = false;
210
211 Aws::Utils::DateTime m_firstSlotStartTime;
212 bool m_firstSlotStartTimeHasBeenSet = false;
213
214 Aws::String m_hourlyPrice;
215 bool m_hourlyPriceHasBeenSet = false;
216
217 Aws::String m_instanceType;
218 bool m_instanceTypeHasBeenSet = false;
219
220 int m_maxTermDurationInDays;
221 bool m_maxTermDurationInDaysHasBeenSet = false;
222
223 int m_minTermDurationInDays;
224 bool m_minTermDurationInDaysHasBeenSet = false;
225
226 Aws::String m_networkPlatform;
227 bool m_networkPlatformHasBeenSet = false;
228
229 Aws::String m_platform;
230 bool m_platformHasBeenSet = false;
231
232 Aws::String m_purchaseToken;
233 bool m_purchaseTokenHasBeenSet = false;
234
235 ScheduledInstanceRecurrence m_recurrence;
236 bool m_recurrenceHasBeenSet = false;
237
238 int m_slotDurationInHours;
239 bool m_slotDurationInHoursHasBeenSet = false;
240
241 int m_totalScheduledInstanceHours;
242 bool m_totalScheduledInstanceHoursHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace EC2
247} // namespace Aws
void SetRecurrence(ScheduledInstanceRecurrence &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledInstanceAvailability & WithAvailableInstanceCount(int value)
ScheduledInstanceAvailability & WithInstanceType(const Aws::String &value)
ScheduledInstanceAvailability & WithFirstSlotStartTime(const Aws::Utils::DateTime &value)
void SetRecurrence(const ScheduledInstanceRecurrence &value)
ScheduledInstanceAvailability & WithSlotDurationInHours(int value)
ScheduledInstanceAvailability & WithFirstSlotStartTime(Aws::Utils::DateTime &&value)
ScheduledInstanceAvailability & WithAvailabilityZone(Aws::String &&value)
ScheduledInstanceAvailability & WithNetworkPlatform(const Aws::String &value)
ScheduledInstanceAvailability & WithHourlyPrice(const char *value)
ScheduledInstanceAvailability & WithAvailabilityZone(const Aws::String &value)
ScheduledInstanceAvailability & WithPurchaseToken(const Aws::String &value)
ScheduledInstanceAvailability & WithPurchaseToken(Aws::String &&value)
AWS_EC2_API ScheduledInstanceAvailability(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstanceAvailability & WithInstanceType(Aws::String &&value)
AWS_EC2_API ScheduledInstanceAvailability & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstanceAvailability & WithAvailabilityZone(const char *value)
ScheduledInstanceAvailability & WithRecurrence(ScheduledInstanceRecurrence &&value)
ScheduledInstanceAvailability & WithHourlyPrice(Aws::String &&value)
const ScheduledInstanceRecurrence & GetRecurrence() const
ScheduledInstanceAvailability & WithNetworkPlatform(Aws::String &&value)
const Aws::Utils::DateTime & GetFirstSlotStartTime() const
ScheduledInstanceAvailability & WithMinTermDurationInDays(int value)
ScheduledInstanceAvailability & WithMaxTermDurationInDays(int value)
ScheduledInstanceAvailability & WithNetworkPlatform(const char *value)
ScheduledInstanceAvailability & WithPlatform(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScheduledInstanceAvailability & WithPurchaseToken(const char *value)
void SetFirstSlotStartTime(const Aws::Utils::DateTime &value)
ScheduledInstanceAvailability & WithPlatform(const Aws::String &value)
ScheduledInstanceAvailability & WithInstanceType(const char *value)
ScheduledInstanceAvailability & WithRecurrence(const ScheduledInstanceRecurrence &value)
ScheduledInstanceAvailability & WithHourlyPrice(const Aws::String &value)
ScheduledInstanceAvailability & WithTotalScheduledInstanceHours(int value)
ScheduledInstanceAvailability & WithPlatform(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream