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 ScheduledInstanceclone()booleanequals(Object obj)StringgetAvailabilityZone()The Availability Zone.DategetCreateDate()The date when the Scheduled Instance was purchased.StringgetHourlyPrice()The hourly price for a single instance.IntegergetInstanceCount()The number of instances.StringgetInstanceType()The instance type.StringgetNetworkPlatform()The network platform (EC2-ClassicorEC2-VPC).DategetNextSlotStartTime()The time for the next schedule to start.StringgetPlatform()The platform (Linux/UNIXorWindows).DategetPreviousSlotEndTime()The time that the previous schedule ended or will end.ScheduledInstanceRecurrencegetRecurrence()The schedule recurrence.StringgetScheduledInstanceId()The Scheduled Instance ID.IntegergetSlotDurationInHours()The number of hours in the schedule.DategetTermEndDate()The end date for the Scheduled Instance.DategetTermStartDate()The start date for the Scheduled Instance.IntegergetTotalScheduledInstanceHours()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.StringtoString()Returns a string representation of this object; useful for testing and debugging.ScheduledInstancewithAvailabilityZone(String availabilityZone)The Availability Zone.ScheduledInstancewithCreateDate(Date createDate)The date when the Scheduled Instance was purchased.ScheduledInstancewithHourlyPrice(String hourlyPrice)The hourly price for a single instance.ScheduledInstancewithInstanceCount(Integer instanceCount)The number of instances.ScheduledInstancewithInstanceType(String instanceType)The instance type.ScheduledInstancewithNetworkPlatform(String networkPlatform)The network platform (EC2-ClassicorEC2-VPC).ScheduledInstancewithNextSlotStartTime(Date nextSlotStartTime)The time for the next schedule to start.ScheduledInstancewithPlatform(String platform)The platform (Linux/UNIXorWindows).ScheduledInstancewithPreviousSlotEndTime(Date previousSlotEndTime)The time that the previous schedule ended or will end.ScheduledInstancewithRecurrence(ScheduledInstanceRecurrence recurrence)The schedule recurrence.ScheduledInstancewithScheduledInstanceId(String scheduledInstanceId)The Scheduled Instance ID.ScheduledInstancewithSlotDurationInHours(Integer slotDurationInHours)The number of hours in the schedule.ScheduledInstancewithTermEndDate(Date termEndDate)The end date for the Scheduled Instance.ScheduledInstancewithTermStartDate(Date termStartDate)The start date for the Scheduled Instance.ScheduledInstancewithTotalScheduledInstanceHours(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/UNIXorWindows).- Parameters:
platform- The platform (Linux/UNIXorWindows).
-
getPlatform
public String getPlatform()
The platform (
Linux/UNIXorWindows).- Returns:
- The platform (
Linux/UNIXorWindows).
-
withPlatform
public ScheduledInstance withPlatform(String platform)
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
public void setNetworkPlatform(String networkPlatform)
The network platform (
EC2-ClassicorEC2-VPC).- Parameters:
networkPlatform- The network platform (EC2-ClassicorEC2-VPC).
-
getNetworkPlatform
public String getNetworkPlatform()
The network platform (
EC2-ClassicorEC2-VPC).- Returns:
- The network platform (
EC2-ClassicorEC2-VPC).
-
withNetworkPlatform
public ScheduledInstance withNetworkPlatform(String networkPlatform)
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
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScheduledInstance clone()
-
-