Class ScheduledInstance
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ScheduledInstance
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ScheduledInstance extends Object implements Serializable, Cloneable
Describes a Scheduled Instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduledInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
orEC2-VPC
).Date
getNextSlotStartTime()
The time for the next schedule to start.String
getPlatform()
The platform (Linux/UNIX
orWindows
).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
orEC2-VPC
).void
setNextSlotStartTime(Date nextSlotStartTime)
The time for the next schedule to start.void
setPlatform(String platform)
The platform (Linux/UNIX
orWindows
).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
orEC2-VPC
).ScheduledInstance
withNextSlotStartTime(Date nextSlotStartTime)
The time for the next schedule to start.ScheduledInstance
withPlatform(String platform)
The platform (Linux/UNIX
orWindows
).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.
-
-
-
Method Detail
-
setScheduledInstanceId
public void setScheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
- Parameters:
scheduledInstanceId
- The Scheduled Instance ID.
-
getScheduledInstanceId
public String getScheduledInstanceId()
The Scheduled Instance ID.
- Returns:
- The Scheduled Instance ID.
-
withScheduledInstanceId
public ScheduledInstance withScheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
- Parameters:
scheduledInstanceId
- The Scheduled Instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type.
- Parameters:
instanceType
- The instance type.
-
getInstanceType
public String getInstanceType()
The instance type.
- Returns:
- The instance type.
-
withInstanceType
public ScheduledInstance withInstanceType(String instanceType)
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
public void setPlatform(String platform)
The platform (
Linux/UNIX
orWindows
).- Parameters:
platform
- The platform (Linux/UNIX
orWindows
).
-
getPlatform
public String getPlatform()
The platform (
Linux/UNIX
orWindows
).- Returns:
- The platform (
Linux/UNIX
orWindows
).
-
withPlatform
public ScheduledInstance withPlatform(String platform)
The platform (
Linux/UNIX
orWindows
).- Parameters:
platform
- The platform (Linux/UNIX
orWindows
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNetworkPlatform
public void setNetworkPlatform(String networkPlatform)
The network platform (
EC2-Classic
orEC2-VPC
).- Parameters:
networkPlatform
- The network platform (EC2-Classic
orEC2-VPC
).
-
getNetworkPlatform
public String getNetworkPlatform()
The network platform (
EC2-Classic
orEC2-VPC
).- Returns:
- The network platform (
EC2-Classic
orEC2-VPC
).
-
withNetworkPlatform
public ScheduledInstance withNetworkPlatform(String networkPlatform)
The network platform (
EC2-Classic
orEC2-VPC
).- Parameters:
networkPlatform
- The network platform (EC2-Classic
orEC2-VPC
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The Availability Zone.
- Parameters:
availabilityZone
- The Availability Zone.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone.
- Returns:
- The Availability Zone.
-
withAvailabilityZone
public ScheduledInstance withAvailabilityZone(String availabilityZone)
The Availability Zone.
- Parameters:
availabilityZone
- The Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSlotDurationInHours
public void setSlotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.
- Parameters:
slotDurationInHours
- The number of hours in the schedule.
-
getSlotDurationInHours
public Integer getSlotDurationInHours()
The number of hours in the schedule.
- Returns:
- The number of hours in the schedule.
-
withSlotDurationInHours
public ScheduledInstance withSlotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.
- Parameters:
slotDurationInHours
- The number of hours in the schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRecurrence
public void setRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
- Parameters:
recurrence
- The schedule recurrence.
-
getRecurrence
public ScheduledInstanceRecurrence getRecurrence()
The schedule recurrence.
- Returns:
- The schedule recurrence.
-
withRecurrence
public ScheduledInstance withRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
- Parameters:
recurrence
- The schedule recurrence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPreviousSlotEndTime
public void setPreviousSlotEndTime(Date previousSlotEndTime)
The time that the previous schedule ended or will end.
- Parameters:
previousSlotEndTime
- The time that the previous schedule ended or will end.
-
getPreviousSlotEndTime
public Date getPreviousSlotEndTime()
The time that the previous schedule ended or will end.
- Returns:
- The time that the previous schedule ended or will end.
-
withPreviousSlotEndTime
public ScheduledInstance withPreviousSlotEndTime(Date previousSlotEndTime)
The time that the previous schedule ended or will end.
- Parameters:
previousSlotEndTime
- The time that the previous schedule ended or will end.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextSlotStartTime
public void setNextSlotStartTime(Date nextSlotStartTime)
The time for the next schedule to start.
- Parameters:
nextSlotStartTime
- The time for the next schedule to start.
-
getNextSlotStartTime
public Date getNextSlotStartTime()
The time for the next schedule to start.
- Returns:
- The time for the next schedule to start.
-
withNextSlotStartTime
public ScheduledInstance withNextSlotStartTime(Date nextSlotStartTime)
The time for the next schedule to start.
- Parameters:
nextSlotStartTime
- The time for the next schedule to start.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHourlyPrice
public void setHourlyPrice(String hourlyPrice)
The hourly price for a single instance.
- Parameters:
hourlyPrice
- The hourly price for a single instance.
-
getHourlyPrice
public String getHourlyPrice()
The hourly price for a single instance.
- Returns:
- The hourly price for a single instance.
-
withHourlyPrice
public ScheduledInstance withHourlyPrice(String hourlyPrice)
The hourly price for a single instance.
- Parameters:
hourlyPrice
- The hourly price for a single instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTotalScheduledInstanceHours
public void setTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
- Parameters:
totalScheduledInstanceHours
- The total number of hours for a single instance for the entire term.
-
getTotalScheduledInstanceHours
public Integer getTotalScheduledInstanceHours()
The total number of hours for a single instance for the entire term.
- Returns:
- The total number of hours for a single instance for the entire term.
-
withTotalScheduledInstanceHours
public ScheduledInstance withTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
- Parameters:
totalScheduledInstanceHours
- The total number of hours for a single instance for the entire term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceCount
public void setInstanceCount(Integer instanceCount)
The number of instances.
- Parameters:
instanceCount
- The number of instances.
-
getInstanceCount
public Integer getInstanceCount()
The number of instances.
- Returns:
- The number of instances.
-
withInstanceCount
public ScheduledInstance withInstanceCount(Integer instanceCount)
The number of instances.
- Parameters:
instanceCount
- The number of instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTermStartDate
public void setTermStartDate(Date termStartDate)
The start date for the Scheduled Instance.
- Parameters:
termStartDate
- The start date for the Scheduled Instance.
-
getTermStartDate
public Date getTermStartDate()
The start date for the Scheduled Instance.
- Returns:
- The start date for the Scheduled Instance.
-
withTermStartDate
public ScheduledInstance withTermStartDate(Date termStartDate)
The start date for the Scheduled Instance.
- Parameters:
termStartDate
- The start date for the Scheduled Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTermEndDate
public void setTermEndDate(Date termEndDate)
The end date for the Scheduled Instance.
- Parameters:
termEndDate
- The end date for the Scheduled Instance.
-
getTermEndDate
public Date getTermEndDate()
The end date for the Scheduled Instance.
- Returns:
- The end date for the Scheduled Instance.
-
withTermEndDate
public ScheduledInstance withTermEndDate(Date termEndDate)
The end date for the Scheduled Instance.
- Parameters:
termEndDate
- The end date for the Scheduled Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateDate
public void setCreateDate(Date createDate)
The date when the Scheduled Instance was purchased.
- Parameters:
createDate
- The date when the Scheduled Instance was purchased.
-
getCreateDate
public Date getCreateDate()
The date when the Scheduled Instance was purchased.
- Returns:
- The date when the Scheduled Instance was purchased.
-
withCreateDate
public ScheduledInstance withCreateDate(Date createDate)
The date when the Scheduled Instance was purchased.
- Parameters:
createDate
- The date when the Scheduled Instance was purchased.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScheduledInstance clone()
-
-