/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a schedule that is available for your Scheduled
* Instances.See Also:
AWS
* API Reference
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 ScheduledInstanceAvailability& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Availability Zone.
*/ inline ScheduledInstanceAvailability& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone.
*/ inline ScheduledInstanceAvailability& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *The number of available instances.
*/ inline int GetAvailableInstanceCount() const{ return m_availableInstanceCount; } /** *The number of available instances.
*/ inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; } /** *The number of available instances.
*/ inline void SetAvailableInstanceCount(int value) { m_availableInstanceCountHasBeenSet = true; m_availableInstanceCount = value; } /** *The number of available instances.
*/ inline ScheduledInstanceAvailability& WithAvailableInstanceCount(int value) { SetAvailableInstanceCount(value); return *this;} /** *The time period for the first schedule to start.
*/ inline const Aws::Utils::DateTime& GetFirstSlotStartTime() const{ return m_firstSlotStartTime; } /** *The time period for the first schedule to start.
*/ inline bool FirstSlotStartTimeHasBeenSet() const { return m_firstSlotStartTimeHasBeenSet; } /** *The time period for the first schedule to start.
*/ inline void SetFirstSlotStartTime(const Aws::Utils::DateTime& value) { m_firstSlotStartTimeHasBeenSet = true; m_firstSlotStartTime = value; } /** *The time period for the first schedule to start.
*/ inline void SetFirstSlotStartTime(Aws::Utils::DateTime&& value) { m_firstSlotStartTimeHasBeenSet = true; m_firstSlotStartTime = std::move(value); } /** *The time period for the first schedule to start.
*/ inline ScheduledInstanceAvailability& WithFirstSlotStartTime(const Aws::Utils::DateTime& value) { SetFirstSlotStartTime(value); return *this;} /** *The time period for the first schedule to start.
*/ inline ScheduledInstanceAvailability& WithFirstSlotStartTime(Aws::Utils::DateTime&& value) { SetFirstSlotStartTime(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 ScheduledInstanceAvailability& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;} /** *The hourly price for a single instance.
*/ inline ScheduledInstanceAvailability& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;} /** *The hourly price for a single instance.
*/ inline ScheduledInstanceAvailability& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;} /** *The instance type. You can specify one of the C3, C4, M4, or R3 instance * types.
*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *The instance type. You can specify one of the C3, C4, M4, or R3 instance * types.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *The instance type. You can specify one of the C3, C4, M4, or R3 instance * types.
*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *The instance type. You can specify one of the C3, C4, M4, or R3 instance * types.
*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *The instance type. You can specify one of the C3, C4, M4, or R3 instance * types.
*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *The instance type. You can specify one of the C3, C4, M4, or R3 instance * types.
*/ inline ScheduledInstanceAvailability& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *The instance type. You can specify one of the C3, C4, M4, or R3 instance * types.
*/ inline ScheduledInstanceAvailability& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *The instance type. You can specify one of the C3, C4, M4, or R3 instance * types.
*/ inline ScheduledInstanceAvailability& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *The maximum term. The only possible value is 365 days.
*/ inline int GetMaxTermDurationInDays() const{ return m_maxTermDurationInDays; } /** *The maximum term. The only possible value is 365 days.
*/ inline bool MaxTermDurationInDaysHasBeenSet() const { return m_maxTermDurationInDaysHasBeenSet; } /** *The maximum term. The only possible value is 365 days.
*/ inline void SetMaxTermDurationInDays(int value) { m_maxTermDurationInDaysHasBeenSet = true; m_maxTermDurationInDays = value; } /** *The maximum term. The only possible value is 365 days.
*/ inline ScheduledInstanceAvailability& WithMaxTermDurationInDays(int value) { SetMaxTermDurationInDays(value); return *this;} /** *The minimum term. The only possible value is 365 days.
*/ inline int GetMinTermDurationInDays() const{ return m_minTermDurationInDays; } /** *The minimum term. The only possible value is 365 days.
*/ inline bool MinTermDurationInDaysHasBeenSet() const { return m_minTermDurationInDaysHasBeenSet; } /** *The minimum term. The only possible value is 365 days.
*/ inline void SetMinTermDurationInDays(int value) { m_minTermDurationInDaysHasBeenSet = true; m_minTermDurationInDays = value; } /** *The minimum term. The only possible value is 365 days.
*/ inline ScheduledInstanceAvailability& WithMinTermDurationInDays(int value) { SetMinTermDurationInDays(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 ScheduledInstanceAvailability& WithNetworkPlatform(const Aws::String& value) { SetNetworkPlatform(value); return *this;} /** *The network platform.
*/ inline ScheduledInstanceAvailability& WithNetworkPlatform(Aws::String&& value) { SetNetworkPlatform(std::move(value)); return *this;} /** *The network platform.
*/ inline ScheduledInstanceAvailability& WithNetworkPlatform(const char* value) { SetNetworkPlatform(value); return *this;} /** *The platform (Linux/UNIX
or Windows
).
The platform (Linux/UNIX
or Windows
).
The platform (Linux/UNIX
or Windows
).
The platform (Linux/UNIX
or Windows
).
The platform (Linux/UNIX
or Windows
).
The platform (Linux/UNIX
or Windows
).
The platform (Linux/UNIX
or Windows
).
The platform (Linux/UNIX
or Windows
).
The purchase token. This token expires in two hours.
*/ inline const Aws::String& GetPurchaseToken() const{ return m_purchaseToken; } /** *The purchase token. This token expires in two hours.
*/ inline bool PurchaseTokenHasBeenSet() const { return m_purchaseTokenHasBeenSet; } /** *The purchase token. This token expires in two hours.
*/ inline void SetPurchaseToken(const Aws::String& value) { m_purchaseTokenHasBeenSet = true; m_purchaseToken = value; } /** *The purchase token. This token expires in two hours.
*/ inline void SetPurchaseToken(Aws::String&& value) { m_purchaseTokenHasBeenSet = true; m_purchaseToken = std::move(value); } /** *The purchase token. This token expires in two hours.
*/ inline void SetPurchaseToken(const char* value) { m_purchaseTokenHasBeenSet = true; m_purchaseToken.assign(value); } /** *The purchase token. This token expires in two hours.
*/ inline ScheduledInstanceAvailability& WithPurchaseToken(const Aws::String& value) { SetPurchaseToken(value); return *this;} /** *The purchase token. This token expires in two hours.
*/ inline ScheduledInstanceAvailability& WithPurchaseToken(Aws::String&& value) { SetPurchaseToken(std::move(value)); return *this;} /** *The purchase token. This token expires in two hours.
*/ inline ScheduledInstanceAvailability& WithPurchaseToken(const char* value) { SetPurchaseToken(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 ScheduledInstanceAvailability& WithRecurrence(const ScheduledInstanceRecurrence& value) { SetRecurrence(value); return *this;} /** *The schedule recurrence.
*/ inline ScheduledInstanceAvailability& WithRecurrence(ScheduledInstanceRecurrence&& value) { SetRecurrence(std::move(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 ScheduledInstanceAvailability& WithSlotDurationInHours(int value) { SetSlotDurationInHours(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 ScheduledInstanceAvailability& WithTotalScheduledInstanceHours(int value) { SetTotalScheduledInstanceHours(value); return *this;} private: Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; int m_availableInstanceCount; bool m_availableInstanceCountHasBeenSet = false; Aws::Utils::DateTime m_firstSlotStartTime; bool m_firstSlotStartTimeHasBeenSet = false; Aws::String m_hourlyPrice; bool m_hourlyPriceHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; int m_maxTermDurationInDays; bool m_maxTermDurationInDaysHasBeenSet = false; int m_minTermDurationInDays; bool m_minTermDurationInDaysHasBeenSet = false; Aws::String m_networkPlatform; bool m_networkPlatformHasBeenSet = false; Aws::String m_platform; bool m_platformHasBeenSet = false; Aws::String m_purchaseToken; bool m_purchaseTokenHasBeenSet = false; ScheduledInstanceRecurrence m_recurrence; bool m_recurrenceHasBeenSet = false; int m_slotDurationInHours; bool m_slotDurationInHoursHasBeenSet = false; int m_totalScheduledInstanceHours; bool m_totalScheduledInstanceHoursHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws