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