Class ScheduledInstance
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a Scheduled Instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The 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-Classic
orEC2-VPC
).The time for the next schedule to start.The platform (Linux/UNIX
orWindows
).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.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.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-Classic
orEC2-VPC
).withNextSlotStartTime
(Date nextSlotStartTime) The time for the next schedule to start.withPlatform
(String platform) The platform (Linux/UNIX
orWindows
).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
The instance type.
- Returns:
- The instance type.
-
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/UNIX
orWindows
).- Parameters:
platform
- The platform (Linux/UNIX
orWindows
).
-
getPlatform
The platform (
Linux/UNIX
orWindows
).- Returns:
- The platform (
Linux/UNIX
orWindows
).
-
withPlatform
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
The network platform (
EC2-Classic
orEC2-VPC
).- Parameters:
networkPlatform
- The network platform (EC2-Classic
orEC2-VPC
).
-
getNetworkPlatform
The network platform (
EC2-Classic
orEC2-VPC
).- Returns:
- The network platform (
EC2-Classic
orEC2-VPC
).
-
withNetworkPlatform
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
The Availability Zone.
- Parameters:
availabilityZone
- The Availability Zone.
-
getAvailabilityZone
The Availability Zone.
- Returns:
- The Availability Zone.
-
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
The number of instances.
- Returns:
- The number of instances.
-
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-