/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a Scheduled Instance.

See Also:

AWS * API Reference

*/ class ScheduledInstance { public: AWS_EC2_API ScheduledInstance(); AWS_EC2_API ScheduledInstance(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ScheduledInstance& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The Availability Zone.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone.

*/ inline ScheduledInstance& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone.

*/ inline ScheduledInstance& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone.

*/ inline ScheduledInstance& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The date when the Scheduled Instance was purchased.

*/ inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; } /** *

The date when the Scheduled Instance was purchased.

*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *

The date when the Scheduled Instance was purchased.

*/ inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *

The date when the Scheduled Instance was purchased.

*/ inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *

The date when the Scheduled Instance was purchased.

*/ inline ScheduledInstance& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *

The date when the Scheduled Instance was purchased.

*/ inline ScheduledInstance& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} /** *

The hourly price for a single instance.

*/ inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; } /** *

The hourly price for a single instance.

*/ inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; } /** *

The hourly price for a single instance.

*/ inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; } /** *

The hourly price for a single instance.

*/ inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); } /** *

The hourly price for a single instance.

*/ inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); } /** *

The hourly price for a single instance.

*/ inline ScheduledInstance& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;} /** *

The hourly price for a single instance.

*/ inline ScheduledInstance& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;} /** *

The hourly price for a single instance.

*/ inline ScheduledInstance& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;} /** *

The number of instances.

*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *

The number of instances.

*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *

The number of instances.

*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *

The number of instances.

*/ inline ScheduledInstance& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} /** *

The instance type.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The instance type.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The instance type.

*/ inline ScheduledInstance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The instance type.

*/ inline ScheduledInstance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The instance type.

*/ inline ScheduledInstance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The network platform.

*/ inline const Aws::String& GetNetworkPlatform() const{ return m_networkPlatform; } /** *

The network platform.

*/ inline bool NetworkPlatformHasBeenSet() const { return m_networkPlatformHasBeenSet; } /** *

The network platform.

*/ inline void SetNetworkPlatform(const Aws::String& value) { m_networkPlatformHasBeenSet = true; m_networkPlatform = value; } /** *

The network platform.

*/ inline void SetNetworkPlatform(Aws::String&& value) { m_networkPlatformHasBeenSet = true; m_networkPlatform = std::move(value); } /** *

The network platform.

*/ inline void SetNetworkPlatform(const char* value) { m_networkPlatformHasBeenSet = true; m_networkPlatform.assign(value); } /** *

The network platform.

*/ inline ScheduledInstance& WithNetworkPlatform(const Aws::String& value) { SetNetworkPlatform(value); return *this;} /** *

The network platform.

*/ inline ScheduledInstance& WithNetworkPlatform(Aws::String&& value) { SetNetworkPlatform(std::move(value)); return *this;} /** *

The network platform.

*/ inline ScheduledInstance& WithNetworkPlatform(const char* value) { SetNetworkPlatform(value); return *this;} /** *

The time for the next schedule to start.

*/ inline const Aws::Utils::DateTime& GetNextSlotStartTime() const{ return m_nextSlotStartTime; } /** *

The time for the next schedule to start.

*/ inline bool NextSlotStartTimeHasBeenSet() const { return m_nextSlotStartTimeHasBeenSet; } /** *

The time for the next schedule to start.

*/ inline void SetNextSlotStartTime(const Aws::Utils::DateTime& value) { m_nextSlotStartTimeHasBeenSet = true; m_nextSlotStartTime = value; } /** *

The time for the next schedule to start.

*/ inline void SetNextSlotStartTime(Aws::Utils::DateTime&& value) { m_nextSlotStartTimeHasBeenSet = true; m_nextSlotStartTime = std::move(value); } /** *

The time for the next schedule to start.

*/ inline ScheduledInstance& WithNextSlotStartTime(const Aws::Utils::DateTime& value) { SetNextSlotStartTime(value); return *this;} /** *

The time for the next schedule to start.

*/ inline ScheduledInstance& WithNextSlotStartTime(Aws::Utils::DateTime&& value) { SetNextSlotStartTime(std::move(value)); return *this;} /** *

The platform (Linux/UNIX or Windows).

*/ inline const Aws::String& GetPlatform() const{ return m_platform; } /** *

The platform (Linux/UNIX or Windows).

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The platform (Linux/UNIX or Windows).

*/ inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The platform (Linux/UNIX or Windows).

*/ inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The platform (Linux/UNIX or Windows).

*/ inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); } /** *

The platform (Linux/UNIX or Windows).

*/ inline ScheduledInstance& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;} /** *

The platform (Linux/UNIX or Windows).

*/ inline ScheduledInstance& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;} /** *

The platform (Linux/UNIX or Windows).

*/ inline ScheduledInstance& WithPlatform(const char* value) { SetPlatform(value); return *this;} /** *

The time that the previous schedule ended or will end.

*/ inline const Aws::Utils::DateTime& GetPreviousSlotEndTime() const{ return m_previousSlotEndTime; } /** *

The time that the previous schedule ended or will end.

*/ inline bool PreviousSlotEndTimeHasBeenSet() const { return m_previousSlotEndTimeHasBeenSet; } /** *

The time that the previous schedule ended or will end.

*/ inline void SetPreviousSlotEndTime(const Aws::Utils::DateTime& value) { m_previousSlotEndTimeHasBeenSet = true; m_previousSlotEndTime = value; } /** *

The time that the previous schedule ended or will end.

*/ inline void SetPreviousSlotEndTime(Aws::Utils::DateTime&& value) { m_previousSlotEndTimeHasBeenSet = true; m_previousSlotEndTime = std::move(value); } /** *

The time that the previous schedule ended or will end.

*/ inline ScheduledInstance& WithPreviousSlotEndTime(const Aws::Utils::DateTime& value) { SetPreviousSlotEndTime(value); return *this;} /** *

The time that the previous schedule ended or will end.

*/ inline ScheduledInstance& WithPreviousSlotEndTime(Aws::Utils::DateTime&& value) { SetPreviousSlotEndTime(std::move(value)); return *this;} /** *

The schedule recurrence.

*/ inline const ScheduledInstanceRecurrence& GetRecurrence() const{ return m_recurrence; } /** *

The schedule recurrence.

*/ inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; } /** *

The schedule recurrence.

*/ inline void SetRecurrence(const ScheduledInstanceRecurrence& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; } /** *

The schedule recurrence.

*/ inline void SetRecurrence(ScheduledInstanceRecurrence&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); } /** *

The schedule recurrence.

*/ inline ScheduledInstance& WithRecurrence(const ScheduledInstanceRecurrence& value) { SetRecurrence(value); return *this;} /** *

The schedule recurrence.

*/ inline ScheduledInstance& WithRecurrence(ScheduledInstanceRecurrence&& value) { SetRecurrence(std::move(value)); return *this;} /** *

The Scheduled Instance ID.

*/ inline const Aws::String& GetScheduledInstanceId() const{ return m_scheduledInstanceId; } /** *

The Scheduled Instance ID.

*/ inline bool ScheduledInstanceIdHasBeenSet() const { return m_scheduledInstanceIdHasBeenSet; } /** *

The Scheduled Instance ID.

*/ inline void SetScheduledInstanceId(const Aws::String& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = value; } /** *

The Scheduled Instance ID.

*/ inline void SetScheduledInstanceId(Aws::String&& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = std::move(value); } /** *

The Scheduled Instance ID.

*/ inline void SetScheduledInstanceId(const char* value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId.assign(value); } /** *

The Scheduled Instance ID.

*/ inline ScheduledInstance& WithScheduledInstanceId(const Aws::String& value) { SetScheduledInstanceId(value); return *this;} /** *

The Scheduled Instance ID.

*/ inline ScheduledInstance& WithScheduledInstanceId(Aws::String&& value) { SetScheduledInstanceId(std::move(value)); return *this;} /** *

The Scheduled Instance ID.

*/ inline ScheduledInstance& WithScheduledInstanceId(const char* value) { SetScheduledInstanceId(value); return *this;} /** *

The number of hours in the schedule.

*/ inline int GetSlotDurationInHours() const{ return m_slotDurationInHours; } /** *

The number of hours in the schedule.

*/ inline bool SlotDurationInHoursHasBeenSet() const { return m_slotDurationInHoursHasBeenSet; } /** *

The number of hours in the schedule.

*/ inline void SetSlotDurationInHours(int value) { m_slotDurationInHoursHasBeenSet = true; m_slotDurationInHours = value; } /** *

The number of hours in the schedule.

*/ inline ScheduledInstance& WithSlotDurationInHours(int value) { SetSlotDurationInHours(value); return *this;} /** *

The end date for the Scheduled Instance.

*/ inline const Aws::Utils::DateTime& GetTermEndDate() const{ return m_termEndDate; } /** *

The end date for the Scheduled Instance.

*/ inline bool TermEndDateHasBeenSet() const { return m_termEndDateHasBeenSet; } /** *

The end date for the Scheduled Instance.

*/ inline void SetTermEndDate(const Aws::Utils::DateTime& value) { m_termEndDateHasBeenSet = true; m_termEndDate = value; } /** *

The end date for the Scheduled Instance.

*/ inline void SetTermEndDate(Aws::Utils::DateTime&& value) { m_termEndDateHasBeenSet = true; m_termEndDate = std::move(value); } /** *

The end date for the Scheduled Instance.

*/ inline ScheduledInstance& WithTermEndDate(const Aws::Utils::DateTime& value) { SetTermEndDate(value); return *this;} /** *

The end date for the Scheduled Instance.

*/ inline ScheduledInstance& WithTermEndDate(Aws::Utils::DateTime&& value) { SetTermEndDate(std::move(value)); return *this;} /** *

The start date for the Scheduled Instance.

*/ inline const Aws::Utils::DateTime& GetTermStartDate() const{ return m_termStartDate; } /** *

The start date for the Scheduled Instance.

*/ inline bool TermStartDateHasBeenSet() const { return m_termStartDateHasBeenSet; } /** *

The start date for the Scheduled Instance.

*/ inline void SetTermStartDate(const Aws::Utils::DateTime& value) { m_termStartDateHasBeenSet = true; m_termStartDate = value; } /** *

The start date for the Scheduled Instance.

*/ inline void SetTermStartDate(Aws::Utils::DateTime&& value) { m_termStartDateHasBeenSet = true; m_termStartDate = std::move(value); } /** *

The start date for the Scheduled Instance.

*/ inline ScheduledInstance& WithTermStartDate(const Aws::Utils::DateTime& value) { SetTermStartDate(value); return *this;} /** *

The start date for the Scheduled Instance.

*/ inline ScheduledInstance& WithTermStartDate(Aws::Utils::DateTime&& value) { SetTermStartDate(std::move(value)); return *this;} /** *

The total number of hours for a single instance for the entire term.

*/ inline int GetTotalScheduledInstanceHours() const{ return m_totalScheduledInstanceHours; } /** *

The total number of hours for a single instance for the entire term.

*/ inline bool TotalScheduledInstanceHoursHasBeenSet() const { return m_totalScheduledInstanceHoursHasBeenSet; } /** *

The total number of hours for a single instance for the entire term.

*/ inline void SetTotalScheduledInstanceHours(int value) { m_totalScheduledInstanceHoursHasBeenSet = true; m_totalScheduledInstanceHours = value; } /** *

The total number of hours for a single instance for the entire term.

*/ inline ScheduledInstance& WithTotalScheduledInstanceHours(int value) { SetTotalScheduledInstanceHours(value); return *this;} private: Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; Aws::String m_hourlyPrice; bool m_hourlyPriceHasBeenSet = false; int m_instanceCount; bool m_instanceCountHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_networkPlatform; bool m_networkPlatformHasBeenSet = false; Aws::Utils::DateTime m_nextSlotStartTime; bool m_nextSlotStartTimeHasBeenSet = false; Aws::String m_platform; bool m_platformHasBeenSet = false; Aws::Utils::DateTime m_previousSlotEndTime; bool m_previousSlotEndTimeHasBeenSet = false; ScheduledInstanceRecurrence m_recurrence; bool m_recurrenceHasBeenSet = false; Aws::String m_scheduledInstanceId; bool m_scheduledInstanceIdHasBeenSet = false; int m_slotDurationInHours; bool m_slotDurationInHoursHasBeenSet = false; Aws::Utils::DateTime m_termEndDate; bool m_termEndDateHasBeenSet = false; Aws::Utils::DateTime m_termStartDate; bool m_termStartDateHasBeenSet = false; int m_totalScheduledInstanceHours; bool m_totalScheduledInstanceHoursHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws