public class ScheduledInstance
extends java.lang.Object
implements java.io.Serializable
Describes a Scheduled Instance.
Constructor and Description |
---|
ScheduledInstance() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getScheduledInstanceId()
public void setScheduledInstanceId(java.lang.String scheduledInstanceId)
scheduledInstanceId
- The Scheduled Instance ID.public ScheduledInstance withScheduledInstanceId(java.lang.String scheduledInstanceId)
Returns a reference to this object so that method calls can be chained together.
scheduledInstanceId
- The Scheduled Instance ID.public java.lang.String getInstanceType()
public void setInstanceType(java.lang.String instanceType)
instanceType
- The instance type.public ScheduledInstance withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType
- The instance type.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 ScheduledInstance 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 ScheduledInstance 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 ScheduledInstance 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.Integer getSlotDurationInHours()
public void setSlotDurationInHours(java.lang.Integer slotDurationInHours)
slotDurationInHours
- The number of hours in the schedule.public ScheduledInstance 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 ScheduledInstance 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 getPreviousSlotEndTime()
public void setPreviousSlotEndTime(java.util.Date previousSlotEndTime)
previousSlotEndTime
- The time that the previous schedule ended or will end.public ScheduledInstance withPreviousSlotEndTime(java.util.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 java.util.Date getNextSlotStartTime()
public void setNextSlotStartTime(java.util.Date nextSlotStartTime)
nextSlotStartTime
- The time for the next schedule to start.public ScheduledInstance withNextSlotStartTime(java.util.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 java.lang.String getHourlyPrice()
public void setHourlyPrice(java.lang.String hourlyPrice)
hourlyPrice
- The hourly price for a single instance.public ScheduledInstance 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 ScheduledInstance 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 getInstanceCount()
public void setInstanceCount(java.lang.Integer instanceCount)
instanceCount
- The number of instances.public ScheduledInstance withInstanceCount(java.lang.Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount
- The number of instances.public java.util.Date getTermStartDate()
public void setTermStartDate(java.util.Date termStartDate)
termStartDate
- The start date for the Scheduled Instance.public ScheduledInstance withTermStartDate(java.util.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 java.util.Date getTermEndDate()
public void setTermEndDate(java.util.Date termEndDate)
termEndDate
- The end date for the Scheduled Instance.public ScheduledInstance withTermEndDate(java.util.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 java.util.Date getCreateDate()
public void setCreateDate(java.util.Date createDate)
createDate
- The date when the Scheduled Instance was purchased.public ScheduledInstance withCreateDate(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.