Class ScheduledInstance
- All Implemented Interfaces:
Serializable, Cloneable
Describes a Scheduled Instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe Availability Zone.The date when the Scheduled Instance was purchased.The hourly price for a single instance.The number of instances.The instance type.The network platform (EC2-ClassicorEC2-VPC).The time for the next schedule to start.The platform (Linux/UNIXorWindows).The time that the previous schedule ended or will end.The schedule recurrence.The Scheduled Instance ID.The number of hours in the schedule.The end date for the Scheduled Instance.The start date for the Scheduled Instance.The total number of hours for a single instance for the entire term.inthashCode()voidsetAvailabilityZone(String availabilityZone) The Availability Zone.voidsetCreateDate(Date createDate) The date when the Scheduled Instance was purchased.voidsetHourlyPrice(String hourlyPrice) The hourly price for a single instance.voidsetInstanceCount(Integer instanceCount) The number of instances.voidsetInstanceType(String instanceType) The instance type.voidsetNetworkPlatform(String networkPlatform) The network platform (EC2-ClassicorEC2-VPC).voidsetNextSlotStartTime(Date nextSlotStartTime) The time for the next schedule to start.voidsetPlatform(String platform) The platform (Linux/UNIXorWindows).voidsetPreviousSlotEndTime(Date previousSlotEndTime) The time that the previous schedule ended or will end.voidsetRecurrence(ScheduledInstanceRecurrence recurrence) The schedule recurrence.voidsetScheduledInstanceId(String scheduledInstanceId) The Scheduled Instance ID.voidsetSlotDurationInHours(Integer slotDurationInHours) The number of hours in the schedule.voidsetTermEndDate(Date termEndDate) The end date for the Scheduled Instance.voidsetTermStartDate(Date termStartDate) The start date for the Scheduled Instance.voidsetTotalScheduledInstanceHours(Integer totalScheduledInstanceHours) The total number of hours for a single instance for the entire term.toString()Returns a string representation of this object; useful for testing and debugging.withAvailabilityZone(String availabilityZone) The Availability Zone.withCreateDate(Date createDate) The date when the Scheduled Instance was purchased.withHourlyPrice(String hourlyPrice) The hourly price for a single instance.withInstanceCount(Integer instanceCount) The number of instances.withInstanceType(String instanceType) The instance type.withNetworkPlatform(String networkPlatform) The network platform (EC2-ClassicorEC2-VPC).withNextSlotStartTime(Date nextSlotStartTime) The time for the next schedule to start.withPlatform(String platform) The platform (Linux/UNIXorWindows).withPreviousSlotEndTime(Date previousSlotEndTime) The time that the previous schedule ended or will end.withRecurrence(ScheduledInstanceRecurrence recurrence) The schedule recurrence.withScheduledInstanceId(String scheduledInstanceId) The Scheduled Instance ID.withSlotDurationInHours(Integer slotDurationInHours) The number of hours in the schedule.withTermEndDate(Date termEndDate) The end date for the Scheduled Instance.withTermStartDate(Date termStartDate) The start date for the Scheduled Instance.withTotalScheduledInstanceHours(Integer totalScheduledInstanceHours) The total number of hours for a single instance for the entire term.
-
Constructor Details
-
ScheduledInstance
public ScheduledInstance()
-
-
Method Details
-
setScheduledInstanceId
The Scheduled Instance ID.
- Parameters:
scheduledInstanceId- The Scheduled Instance ID.
-
getScheduledInstanceId
The Scheduled Instance ID.
- Returns:
- The Scheduled Instance ID.
-
withScheduledInstanceId
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
The instance type.
- Parameters:
instanceType- The instance type.
-
getInstanceType
-
withInstanceType
The instance type.
- Parameters:
instanceType- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
The platform (
Linux/UNIXorWindows).- Parameters:
platform- The platform (Linux/UNIXorWindows).
-
getPlatform
The platform (
Linux/UNIXorWindows).- Returns:
- The platform (
Linux/UNIXorWindows).
-
withPlatform
The platform (
Linux/UNIXorWindows).- Parameters:
platform- The platform (Linux/UNIXorWindows).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNetworkPlatform
The network platform (
EC2-ClassicorEC2-VPC).- Parameters:
networkPlatform- The network platform (EC2-ClassicorEC2-VPC).
-
getNetworkPlatform
The network platform (
EC2-ClassicorEC2-VPC).- Returns:
- The network platform (
EC2-ClassicorEC2-VPC).
-
withNetworkPlatform
The network platform (
EC2-ClassicorEC2-VPC).- Parameters:
networkPlatform- The network platform (EC2-ClassicorEC2-VPC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
The Availability Zone.
- Parameters:
availabilityZone- The Availability Zone.
-
getAvailabilityZone
-
withAvailabilityZone
The Availability Zone.
- Parameters:
availabilityZone- The Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSlotDurationInHours
The number of hours in the schedule.
- Parameters:
slotDurationInHours- The number of hours in the schedule.
-
getSlotDurationInHours
The number of hours in the schedule.
- Returns:
- The number of hours in the schedule.
-
withSlotDurationInHours
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
The schedule recurrence.
- Parameters:
recurrence- The schedule recurrence.
-
getRecurrence
The schedule recurrence.
- Returns:
- The schedule recurrence.
-
withRecurrence
The schedule recurrence.
- Parameters:
recurrence- The schedule recurrence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPreviousSlotEndTime
The time that the previous schedule ended or will end.
- Parameters:
previousSlotEndTime- The time that the previous schedule ended or will end.
-
getPreviousSlotEndTime
The time that the previous schedule ended or will end.
- Returns:
- The time that the previous schedule ended or will end.
-
withPreviousSlotEndTime
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
The time for the next schedule to start.
- Parameters:
nextSlotStartTime- The time for the next schedule to start.
-
getNextSlotStartTime
The time for the next schedule to start.
- Returns:
- The time for the next schedule to start.
-
withNextSlotStartTime
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
The hourly price for a single instance.
- Parameters:
hourlyPrice- The hourly price for a single instance.
-
getHourlyPrice
The hourly price for a single instance.
- Returns:
- The hourly price for a single instance.
-
withHourlyPrice
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
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
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
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
The number of instances.
- Parameters:
instanceCount- The number of instances.
-
getInstanceCount
-
withInstanceCount
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
The start date for the Scheduled Instance.
- Parameters:
termStartDate- The start date for the Scheduled Instance.
-
getTermStartDate
The start date for the Scheduled Instance.
- Returns:
- The start date for the Scheduled Instance.
-
withTermStartDate
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
The end date for the Scheduled Instance.
- Parameters:
termEndDate- The end date for the Scheduled Instance.
-
getTermEndDate
The end date for the Scheduled Instance.
- Returns:
- The end date for the Scheduled Instance.
-
withTermEndDate
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
The date when the Scheduled Instance was purchased.
- Parameters:
createDate- The date when the Scheduled Instance was purchased.
-
getCreateDate
The date when the Scheduled Instance was purchased.
- Returns:
- The date when the Scheduled Instance was purchased.
-
withCreateDate
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
-
equals
-
hashCode
-
clone
-