Class ScheduledInstanceAvailability
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a schedule that is available for your Scheduled Instances.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Availability Zone.The number of available instances.The time period for the first schedule to start.The hourly price for a single instance.The instance type.The maximum term.The minimum term.The network platform (EC2-Classic
orEC2-VPC
).The platform (Linux/UNIX
orWindows
).The purchase token.The schedule recurrence.The number of hours in the schedule.The total number of hours for a single instance for the entire term.int
hashCode()
void
setAvailabilityZone
(String availabilityZone) The Availability Zone.void
setAvailableInstanceCount
(Integer availableInstanceCount) The number of available instances.void
setFirstSlotStartTime
(Date firstSlotStartTime) The time period for the first schedule to start.void
setHourlyPrice
(String hourlyPrice) The hourly price for a single instance.void
setInstanceType
(String instanceType) The instance type.void
setMaxTermDurationInDays
(Integer maxTermDurationInDays) The maximum term.void
setMinTermDurationInDays
(Integer minTermDurationInDays) The minimum term.void
setNetworkPlatform
(String networkPlatform) The network platform (EC2-Classic
orEC2-VPC
).void
setPlatform
(String platform) The platform (Linux/UNIX
orWindows
).void
setPurchaseToken
(String purchaseToken) The purchase token.void
setRecurrence
(ScheduledInstanceRecurrence recurrence) The schedule recurrence.void
setSlotDurationInHours
(Integer slotDurationInHours) The number of hours in the schedule.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.withAvailableInstanceCount
(Integer availableInstanceCount) The number of available instances.withFirstSlotStartTime
(Date firstSlotStartTime) The time period for the first schedule to start.withHourlyPrice
(String hourlyPrice) The hourly price for a single instance.withInstanceType
(String instanceType) The instance type.withMaxTermDurationInDays
(Integer maxTermDurationInDays) The maximum term.withMinTermDurationInDays
(Integer minTermDurationInDays) The minimum term.withNetworkPlatform
(String networkPlatform) The network platform (EC2-Classic
orEC2-VPC
).withPlatform
(String platform) The platform (Linux/UNIX
orWindows
).withPurchaseToken
(String purchaseToken) The purchase token.withRecurrence
(ScheduledInstanceRecurrence recurrence) The schedule recurrence.withSlotDurationInHours
(Integer slotDurationInHours) The number of hours in the schedule.withTotalScheduledInstanceHours
(Integer totalScheduledInstanceHours) The total number of hours for a single instance for the entire term.
-
Constructor Details
-
ScheduledInstanceAvailability
public ScheduledInstanceAvailability()
-
-
Method Details
-
setInstanceType
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
- Parameters:
instanceType
- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
-
getInstanceType
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
- Returns:
- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
-
withInstanceType
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
- Parameters:
instanceType
- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.- 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.
-
setPurchaseToken
The purchase token. This token expires in two hours.
- Parameters:
purchaseToken
- The purchase token. This token expires in two hours.
-
getPurchaseToken
The purchase token. This token expires in two hours.
- Returns:
- The purchase token. This token expires in two hours.
-
withPurchaseToken
The purchase token. This token expires in two hours.
- Parameters:
purchaseToken
- The purchase token. This token expires in two hours.- 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.
-
setFirstSlotStartTime
The time period for the first schedule to start.
- Parameters:
firstSlotStartTime
- The time period for the first schedule to start.
-
getFirstSlotStartTime
The time period for the first schedule to start.
- Returns:
- The time period for the first schedule to start.
-
withFirstSlotStartTime
The time period for the first schedule to start.
- Parameters:
firstSlotStartTime
- The time period for the first 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
public ScheduledInstanceAvailability 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.
-
setAvailableInstanceCount
The number of available instances.
- Parameters:
availableInstanceCount
- The number of available instances.
-
getAvailableInstanceCount
The number of available instances.
- Returns:
- The number of available instances.
-
withAvailableInstanceCount
The number of available instances.
- Parameters:
availableInstanceCount
- The number of available instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMinTermDurationInDays
The minimum term. The only possible value is 365 days.
- Parameters:
minTermDurationInDays
- The minimum term. The only possible value is 365 days.
-
getMinTermDurationInDays
The minimum term. The only possible value is 365 days.
- Returns:
- The minimum term. The only possible value is 365 days.
-
withMinTermDurationInDays
The minimum term. The only possible value is 365 days.
- Parameters:
minTermDurationInDays
- The minimum term. The only possible value is 365 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxTermDurationInDays
The maximum term. The only possible value is 365 days.
- Parameters:
maxTermDurationInDays
- The maximum term. The only possible value is 365 days.
-
getMaxTermDurationInDays
The maximum term. The only possible value is 365 days.
- Returns:
- The maximum term. The only possible value is 365 days.
-
withMaxTermDurationInDays
The maximum term. The only possible value is 365 days.
- Parameters:
maxTermDurationInDays
- The maximum term. The only possible value is 365 days.- 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
-