public class ScheduledInstance
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a Scheduled Instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The Availability Zone.
|
private java.util.Date |
createDate
The date when the Scheduled Instance was purchased.
|
private java.lang.String |
hourlyPrice
The hourly price for a single instance.
|
private java.lang.Integer |
instanceCount
The number of instances.
|
private java.lang.String |
instanceType
The instance type.
|
private java.lang.String |
networkPlatform
The network platform (
EC2-Classic or EC2-VPC ). |
private java.util.Date |
nextSlotStartTime
The time for the next schedule to start.
|
private java.lang.String |
platform
The platform (
Linux/UNIX or Windows ). |
private java.util.Date |
previousSlotEndTime
The time that the previous schedule ended or will end.
|
private ScheduledInstanceRecurrence |
recurrence
The schedule recurrence.
|
private java.lang.String |
scheduledInstanceId
The Scheduled Instance ID.
|
private java.lang.Integer |
slotDurationInHours
The number of hours in the schedule.
|
private java.util.Date |
termEndDate
The end date for the Scheduled Instance.
|
private java.util.Date |
termStartDate
The start date for the Scheduled Instance.
|
private java.lang.Integer |
totalScheduledInstanceHours
The total number of hours for a single instance for the entire term.
|
Constructor and Description |
---|
ScheduledInstance() |
Modifier and Type | Method and Description |
---|---|
ScheduledInstance |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone.
|
java.util.Date |
getCreateDate()
The date when the Scheduled Instance was purchased.
|
java.lang.String |
getHourlyPrice()
The hourly price for a single instance.
|
java.lang.Integer |
getInstanceCount()
The number of instances.
|
java.lang.String |
getInstanceType()
The instance type.
|
java.lang.String |
getNetworkPlatform()
The network platform (
EC2-Classic or EC2-VPC ). |
java.util.Date |
getNextSlotStartTime()
The time for the next schedule to start.
|
java.lang.String |
getPlatform()
The platform (
Linux/UNIX or Windows ). |
java.util.Date |
getPreviousSlotEndTime()
The time that the previous schedule ended or will end.
|
ScheduledInstanceRecurrence |
getRecurrence()
The schedule recurrence.
|
java.lang.String |
getScheduledInstanceId()
The Scheduled Instance ID.
|
java.lang.Integer |
getSlotDurationInHours()
The number of hours in the schedule.
|
java.util.Date |
getTermEndDate()
The end date for the Scheduled Instance.
|
java.util.Date |
getTermStartDate()
The start date for the Scheduled Instance.
|
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 |
setCreateDate(java.util.Date createDate)
The date when the Scheduled Instance was purchased.
|
void |
setHourlyPrice(java.lang.String hourlyPrice)
The hourly price for a single instance.
|
void |
setInstanceCount(java.lang.Integer instanceCount)
The number of instances.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type.
|
void |
setNetworkPlatform(java.lang.String networkPlatform)
The network platform (
EC2-Classic or EC2-VPC ). |
void |
setNextSlotStartTime(java.util.Date nextSlotStartTime)
The time for the next schedule to start.
|
void |
setPlatform(java.lang.String platform)
The platform (
Linux/UNIX or Windows ). |
void |
setPreviousSlotEndTime(java.util.Date previousSlotEndTime)
The time that the previous schedule ended or will end.
|
void |
setRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
|
void |
setScheduledInstanceId(java.lang.String scheduledInstanceId)
The Scheduled Instance ID.
|
void |
setSlotDurationInHours(java.lang.Integer slotDurationInHours)
The number of hours in the schedule.
|
void |
setTermEndDate(java.util.Date termEndDate)
The end date for the Scheduled Instance.
|
void |
setTermStartDate(java.util.Date termStartDate)
The start date for the Scheduled Instance.
|
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.
|
ScheduledInstance |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
|
ScheduledInstance |
withCreateDate(java.util.Date createDate)
The date when the Scheduled Instance was purchased.
|
ScheduledInstance |
withHourlyPrice(java.lang.String hourlyPrice)
The hourly price for a single instance.
|
ScheduledInstance |
withInstanceCount(java.lang.Integer instanceCount)
The number of instances.
|
ScheduledInstance |
withInstanceType(java.lang.String instanceType)
The instance type.
|
ScheduledInstance |
withNetworkPlatform(java.lang.String networkPlatform)
The network platform (
EC2-Classic or EC2-VPC ). |
ScheduledInstance |
withNextSlotStartTime(java.util.Date nextSlotStartTime)
The time for the next schedule to start.
|
ScheduledInstance |
withPlatform(java.lang.String platform)
The platform (
Linux/UNIX or Windows ). |
ScheduledInstance |
withPreviousSlotEndTime(java.util.Date previousSlotEndTime)
The time that the previous schedule ended or will end.
|
ScheduledInstance |
withRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
|
ScheduledInstance |
withScheduledInstanceId(java.lang.String scheduledInstanceId)
The Scheduled Instance ID.
|
ScheduledInstance |
withSlotDurationInHours(java.lang.Integer slotDurationInHours)
The number of hours in the schedule.
|
ScheduledInstance |
withTermEndDate(java.util.Date termEndDate)
The end date for the Scheduled Instance.
|
ScheduledInstance |
withTermStartDate(java.util.Date termStartDate)
The start date for the Scheduled Instance.
|
ScheduledInstance |
withTotalScheduledInstanceHours(java.lang.Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
|
private java.lang.String scheduledInstanceId
The Scheduled Instance ID.
private java.lang.String instanceType
The instance type.
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.Integer slotDurationInHours
The number of hours in the schedule.
private ScheduledInstanceRecurrence recurrence
The schedule recurrence.
private java.util.Date previousSlotEndTime
The time that the previous schedule ended or will end.
private java.util.Date nextSlotStartTime
The time for the next 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 instanceCount
The number of instances.
private java.util.Date termStartDate
The start date for the Scheduled Instance.
private java.util.Date termEndDate
The end date for the Scheduled Instance.
private java.util.Date createDate
The date when the Scheduled Instance was purchased.
public void setScheduledInstanceId(java.lang.String scheduledInstanceId)
The Scheduled Instance ID.
scheduledInstanceId
- The Scheduled Instance ID.public java.lang.String getScheduledInstanceId()
The Scheduled Instance ID.
public ScheduledInstance withScheduledInstanceId(java.lang.String scheduledInstanceId)
The Scheduled Instance ID.
scheduledInstanceId
- The Scheduled Instance ID.public void setInstanceType(java.lang.String instanceType)
The instance type.
instanceType
- The instance type.public java.lang.String getInstanceType()
The instance type.
public ScheduledInstance withInstanceType(java.lang.String instanceType)
The instance type.
instanceType
- The instance type.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 ScheduledInstance 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 ScheduledInstance 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 ScheduledInstance withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.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 ScheduledInstance 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 ScheduledInstance withRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
recurrence
- The schedule recurrence.public void setPreviousSlotEndTime(java.util.Date previousSlotEndTime)
The time that the previous schedule ended or will end.
previousSlotEndTime
- The time that the previous schedule ended or will end.public java.util.Date getPreviousSlotEndTime()
The time that the previous schedule ended or will end.
public ScheduledInstance withPreviousSlotEndTime(java.util.Date previousSlotEndTime)
The time that the previous schedule ended or will end.
previousSlotEndTime
- The time that the previous schedule ended or will end.public void setNextSlotStartTime(java.util.Date nextSlotStartTime)
The time for the next schedule to start.
nextSlotStartTime
- The time for the next schedule to start.public java.util.Date getNextSlotStartTime()
The time for the next schedule to start.
public ScheduledInstance withNextSlotStartTime(java.util.Date nextSlotStartTime)
The time for the next schedule to start.
nextSlotStartTime
- The time for the next 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 ScheduledInstance 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 ScheduledInstance 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 setInstanceCount(java.lang.Integer instanceCount)
The number of instances.
instanceCount
- The number of instances.public java.lang.Integer getInstanceCount()
The number of instances.
public ScheduledInstance withInstanceCount(java.lang.Integer instanceCount)
The number of instances.
instanceCount
- The number of instances.public void setTermStartDate(java.util.Date termStartDate)
The start date for the Scheduled Instance.
termStartDate
- The start date for the Scheduled Instance.public java.util.Date getTermStartDate()
The start date for the Scheduled Instance.
public ScheduledInstance withTermStartDate(java.util.Date termStartDate)
The start date for the Scheduled Instance.
termStartDate
- The start date for the Scheduled Instance.public void setTermEndDate(java.util.Date termEndDate)
The end date for the Scheduled Instance.
termEndDate
- The end date for the Scheduled Instance.public java.util.Date getTermEndDate()
The end date for the Scheduled Instance.
public ScheduledInstance withTermEndDate(java.util.Date termEndDate)
The end date for the Scheduled Instance.
termEndDate
- The end date for the Scheduled Instance.public void setCreateDate(java.util.Date createDate)
The date when the Scheduled Instance was purchased.
createDate
- The date when the Scheduled Instance was purchased.public java.util.Date getCreateDate()
The date when the Scheduled Instance was purchased.
public ScheduledInstance withCreateDate(java.util.Date createDate)
The date when the Scheduled Instance was purchased.
createDate
- The date when the Scheduled Instance was purchased.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 ScheduledInstance clone()
clone
in class java.lang.Object