AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledInstance.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
34 {
35 public:
36 AWS_EC2_API ScheduledInstance();
37 AWS_EC2_API ScheduledInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
49 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
50 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
51 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
52 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
53 inline ScheduledInstance& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
54 inline ScheduledInstance& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
55 inline ScheduledInstance& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
63 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
64 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
65 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
66 inline ScheduledInstance& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
67 inline ScheduledInstance& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; }
75 inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; }
76 inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; }
77 inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); }
78 inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); }
79 inline ScheduledInstance& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;}
80 inline ScheduledInstance& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;}
81 inline ScheduledInstance& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;}
83
85
88 inline int GetInstanceCount() const{ return m_instanceCount; }
89 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
90 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
91 inline ScheduledInstance& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
93
95
98 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
99 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
100 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
101 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
102 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
103 inline ScheduledInstance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
104 inline ScheduledInstance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
105 inline ScheduledInstance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
107
109
112 inline const Aws::String& GetNetworkPlatform() const{ return m_networkPlatform; }
113 inline bool NetworkPlatformHasBeenSet() const { return m_networkPlatformHasBeenSet; }
114 inline void SetNetworkPlatform(const Aws::String& value) { m_networkPlatformHasBeenSet = true; m_networkPlatform = value; }
115 inline void SetNetworkPlatform(Aws::String&& value) { m_networkPlatformHasBeenSet = true; m_networkPlatform = std::move(value); }
116 inline void SetNetworkPlatform(const char* value) { m_networkPlatformHasBeenSet = true; m_networkPlatform.assign(value); }
117 inline ScheduledInstance& WithNetworkPlatform(const Aws::String& value) { SetNetworkPlatform(value); return *this;}
118 inline ScheduledInstance& WithNetworkPlatform(Aws::String&& value) { SetNetworkPlatform(std::move(value)); return *this;}
119 inline ScheduledInstance& WithNetworkPlatform(const char* value) { SetNetworkPlatform(value); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetNextSlotStartTime() const{ return m_nextSlotStartTime; }
127 inline bool NextSlotStartTimeHasBeenSet() const { return m_nextSlotStartTimeHasBeenSet; }
128 inline void SetNextSlotStartTime(const Aws::Utils::DateTime& value) { m_nextSlotStartTimeHasBeenSet = true; m_nextSlotStartTime = value; }
129 inline void SetNextSlotStartTime(Aws::Utils::DateTime&& value) { m_nextSlotStartTimeHasBeenSet = true; m_nextSlotStartTime = std::move(value); }
131 inline ScheduledInstance& WithNextSlotStartTime(Aws::Utils::DateTime&& value) { SetNextSlotStartTime(std::move(value)); return *this;}
133
135
138 inline const Aws::String& GetPlatform() const{ return m_platform; }
139 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
140 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
141 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
142 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
143 inline ScheduledInstance& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
144 inline ScheduledInstance& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
145 inline ScheduledInstance& WithPlatform(const char* value) { SetPlatform(value); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetPreviousSlotEndTime() const{ return m_previousSlotEndTime; }
153 inline bool PreviousSlotEndTimeHasBeenSet() const { return m_previousSlotEndTimeHasBeenSet; }
154 inline void SetPreviousSlotEndTime(const Aws::Utils::DateTime& value) { m_previousSlotEndTimeHasBeenSet = true; m_previousSlotEndTime = value; }
155 inline void SetPreviousSlotEndTime(Aws::Utils::DateTime&& value) { m_previousSlotEndTimeHasBeenSet = true; m_previousSlotEndTime = std::move(value); }
159
161
164 inline const ScheduledInstanceRecurrence& GetRecurrence() const{ return m_recurrence; }
165 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
166 inline void SetRecurrence(const ScheduledInstanceRecurrence& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
167 inline void SetRecurrence(ScheduledInstanceRecurrence&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
168 inline ScheduledInstance& WithRecurrence(const ScheduledInstanceRecurrence& value) { SetRecurrence(value); return *this;}
169 inline ScheduledInstance& WithRecurrence(ScheduledInstanceRecurrence&& value) { SetRecurrence(std::move(value)); return *this;}
171
173
176 inline const Aws::String& GetScheduledInstanceId() const{ return m_scheduledInstanceId; }
177 inline bool ScheduledInstanceIdHasBeenSet() const { return m_scheduledInstanceIdHasBeenSet; }
178 inline void SetScheduledInstanceId(const Aws::String& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = value; }
179 inline void SetScheduledInstanceId(Aws::String&& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = std::move(value); }
180 inline void SetScheduledInstanceId(const char* value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId.assign(value); }
182 inline ScheduledInstance& WithScheduledInstanceId(Aws::String&& value) { SetScheduledInstanceId(std::move(value)); return *this;}
183 inline ScheduledInstance& WithScheduledInstanceId(const char* value) { SetScheduledInstanceId(value); return *this;}
185
187
190 inline int GetSlotDurationInHours() const{ return m_slotDurationInHours; }
191 inline bool SlotDurationInHoursHasBeenSet() const { return m_slotDurationInHoursHasBeenSet; }
192 inline void SetSlotDurationInHours(int value) { m_slotDurationInHoursHasBeenSet = true; m_slotDurationInHours = value; }
193 inline ScheduledInstance& WithSlotDurationInHours(int value) { SetSlotDurationInHours(value); return *this;}
195
197
200 inline const Aws::Utils::DateTime& GetTermEndDate() const{ return m_termEndDate; }
201 inline bool TermEndDateHasBeenSet() const { return m_termEndDateHasBeenSet; }
202 inline void SetTermEndDate(const Aws::Utils::DateTime& value) { m_termEndDateHasBeenSet = true; m_termEndDate = value; }
203 inline void SetTermEndDate(Aws::Utils::DateTime&& value) { m_termEndDateHasBeenSet = true; m_termEndDate = std::move(value); }
204 inline ScheduledInstance& WithTermEndDate(const Aws::Utils::DateTime& value) { SetTermEndDate(value); return *this;}
205 inline ScheduledInstance& WithTermEndDate(Aws::Utils::DateTime&& value) { SetTermEndDate(std::move(value)); return *this;}
207
209
212 inline const Aws::Utils::DateTime& GetTermStartDate() const{ return m_termStartDate; }
213 inline bool TermStartDateHasBeenSet() const { return m_termStartDateHasBeenSet; }
214 inline void SetTermStartDate(const Aws::Utils::DateTime& value) { m_termStartDateHasBeenSet = true; m_termStartDate = value; }
215 inline void SetTermStartDate(Aws::Utils::DateTime&& value) { m_termStartDateHasBeenSet = true; m_termStartDate = std::move(value); }
216 inline ScheduledInstance& WithTermStartDate(const Aws::Utils::DateTime& value) { SetTermStartDate(value); return *this;}
217 inline ScheduledInstance& WithTermStartDate(Aws::Utils::DateTime&& value) { SetTermStartDate(std::move(value)); return *this;}
219
221
224 inline int GetTotalScheduledInstanceHours() const{ return m_totalScheduledInstanceHours; }
225 inline bool TotalScheduledInstanceHoursHasBeenSet() const { return m_totalScheduledInstanceHoursHasBeenSet; }
226 inline void SetTotalScheduledInstanceHours(int value) { m_totalScheduledInstanceHoursHasBeenSet = true; m_totalScheduledInstanceHours = value; }
229 private:
230
231 Aws::String m_availabilityZone;
232 bool m_availabilityZoneHasBeenSet = false;
233
234 Aws::Utils::DateTime m_createDate;
235 bool m_createDateHasBeenSet = false;
236
237 Aws::String m_hourlyPrice;
238 bool m_hourlyPriceHasBeenSet = false;
239
240 int m_instanceCount;
241 bool m_instanceCountHasBeenSet = false;
242
243 Aws::String m_instanceType;
244 bool m_instanceTypeHasBeenSet = false;
245
246 Aws::String m_networkPlatform;
247 bool m_networkPlatformHasBeenSet = false;
248
249 Aws::Utils::DateTime m_nextSlotStartTime;
250 bool m_nextSlotStartTimeHasBeenSet = false;
251
252 Aws::String m_platform;
253 bool m_platformHasBeenSet = false;
254
255 Aws::Utils::DateTime m_previousSlotEndTime;
256 bool m_previousSlotEndTimeHasBeenSet = false;
257
258 ScheduledInstanceRecurrence m_recurrence;
259 bool m_recurrenceHasBeenSet = false;
260
261 Aws::String m_scheduledInstanceId;
262 bool m_scheduledInstanceIdHasBeenSet = false;
263
264 int m_slotDurationInHours;
265 bool m_slotDurationInHoursHasBeenSet = false;
266
267 Aws::Utils::DateTime m_termEndDate;
268 bool m_termEndDateHasBeenSet = false;
269
270 Aws::Utils::DateTime m_termStartDate;
271 bool m_termStartDateHasBeenSet = false;
272
273 int m_totalScheduledInstanceHours;
274 bool m_totalScheduledInstanceHoursHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace EC2
279} // namespace Aws
const ScheduledInstanceRecurrence & GetRecurrence() const
void SetInstanceType(const char *value)
const Aws::Utils::DateTime & GetNextSlotStartTime() const
void SetAvailabilityZone(const Aws::String &value)
const Aws::String & GetHourlyPrice() const
ScheduledInstance & WithPreviousSlotEndTime(Aws::Utils::DateTime &&value)
AWS_EC2_API ScheduledInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetScheduledInstanceId(const Aws::String &value)
void SetPreviousSlotEndTime(const Aws::Utils::DateTime &value)
ScheduledInstance & WithTotalScheduledInstanceHours(int value)
ScheduledInstance & WithCreateDate(Aws::Utils::DateTime &&value)
ScheduledInstance & WithRecurrence(const ScheduledInstanceRecurrence &value)
ScheduledInstance & WithNetworkPlatform(const char *value)
ScheduledInstance & WithNextSlotStartTime(const Aws::Utils::DateTime &value)
ScheduledInstance & WithTermStartDate(const Aws::Utils::DateTime &value)
void SetNetworkPlatform(Aws::String &&value)
void SetInstanceType(const Aws::String &value)
ScheduledInstance & WithPreviousSlotEndTime(const Aws::Utils::DateTime &value)
ScheduledInstance & WithScheduledInstanceId(Aws::String &&value)
ScheduledInstance & WithPlatform(const Aws::String &value)
ScheduledInstance & WithPlatform(Aws::String &&value)
void SetHourlyPrice(const char *value)
const Aws::String & GetNetworkPlatform() const
void SetTermStartDate(Aws::Utils::DateTime &&value)
void SetInstanceType(Aws::String &&value)
ScheduledInstance & WithSlotDurationInHours(int value)
void SetAvailabilityZone(const char *value)
void SetCreateDate(const Aws::Utils::DateTime &value)
ScheduledInstance & WithRecurrence(ScheduledInstanceRecurrence &&value)
ScheduledInstance & WithInstanceType(const char *value)
ScheduledInstance & WithHourlyPrice(const Aws::String &value)
ScheduledInstance & WithHourlyPrice(const char *value)
void SetPreviousSlotEndTime(Aws::Utils::DateTime &&value)
AWS_EC2_API ScheduledInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRecurrence(const ScheduledInstanceRecurrence &value)
const Aws::String & GetInstanceType() const
ScheduledInstance & WithTermStartDate(Aws::Utils::DateTime &&value)
void SetRecurrence(ScheduledInstanceRecurrence &&value)
void SetNetworkPlatform(const Aws::String &value)
ScheduledInstance & WithNetworkPlatform(const Aws::String &value)
ScheduledInstance & WithAvailabilityZone(Aws::String &&value)
ScheduledInstance & WithNextSlotStartTime(Aws::Utils::DateTime &&value)
const Aws::String & GetPlatform() const
const Aws::Utils::DateTime & GetTermStartDate() const
void SetNextSlotStartTime(const Aws::Utils::DateTime &value)
void SetTermEndDate(Aws::Utils::DateTime &&value)
void SetPlatform(Aws::String &&value)
ScheduledInstance & WithTermEndDate(Aws::Utils::DateTime &&value)
ScheduledInstance & WithPlatform(const char *value)
ScheduledInstance & WithScheduledInstanceId(const char *value)
ScheduledInstance & WithInstanceType(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateDate() const
void SetTermEndDate(const Aws::Utils::DateTime &value)
void SetCreateDate(Aws::Utils::DateTime &&value)
ScheduledInstance & WithHourlyPrice(Aws::String &&value)
void SetTermStartDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetTermEndDate() const
void SetPlatform(const Aws::String &value)
const Aws::String & GetScheduledInstanceId() const
ScheduledInstance & WithInstanceType(Aws::String &&value)
const Aws::Utils::DateTime & GetPreviousSlotEndTime() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledInstance & WithNetworkPlatform(Aws::String &&value)
void SetHourlyPrice(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScheduledInstance & WithCreateDate(const Aws::Utils::DateTime &value)
void SetScheduledInstanceId(const char *value)
void SetAvailabilityZone(Aws::String &&value)
const Aws::String & GetAvailabilityZone() const
void SetNetworkPlatform(const char *value)
void SetScheduledInstanceId(Aws::String &&value)
ScheduledInstance & WithTermEndDate(const Aws::Utils::DateTime &value)
ScheduledInstance & WithScheduledInstanceId(const Aws::String &value)
ScheduledInstance & WithInstanceCount(int value)
ScheduledInstance & WithAvailabilityZone(const Aws::String &value)
ScheduledInstance & WithAvailabilityZone(const char *value)
void SetNextSlotStartTime(Aws::Utils::DateTime &&value)
void SetHourlyPrice(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream