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