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