public class ScheduledInstanceAvailability extends Object implements Serializable, Cloneable
Describes a schedule that is available for your Scheduled Instances.
| Constructor and Description |
|---|
ScheduledInstanceAvailability() |
| Modifier and Type | Method and Description |
|---|---|
ScheduledInstanceAvailability |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone.
|
Integer |
getAvailableInstanceCount()
The number of available instances.
|
Date |
getFirstSlotStartTime()
The time period for the first schedule to start.
|
String |
getHourlyPrice()
The hourly price for a single instance.
|
String |
getInstanceType()
The instance type.
|
Integer |
getMaxTermDurationInDays()
The maximum term.
|
Integer |
getMinTermDurationInDays()
The minimum term.
|
String |
getNetworkPlatform()
The network platform (
EC2-Classic or
EC2-VPC). |
String |
getPlatform()
The platform (
Linux/UNIX or Windows). |
String |
getPurchaseToken()
The purchase token.
|
ScheduledInstanceRecurrence |
getRecurrence()
The schedule recurrence.
|
Integer |
getSlotDurationInHours()
The number of hours in the schedule.
|
Integer |
getTotalScheduledInstanceHours()
The total number of hours for a single instance for the entire term.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone.
|
void |
setAvailableInstanceCount(Integer availableInstanceCount)
The number of available instances.
|
void |
setFirstSlotStartTime(Date firstSlotStartTime)
The time period for the first schedule to start.
|
void |
setHourlyPrice(String hourlyPrice)
The hourly price for a single instance.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setMaxTermDurationInDays(Integer maxTermDurationInDays)
The maximum term.
|
void |
setMinTermDurationInDays(Integer minTermDurationInDays)
The minimum term.
|
void |
setNetworkPlatform(String networkPlatform)
The network platform (
EC2-Classic or
EC2-VPC). |
void |
setPlatform(String platform)
The platform (
Linux/UNIX or Windows). |
void |
setPurchaseToken(String purchaseToken)
The purchase token.
|
void |
setRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
|
void |
setSlotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.
|
void |
setTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ScheduledInstanceAvailability |
withAvailabilityZone(String availabilityZone)
The Availability Zone.
|
ScheduledInstanceAvailability |
withAvailableInstanceCount(Integer availableInstanceCount)
The number of available instances.
|
ScheduledInstanceAvailability |
withFirstSlotStartTime(Date firstSlotStartTime)
The time period for the first schedule to start.
|
ScheduledInstanceAvailability |
withHourlyPrice(String hourlyPrice)
The hourly price for a single instance.
|
ScheduledInstanceAvailability |
withInstanceType(String instanceType)
The instance type.
|
ScheduledInstanceAvailability |
withMaxTermDurationInDays(Integer maxTermDurationInDays)
The maximum term.
|
ScheduledInstanceAvailability |
withMinTermDurationInDays(Integer minTermDurationInDays)
The minimum term.
|
ScheduledInstanceAvailability |
withNetworkPlatform(String networkPlatform)
The network platform (
EC2-Classic or
EC2-VPC). |
ScheduledInstanceAvailability |
withPlatform(String platform)
The platform (
Linux/UNIX or Windows). |
ScheduledInstanceAvailability |
withPurchaseToken(String purchaseToken)
The purchase token.
|
ScheduledInstanceAvailability |
withRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
|
ScheduledInstanceAvailability |
withSlotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.
|
ScheduledInstanceAvailability |
withTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
|
public String getInstanceType()
public void setInstanceType(String instanceType)
instanceType - The instance type. You can specify one of the C3, C4, M4, or R3
instance types.public ScheduledInstanceAvailability withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType - The instance type. You can specify one of the C3, C4, M4, or R3
instance types.public String getPlatform()
Linux/UNIX or Windows).Linux/UNIX or Windows).public void setPlatform(String platform)
Linux/UNIX or Windows).platform - The platform (Linux/UNIX or Windows).public ScheduledInstanceAvailability withPlatform(String platform)
Linux/UNIX or Windows).
Returns a reference to this object so that method calls can be chained together.
platform - The platform (Linux/UNIX or Windows).public String getNetworkPlatform()
EC2-Classic or
EC2-VPC).EC2-Classic or
EC2-VPC).public void setNetworkPlatform(String networkPlatform)
EC2-Classic or
EC2-VPC).networkPlatform - The network platform (EC2-Classic or
EC2-VPC).public ScheduledInstanceAvailability withNetworkPlatform(String networkPlatform)
EC2-Classic or
EC2-VPC).
Returns a reference to this object so that method calls can be chained together.
networkPlatform - The network platform (EC2-Classic or
EC2-VPC).public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone - The Availability Zone.public ScheduledInstanceAvailability withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone - The Availability Zone.public String getPurchaseToken()
public void setPurchaseToken(String purchaseToken)
purchaseToken - The purchase token. This token expires in two hours.public ScheduledInstanceAvailability withPurchaseToken(String purchaseToken)
Returns a reference to this object so that method calls can be chained together.
purchaseToken - The purchase token. This token expires in two hours.public Integer getSlotDurationInHours()
public void setSlotDurationInHours(Integer slotDurationInHours)
slotDurationInHours - The number of hours in the schedule.public ScheduledInstanceAvailability withSlotDurationInHours(Integer slotDurationInHours)
Returns a reference to this object so that method calls can be chained together.
slotDurationInHours - The number of hours in the schedule.public ScheduledInstanceRecurrence getRecurrence()
public void setRecurrence(ScheduledInstanceRecurrence recurrence)
recurrence - The schedule recurrence.public ScheduledInstanceAvailability withRecurrence(ScheduledInstanceRecurrence recurrence)
Returns a reference to this object so that method calls can be chained together.
recurrence - The schedule recurrence.public Date getFirstSlotStartTime()
public void setFirstSlotStartTime(Date firstSlotStartTime)
firstSlotStartTime - The time period for the first schedule to start.public ScheduledInstanceAvailability withFirstSlotStartTime(Date firstSlotStartTime)
Returns a reference to this object so that method calls can be chained together.
firstSlotStartTime - The time period for the first schedule to start.public String getHourlyPrice()
public void setHourlyPrice(String hourlyPrice)
hourlyPrice - The hourly price for a single instance.public ScheduledInstanceAvailability withHourlyPrice(String hourlyPrice)
Returns a reference to this object so that method calls can be chained together.
hourlyPrice - The hourly price for a single instance.public Integer getTotalScheduledInstanceHours()
public void setTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
totalScheduledInstanceHours - The total number of hours for a single instance for the entire term.public ScheduledInstanceAvailability withTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
Returns a reference to this object so that method calls can be chained together.
totalScheduledInstanceHours - The total number of hours for a single instance for the entire term.public Integer getAvailableInstanceCount()
public void setAvailableInstanceCount(Integer availableInstanceCount)
availableInstanceCount - The number of available instances.public ScheduledInstanceAvailability withAvailableInstanceCount(Integer availableInstanceCount)
Returns a reference to this object so that method calls can be chained together.
availableInstanceCount - The number of available instances.public Integer getMinTermDurationInDays()
public void setMinTermDurationInDays(Integer minTermDurationInDays)
minTermDurationInDays - The minimum term. The only possible value is 365 days.public ScheduledInstanceAvailability withMinTermDurationInDays(Integer minTermDurationInDays)
Returns a reference to this object so that method calls can be chained together.
minTermDurationInDays - The minimum term. The only possible value is 365 days.public Integer getMaxTermDurationInDays()
public void setMaxTermDurationInDays(Integer maxTermDurationInDays)
maxTermDurationInDays - The maximum term. The only possible value is 365 days.public ScheduledInstanceAvailability withMaxTermDurationInDays(Integer maxTermDurationInDays)
Returns a reference to this object so that method calls can be chained together.
maxTermDurationInDays - The maximum term. The only possible value is 365 days.public String toString()
toString in class ObjectObject.toString()public ScheduledInstanceAvailability clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.