Class ScheduledInstanceAvailability
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ScheduledInstanceAvailability
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ScheduledInstanceAvailability extends Object implements Serializable, Cloneable
Describes a schedule that is available for your Scheduled Instances.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduledInstanceAvailability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledInstanceAvailabilityclone()booleanequals(Object obj)StringgetAvailabilityZone()The Availability Zone.IntegergetAvailableInstanceCount()The number of available instances.DategetFirstSlotStartTime()The time period for the first schedule to start.StringgetHourlyPrice()The hourly price for a single instance.StringgetInstanceType()The instance type.IntegergetMaxTermDurationInDays()The maximum term.IntegergetMinTermDurationInDays()The minimum term.StringgetNetworkPlatform()The network platform (EC2-ClassicorEC2-VPC).StringgetPlatform()The platform (Linux/UNIXorWindows).StringgetPurchaseToken()The purchase token.ScheduledInstanceRecurrencegetRecurrence()The schedule recurrence.IntegergetSlotDurationInHours()The number of hours in the schedule.IntegergetTotalScheduledInstanceHours()The total number of hours for a single instance for the entire term.inthashCode()voidsetAvailabilityZone(String availabilityZone)The Availability Zone.voidsetAvailableInstanceCount(Integer availableInstanceCount)The number of available instances.voidsetFirstSlotStartTime(Date firstSlotStartTime)The time period for the first schedule to start.voidsetHourlyPrice(String hourlyPrice)The hourly price for a single instance.voidsetInstanceType(String instanceType)The instance type.voidsetMaxTermDurationInDays(Integer maxTermDurationInDays)The maximum term.voidsetMinTermDurationInDays(Integer minTermDurationInDays)The minimum term.voidsetNetworkPlatform(String networkPlatform)The network platform (EC2-ClassicorEC2-VPC).voidsetPlatform(String platform)The platform (Linux/UNIXorWindows).voidsetPurchaseToken(String purchaseToken)The purchase token.voidsetRecurrence(ScheduledInstanceRecurrence recurrence)The schedule recurrence.voidsetSlotDurationInHours(Integer slotDurationInHours)The number of hours in the schedule.voidsetTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)The total number of hours for a single instance for the entire term.StringtoString()Returns a string representation of this object; useful for testing and debugging.ScheduledInstanceAvailabilitywithAvailabilityZone(String availabilityZone)The Availability Zone.ScheduledInstanceAvailabilitywithAvailableInstanceCount(Integer availableInstanceCount)The number of available instances.ScheduledInstanceAvailabilitywithFirstSlotStartTime(Date firstSlotStartTime)The time period for the first schedule to start.ScheduledInstanceAvailabilitywithHourlyPrice(String hourlyPrice)The hourly price for a single instance.ScheduledInstanceAvailabilitywithInstanceType(String instanceType)The instance type.ScheduledInstanceAvailabilitywithMaxTermDurationInDays(Integer maxTermDurationInDays)The maximum term.ScheduledInstanceAvailabilitywithMinTermDurationInDays(Integer minTermDurationInDays)The minimum term.ScheduledInstanceAvailabilitywithNetworkPlatform(String networkPlatform)The network platform (EC2-ClassicorEC2-VPC).ScheduledInstanceAvailabilitywithPlatform(String platform)The platform (Linux/UNIXorWindows).ScheduledInstanceAvailabilitywithPurchaseToken(String purchaseToken)The purchase token.ScheduledInstanceAvailabilitywithRecurrence(ScheduledInstanceRecurrence recurrence)The schedule recurrence.ScheduledInstanceAvailabilitywithSlotDurationInHours(Integer slotDurationInHours)The number of hours in the schedule.ScheduledInstanceAvailabilitywithTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)The total number of hours for a single instance for the entire term.
-
-
-
Method Detail
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
- Parameters:
instanceType- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
-
getInstanceType
public String getInstanceType()
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
- Returns:
- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
-
withInstanceType
public ScheduledInstanceAvailability withInstanceType(String instanceType)
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
- Parameters:
instanceType- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
public void setPlatform(String platform)
The platform (
Linux/UNIXorWindows).- Parameters:
platform- The platform (Linux/UNIXorWindows).
-
getPlatform
public String getPlatform()
The platform (
Linux/UNIXorWindows).- Returns:
- The platform (
Linux/UNIXorWindows).
-
withPlatform
public ScheduledInstanceAvailability withPlatform(String platform)
The platform (
Linux/UNIXorWindows).- Parameters:
platform- The platform (Linux/UNIXorWindows).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNetworkPlatform
public void setNetworkPlatform(String networkPlatform)
The network platform (
EC2-ClassicorEC2-VPC).- Parameters:
networkPlatform- The network platform (EC2-ClassicorEC2-VPC).
-
getNetworkPlatform
public String getNetworkPlatform()
The network platform (
EC2-ClassicorEC2-VPC).- Returns:
- The network platform (
EC2-ClassicorEC2-VPC).
-
withNetworkPlatform
public ScheduledInstanceAvailability withNetworkPlatform(String networkPlatform)
The network platform (
EC2-ClassicorEC2-VPC).- Parameters:
networkPlatform- The network platform (EC2-ClassicorEC2-VPC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The Availability Zone.
- Parameters:
availabilityZone- The Availability Zone.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone.
- Returns:
- The Availability Zone.
-
withAvailabilityZone
public ScheduledInstanceAvailability withAvailabilityZone(String availabilityZone)
The Availability Zone.
- Parameters:
availabilityZone- The Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPurchaseToken
public void setPurchaseToken(String purchaseToken)
The purchase token. This token expires in two hours.
- Parameters:
purchaseToken- The purchase token. This token expires in two hours.
-
getPurchaseToken
public String getPurchaseToken()
The purchase token. This token expires in two hours.
- Returns:
- The purchase token. This token expires in two hours.
-
withPurchaseToken
public ScheduledInstanceAvailability withPurchaseToken(String purchaseToken)
The purchase token. This token expires in two hours.
- Parameters:
purchaseToken- The purchase token. This token expires in two hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSlotDurationInHours
public void setSlotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.
- Parameters:
slotDurationInHours- The number of hours in the schedule.
-
getSlotDurationInHours
public Integer getSlotDurationInHours()
The number of hours in the schedule.
- Returns:
- The number of hours in the schedule.
-
withSlotDurationInHours
public ScheduledInstanceAvailability withSlotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.
- Parameters:
slotDurationInHours- The number of hours in the schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRecurrence
public void setRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
- Parameters:
recurrence- The schedule recurrence.
-
getRecurrence
public ScheduledInstanceRecurrence getRecurrence()
The schedule recurrence.
- Returns:
- The schedule recurrence.
-
withRecurrence
public ScheduledInstanceAvailability withRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
- Parameters:
recurrence- The schedule recurrence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFirstSlotStartTime
public void setFirstSlotStartTime(Date firstSlotStartTime)
The time period for the first schedule to start.
- Parameters:
firstSlotStartTime- The time period for the first schedule to start.
-
getFirstSlotStartTime
public Date getFirstSlotStartTime()
The time period for the first schedule to start.
- Returns:
- The time period for the first schedule to start.
-
withFirstSlotStartTime
public ScheduledInstanceAvailability withFirstSlotStartTime(Date firstSlotStartTime)
The time period for the first schedule to start.
- Parameters:
firstSlotStartTime- The time period for the first schedule to start.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHourlyPrice
public void setHourlyPrice(String hourlyPrice)
The hourly price for a single instance.
- Parameters:
hourlyPrice- The hourly price for a single instance.
-
getHourlyPrice
public String getHourlyPrice()
The hourly price for a single instance.
- Returns:
- The hourly price for a single instance.
-
withHourlyPrice
public ScheduledInstanceAvailability withHourlyPrice(String hourlyPrice)
The hourly price for a single instance.
- Parameters:
hourlyPrice- The hourly price for a single instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTotalScheduledInstanceHours
public void setTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
- Parameters:
totalScheduledInstanceHours- The total number of hours for a single instance for the entire term.
-
getTotalScheduledInstanceHours
public Integer getTotalScheduledInstanceHours()
The total number of hours for a single instance for the entire term.
- Returns:
- The total number of hours for a single instance for the entire term.
-
withTotalScheduledInstanceHours
public ScheduledInstanceAvailability withTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
- Parameters:
totalScheduledInstanceHours- The total number of hours for a single instance for the entire term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailableInstanceCount
public void setAvailableInstanceCount(Integer availableInstanceCount)
The number of available instances.
- Parameters:
availableInstanceCount- The number of available instances.
-
getAvailableInstanceCount
public Integer getAvailableInstanceCount()
The number of available instances.
- Returns:
- The number of available instances.
-
withAvailableInstanceCount
public ScheduledInstanceAvailability withAvailableInstanceCount(Integer availableInstanceCount)
The number of available instances.
- Parameters:
availableInstanceCount- The number of available instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMinTermDurationInDays
public void setMinTermDurationInDays(Integer minTermDurationInDays)
The minimum term. The only possible value is 365 days.
- Parameters:
minTermDurationInDays- The minimum term. The only possible value is 365 days.
-
getMinTermDurationInDays
public Integer getMinTermDurationInDays()
The minimum term. The only possible value is 365 days.
- Returns:
- The minimum term. The only possible value is 365 days.
-
withMinTermDurationInDays
public ScheduledInstanceAvailability withMinTermDurationInDays(Integer minTermDurationInDays)
The minimum term. The only possible value is 365 days.
- Parameters:
minTermDurationInDays- The minimum term. The only possible value is 365 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxTermDurationInDays
public void setMaxTermDurationInDays(Integer maxTermDurationInDays)
The maximum term. The only possible value is 365 days.
- Parameters:
maxTermDurationInDays- The maximum term. The only possible value is 365 days.
-
getMaxTermDurationInDays
public Integer getMaxTermDurationInDays()
The maximum term. The only possible value is 365 days.
- Returns:
- The maximum term. The only possible value is 365 days.
-
withMaxTermDurationInDays
public ScheduledInstanceAvailability withMaxTermDurationInDays(Integer maxTermDurationInDays)
The maximum term. The only possible value is 365 days.
- Parameters:
maxTermDurationInDays- The maximum term. The only possible value is 365 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScheduledInstanceAvailability clone()
-
-