AWS SDK for C++  0.14.3
AWS SDK for C++
ScheduledInstance.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  ScheduledInstance& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetScheduledInstanceId() const{ return m_scheduledInstanceId; }
53 
57  inline void SetScheduledInstanceId(const Aws::String& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = value; }
58 
62  inline void SetScheduledInstanceId(Aws::String&& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = value; }
63 
67  inline void SetScheduledInstanceId(const char* value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId.assign(value); }
68 
72  inline ScheduledInstance& WithScheduledInstanceId(const Aws::String& value) { SetScheduledInstanceId(value); return *this;}
73 
77  inline ScheduledInstance& WithScheduledInstanceId(Aws::String&& value) { SetScheduledInstanceId(value); return *this;}
78 
82  inline ScheduledInstance& WithScheduledInstanceId(const char* value) { SetScheduledInstanceId(value); return *this;}
83 
87  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
88 
92  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
93 
97  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
98 
102  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
103 
107  inline ScheduledInstance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
108 
112  inline ScheduledInstance& WithInstanceType(Aws::String&& value) { SetInstanceType(value); return *this;}
113 
117  inline ScheduledInstance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
118 
122  inline const Aws::String& GetPlatform() const{ return m_platform; }
123 
127  inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
128 
132  inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = value; }
133 
137  inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
138 
142  inline ScheduledInstance& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
143 
147  inline ScheduledInstance& WithPlatform(Aws::String&& value) { SetPlatform(value); return *this;}
148 
152  inline ScheduledInstance& WithPlatform(const char* value) { SetPlatform(value); return *this;}
153 
157  inline const Aws::String& GetNetworkPlatform() const{ return m_networkPlatform; }
158 
162  inline void SetNetworkPlatform(const Aws::String& value) { m_networkPlatformHasBeenSet = true; m_networkPlatform = value; }
163 
167  inline void SetNetworkPlatform(Aws::String&& value) { m_networkPlatformHasBeenSet = true; m_networkPlatform = value; }
168 
172  inline void SetNetworkPlatform(const char* value) { m_networkPlatformHasBeenSet = true; m_networkPlatform.assign(value); }
173 
177  inline ScheduledInstance& WithNetworkPlatform(const Aws::String& value) { SetNetworkPlatform(value); return *this;}
178 
182  inline ScheduledInstance& WithNetworkPlatform(Aws::String&& value) { SetNetworkPlatform(value); return *this;}
183 
187  inline ScheduledInstance& WithNetworkPlatform(const char* value) { SetNetworkPlatform(value); return *this;}
188 
192  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
193 
197  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
198 
202  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
203 
207  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
208 
212  inline ScheduledInstance& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
213 
217  inline ScheduledInstance& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(value); return *this;}
218 
222  inline ScheduledInstance& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
223 
227  inline int GetSlotDurationInHours() const{ return m_slotDurationInHours; }
228 
232  inline void SetSlotDurationInHours(int value) { m_slotDurationInHoursHasBeenSet = true; m_slotDurationInHours = value; }
233 
237  inline ScheduledInstance& WithSlotDurationInHours(int value) { SetSlotDurationInHours(value); return *this;}
238 
242  inline const ScheduledInstanceRecurrence& GetRecurrence() const{ return m_recurrence; }
243 
247  inline void SetRecurrence(const ScheduledInstanceRecurrence& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
248 
252  inline void SetRecurrence(ScheduledInstanceRecurrence&& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
253 
257  inline ScheduledInstance& WithRecurrence(const ScheduledInstanceRecurrence& value) { SetRecurrence(value); return *this;}
258 
262  inline ScheduledInstance& WithRecurrence(ScheduledInstanceRecurrence&& value) { SetRecurrence(value); return *this;}
263 
267  inline const Aws::Utils::DateTime& GetPreviousSlotEndTime() const{ return m_previousSlotEndTime; }
268 
272  inline void SetPreviousSlotEndTime(const Aws::Utils::DateTime& value) { m_previousSlotEndTimeHasBeenSet = true; m_previousSlotEndTime = value; }
273 
277  inline void SetPreviousSlotEndTime(Aws::Utils::DateTime&& value) { m_previousSlotEndTimeHasBeenSet = true; m_previousSlotEndTime = value; }
278 
282  inline ScheduledInstance& WithPreviousSlotEndTime(const Aws::Utils::DateTime& value) { SetPreviousSlotEndTime(value); return *this;}
283 
287  inline ScheduledInstance& WithPreviousSlotEndTime(Aws::Utils::DateTime&& value) { SetPreviousSlotEndTime(value); return *this;}
288 
292  inline const Aws::Utils::DateTime& GetNextSlotStartTime() const{ return m_nextSlotStartTime; }
293 
297  inline void SetNextSlotStartTime(const Aws::Utils::DateTime& value) { m_nextSlotStartTimeHasBeenSet = true; m_nextSlotStartTime = value; }
298 
302  inline void SetNextSlotStartTime(Aws::Utils::DateTime&& value) { m_nextSlotStartTimeHasBeenSet = true; m_nextSlotStartTime = value; }
303 
307  inline ScheduledInstance& WithNextSlotStartTime(const Aws::Utils::DateTime& value) { SetNextSlotStartTime(value); return *this;}
308 
312  inline ScheduledInstance& WithNextSlotStartTime(Aws::Utils::DateTime&& value) { SetNextSlotStartTime(value); return *this;}
313 
317  inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; }
318 
322  inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; }
323 
327  inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; }
328 
332  inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); }
333 
337  inline ScheduledInstance& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;}
338 
342  inline ScheduledInstance& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(value); return *this;}
343 
347  inline ScheduledInstance& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;}
348 
352  inline int GetTotalScheduledInstanceHours() const{ return m_totalScheduledInstanceHours; }
353 
357  inline void SetTotalScheduledInstanceHours(int value) { m_totalScheduledInstanceHoursHasBeenSet = true; m_totalScheduledInstanceHours = value; }
358 
362  inline ScheduledInstance& WithTotalScheduledInstanceHours(int value) { SetTotalScheduledInstanceHours(value); return *this;}
363 
367  inline int GetInstanceCount() const{ return m_instanceCount; }
368 
372  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
373 
377  inline ScheduledInstance& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
378 
382  inline const Aws::Utils::DateTime& GetTermStartDate() const{ return m_termStartDate; }
383 
387  inline void SetTermStartDate(const Aws::Utils::DateTime& value) { m_termStartDateHasBeenSet = true; m_termStartDate = value; }
388 
392  inline void SetTermStartDate(Aws::Utils::DateTime&& value) { m_termStartDateHasBeenSet = true; m_termStartDate = value; }
393 
397  inline ScheduledInstance& WithTermStartDate(const Aws::Utils::DateTime& value) { SetTermStartDate(value); return *this;}
398 
402  inline ScheduledInstance& WithTermStartDate(Aws::Utils::DateTime&& value) { SetTermStartDate(value); return *this;}
403 
407  inline const Aws::Utils::DateTime& GetTermEndDate() const{ return m_termEndDate; }
408 
412  inline void SetTermEndDate(const Aws::Utils::DateTime& value) { m_termEndDateHasBeenSet = true; m_termEndDate = value; }
413 
417  inline void SetTermEndDate(Aws::Utils::DateTime&& value) { m_termEndDateHasBeenSet = true; m_termEndDate = value; }
418 
422  inline ScheduledInstance& WithTermEndDate(const Aws::Utils::DateTime& value) { SetTermEndDate(value); return *this;}
423 
427  inline ScheduledInstance& WithTermEndDate(Aws::Utils::DateTime&& value) { SetTermEndDate(value); return *this;}
428 
432  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
433 
437  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
438 
442  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = value; }
443 
447  inline ScheduledInstance& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
448 
452  inline ScheduledInstance& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(value); return *this;}
453 
454  private:
455  Aws::String m_scheduledInstanceId;
456  bool m_scheduledInstanceIdHasBeenSet;
457  Aws::String m_instanceType;
458  bool m_instanceTypeHasBeenSet;
459  Aws::String m_platform;
460  bool m_platformHasBeenSet;
461  Aws::String m_networkPlatform;
462  bool m_networkPlatformHasBeenSet;
463  Aws::String m_availabilityZone;
464  bool m_availabilityZoneHasBeenSet;
465  int m_slotDurationInHours;
466  bool m_slotDurationInHoursHasBeenSet;
467  ScheduledInstanceRecurrence m_recurrence;
468  bool m_recurrenceHasBeenSet;
469  Aws::Utils::DateTime m_previousSlotEndTime;
470  bool m_previousSlotEndTimeHasBeenSet;
471  Aws::Utils::DateTime m_nextSlotStartTime;
472  bool m_nextSlotStartTimeHasBeenSet;
473  Aws::String m_hourlyPrice;
474  bool m_hourlyPriceHasBeenSet;
475  int m_totalScheduledInstanceHours;
476  bool m_totalScheduledInstanceHoursHasBeenSet;
477  int m_instanceCount;
478  bool m_instanceCountHasBeenSet;
479  Aws::Utils::DateTime m_termStartDate;
480  bool m_termStartDateHasBeenSet;
481  Aws::Utils::DateTime m_termEndDate;
482  bool m_termEndDateHasBeenSet;
483  Aws::Utils::DateTime m_createDate;
484  bool m_createDateHasBeenSet;
485  };
486 
487 } // namespace Model
488 } // namespace EC2
489 } // namespace Aws
ScheduledInstance & WithTermEndDate(Aws::Utils::DateTime &&value)
void SetScheduledInstanceId(Aws::String &&value)
ScheduledInstance & WithPlatform(const Aws::String &value)
ScheduledInstance & WithHourlyPrice(Aws::String &&value)
ScheduledInstance & WithPlatform(Aws::String &&value)
ScheduledInstance & WithTermStartDate(Aws::Utils::DateTime &&value)
void SetTermEndDate(const Aws::Utils::DateTime &value)
void SetInstanceType(const Aws::String &value)
void SetHourlyPrice(const Aws::String &value)
ScheduledInstance & WithTermStartDate(const Aws::Utils::DateTime &value)
ScheduledInstance & WithNetworkPlatform(const Aws::String &value)
ScheduledInstance & WithNextSlotStartTime(const Aws::Utils::DateTime &value)
ScheduledInstance & WithRecurrence(const ScheduledInstanceRecurrence &value)
void SetInstanceType(Aws::String &&value)
ScheduledInstance & WithScheduledInstanceId(const char *value)
const Aws::Utils::DateTime & GetTermStartDate() const
void SetTermStartDate(Aws::Utils::DateTime &&value)
ScheduledInstance & WithNetworkPlatform(const char *value)
void SetHourlyPrice(Aws::String &&value)
void SetPlatform(const char *value)
const Aws::Utils::DateTime & GetNextSlotStartTime() const
void SetNextSlotStartTime(const Aws::Utils::DateTime &value)
ScheduledInstance & WithInstanceType(Aws::String &&value)
void SetNetworkPlatform(const char *value)
ScheduledInstance & WithHourlyPrice(const char *value)
ScheduledInstance & WithInstanceType(const Aws::String &value)
ScheduledInstance & WithScheduledInstanceId(Aws::String &&value)
ScheduledInstance & WithHourlyPrice(const Aws::String &value)
const Aws::String & GetAvailabilityZone() const
void SetNextSlotStartTime(Aws::Utils::DateTime &&value)
void SetScheduledInstanceId(const char *value)
ScheduledInstance & WithAvailabilityZone(const char *value)
ScheduledInstance & WithPreviousSlotEndTime(Aws::Utils::DateTime &&value)
void SetInstanceType(const char *value)
ScheduledInstance & WithRecurrence(ScheduledInstanceRecurrence &&value)
ScheduledInstance & WithTermEndDate(const Aws::Utils::DateTime &value)
ScheduledInstance & WithTotalScheduledInstanceHours(int value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetHourlyPrice(const char *value)
const Aws::String & GetPlatform() const
void SetAvailabilityZone(const char *value)
void SetRecurrence(const ScheduledInstanceRecurrence &value)
const ScheduledInstanceRecurrence & GetRecurrence() const
void SetCreateDate(Aws::Utils::DateTime &&value)
ScheduledInstance & WithScheduledInstanceId(const Aws::String &value)
ScheduledInstance & WithPreviousSlotEndTime(const Aws::Utils::DateTime &value)
ScheduledInstance & WithSlotDurationInHours(int value)
ScheduledInstance & WithInstanceCount(int value)
ScheduledInstance & WithNextSlotStartTime(Aws::Utils::DateTime &&value)
void SetRecurrence(ScheduledInstanceRecurrence &&value)
void SetNetworkPlatform(const Aws::String &value)
void SetNetworkPlatform(Aws::String &&value)
void SetAvailabilityZone(const Aws::String &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
void SetTermStartDate(const Aws::Utils::DateTime &value)
void SetPlatform(const Aws::String &value)
void SetPreviousSlotEndTime(Aws::Utils::DateTime &&value)
ScheduledInstance & WithNetworkPlatform(Aws::String &&value)
ScheduledInstance & WithAvailabilityZone(const Aws::String &value)
ScheduledInstance & WithAvailabilityZone(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetHourlyPrice() const
ScheduledInstance & WithCreateDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetPreviousSlotEndTime() const
void SetPreviousSlotEndTime(const Aws::Utils::DateTime &value)
void SetScheduledInstanceId(const Aws::String &value)
const Aws::String & GetNetworkPlatform() const
ScheduledInstance & WithPlatform(const char *value)
const Aws::Utils::DateTime & GetTermEndDate() const
void SetAvailabilityZone(Aws::String &&value)
void SetTermEndDate(Aws::Utils::DateTime &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
ScheduledInstance & WithCreateDate(Aws::Utils::DateTime &&value)
const Aws::String & GetScheduledInstanceId() const
ScheduledInstance & WithInstanceType(const char *value)
const Aws::Utils::DateTime & GetCreateDate() const
const Aws::String & GetInstanceType() const
void SetPlatform(Aws::String &&value)
JSON (JavaScript Object Notation).