Class ScheduledInstanceAvailability
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ScheduledInstanceAvailability
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ScheduledInstanceAvailability extends Object implements Serializable, Cloneable
Describes a schedule that is available for your Scheduled Instances.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduledInstanceAvailability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledInstanceAvailability
clone()
boolean
equals(Object obj)
String
getAvailabilityZone()
The Availability Zone.Integer
getAvailableInstanceCount()
The number of available instances.Date
getFirstSlotStartTime()
The time period for the first schedule to start.String
getHourlyPrice()
The hourly price for a single instance.String
getInstanceType()
The instance type.Integer
getMaxTermDurationInDays()
The maximum term.Integer
getMinTermDurationInDays()
The minimum term.String
getNetworkPlatform()
The network platform (EC2-Classic
orEC2-VPC
).String
getPlatform()
The platform (Linux/UNIX
orWindows
).String
getPurchaseToken()
The purchase token.ScheduledInstanceRecurrence
getRecurrence()
The schedule recurrence.Integer
getSlotDurationInHours()
The number of hours in the schedule.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
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.ScheduledInstanceAvailability
withAvailabilityZone(String availabilityZone)
The Availability Zone.ScheduledInstanceAvailability
withAvailableInstanceCount(Integer availableInstanceCount)
The number of available instances.ScheduledInstanceAvailability
withFirstSlotStartTime(Date firstSlotStartTime)
The time period for the first schedule to start.ScheduledInstanceAvailability
withHourlyPrice(String hourlyPrice)
The hourly price for a single instance.ScheduledInstanceAvailability
withInstanceType(String instanceType)
The instance type.ScheduledInstanceAvailability
withMaxTermDurationInDays(Integer maxTermDurationInDays)
The maximum term.ScheduledInstanceAvailability
withMinTermDurationInDays(Integer minTermDurationInDays)
The minimum term.ScheduledInstanceAvailability
withNetworkPlatform(String networkPlatform)
The network platform (EC2-Classic
orEC2-VPC
).ScheduledInstanceAvailability
withPlatform(String platform)
The platform (Linux/UNIX
orWindows
).ScheduledInstanceAvailability
withPurchaseToken(String purchaseToken)
The purchase token.ScheduledInstanceAvailability
withRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.ScheduledInstanceAvailability
withSlotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.ScheduledInstanceAvailability
withTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
-
-
-
Method Detail
-
setInstanceType
public void setInstanceType(String instanceType)
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
public String 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
public ScheduledInstanceAvailability withInstanceType(String instanceType)
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
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 ScheduledInstanceAvailability 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 ScheduledInstanceAvailability 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 ScheduledInstanceAvailability 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.
-
setPurchaseToken
public void setPurchaseToken(String purchaseToken)
The purchase token. This token expires in two hours.
- Parameters:
purchaseToken
- The purchase token. This token expires in two hours.
-
getPurchaseToken
public String getPurchaseToken()
The purchase token. This token expires in two hours.
- Returns:
- The purchase token. This token expires in two hours.
-
withPurchaseToken
public ScheduledInstanceAvailability withPurchaseToken(String purchaseToken)
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
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 ScheduledInstanceAvailability 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 ScheduledInstanceAvailability 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.
-
setFirstSlotStartTime
public void setFirstSlotStartTime(Date firstSlotStartTime)
The time period for the first schedule to start.
- Parameters:
firstSlotStartTime
- The time period for the first schedule to start.
-
getFirstSlotStartTime
public Date getFirstSlotStartTime()
The time period for the first schedule to start.
- Returns:
- The time period for the first schedule to start.
-
withFirstSlotStartTime
public ScheduledInstanceAvailability withFirstSlotStartTime(Date firstSlotStartTime)
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
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 ScheduledInstanceAvailability 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 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
public void setAvailableInstanceCount(Integer availableInstanceCount)
The number of available instances.
- Parameters:
availableInstanceCount
- The number of available instances.
-
getAvailableInstanceCount
public Integer getAvailableInstanceCount()
The number of available instances.
- Returns:
- The number of available instances.
-
withAvailableInstanceCount
public ScheduledInstanceAvailability withAvailableInstanceCount(Integer availableInstanceCount)
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
public void setMinTermDurationInDays(Integer minTermDurationInDays)
The minimum term. The only possible value is 365 days.
- Parameters:
minTermDurationInDays
- The minimum term. The only possible value is 365 days.
-
getMinTermDurationInDays
public Integer getMinTermDurationInDays()
The minimum term. The only possible value is 365 days.
- Returns:
- The minimum term. The only possible value is 365 days.
-
withMinTermDurationInDays
public ScheduledInstanceAvailability withMinTermDurationInDays(Integer minTermDurationInDays)
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
public void setMaxTermDurationInDays(Integer maxTermDurationInDays)
The maximum term. The only possible value is 365 days.
- Parameters:
maxTermDurationInDays
- The maximum term. The only possible value is 365 days.
-
getMaxTermDurationInDays
public Integer getMaxTermDurationInDays()
The maximum term. The only possible value is 365 days.
- Returns:
- The maximum term. The only possible value is 365 days.
-
withMaxTermDurationInDays
public ScheduledInstanceAvailability withMaxTermDurationInDays(Integer maxTermDurationInDays)
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
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 ScheduledInstanceAvailability clone()
-
-