@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScheduledInstanceAvailability extends Object implements Serializable, Cloneable
Describes a schedule that is available for your Scheduled Instances.
Constructor and Description |
---|
ScheduledInstanceAvailability() |
Modifier and Type | Method and 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 or EC2-VPC ). |
String |
getPlatform()
The platform (
Linux/UNIX or Windows ). |
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 or EC2-VPC ). |
void |
setPlatform(String platform)
The platform (
Linux/UNIX or Windows ). |
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 or EC2-VPC ). |
ScheduledInstanceAvailability |
withPlatform(String platform)
The platform (
Linux/UNIX or Windows ). |
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.
|
public void setAvailabilityZone(String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.public String getAvailabilityZone()
The Availability Zone.
public ScheduledInstanceAvailability withAvailabilityZone(String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.public void setAvailableInstanceCount(Integer availableInstanceCount)
The number of available instances.
availableInstanceCount
- The number of available instances.public Integer getAvailableInstanceCount()
The number of available instances.
public ScheduledInstanceAvailability withAvailableInstanceCount(Integer availableInstanceCount)
The number of available instances.
availableInstanceCount
- The number of available instances.public void setFirstSlotStartTime(Date firstSlotStartTime)
The time period for the first schedule to start.
firstSlotStartTime
- The time period for the first schedule to start.public Date getFirstSlotStartTime()
The time period for the first schedule to start.
public ScheduledInstanceAvailability withFirstSlotStartTime(Date firstSlotStartTime)
The time period for the first schedule to start.
firstSlotStartTime
- The time period for the first schedule to start.public void setHourlyPrice(String hourlyPrice)
The hourly price for a single instance.
hourlyPrice
- The hourly price for a single instance.public String getHourlyPrice()
The hourly price for a single instance.
public ScheduledInstanceAvailability withHourlyPrice(String hourlyPrice)
The hourly price for a single instance.
hourlyPrice
- The hourly price for a single instance.public void setInstanceType(String instanceType)
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
instanceType
- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.public String getInstanceType()
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
public ScheduledInstanceAvailability withInstanceType(String instanceType)
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
instanceType
- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.public void setMaxTermDurationInDays(Integer maxTermDurationInDays)
The maximum term. The only possible value is 365 days.
maxTermDurationInDays
- The maximum term. The only possible value is 365 days.public Integer getMaxTermDurationInDays()
The maximum term. The only possible value is 365 days.
public ScheduledInstanceAvailability withMaxTermDurationInDays(Integer maxTermDurationInDays)
The maximum term. The only possible value is 365 days.
maxTermDurationInDays
- The maximum term. The only possible value is 365 days.public void setMinTermDurationInDays(Integer minTermDurationInDays)
The minimum term. The only possible value is 365 days.
minTermDurationInDays
- The minimum term. The only possible value is 365 days.public Integer getMinTermDurationInDays()
The minimum term. The only possible value is 365 days.
public ScheduledInstanceAvailability withMinTermDurationInDays(Integer minTermDurationInDays)
The minimum term. The only possible value is 365 days.
minTermDurationInDays
- The minimum term. The only possible value is 365 days.public void setNetworkPlatform(String networkPlatform)
The network platform (EC2-Classic
or EC2-VPC
).
networkPlatform
- The network platform (EC2-Classic
or EC2-VPC
).public String getNetworkPlatform()
The network platform (EC2-Classic
or EC2-VPC
).
EC2-Classic
or EC2-VPC
).public ScheduledInstanceAvailability withNetworkPlatform(String networkPlatform)
The network platform (EC2-Classic
or EC2-VPC
).
networkPlatform
- The network platform (EC2-Classic
or EC2-VPC
).public void setPlatform(String platform)
The platform (Linux/UNIX
or Windows
).
platform
- The platform (Linux/UNIX
or Windows
).public String getPlatform()
The platform (Linux/UNIX
or Windows
).
Linux/UNIX
or Windows
).public ScheduledInstanceAvailability withPlatform(String platform)
The platform (Linux/UNIX
or Windows
).
platform
- The platform (Linux/UNIX
or Windows
).public void setPurchaseToken(String purchaseToken)
The purchase token. This token expires in two hours.
purchaseToken
- The purchase token. This token expires in two hours.public String getPurchaseToken()
The purchase token. This token expires in two hours.
public ScheduledInstanceAvailability withPurchaseToken(String purchaseToken)
The purchase token. This token expires in two hours.
purchaseToken
- The purchase token. This token expires in two hours.public void setRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
recurrence
- The schedule recurrence.public ScheduledInstanceRecurrence getRecurrence()
The schedule recurrence.
public ScheduledInstanceAvailability withRecurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
recurrence
- The schedule recurrence.public void setSlotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.
slotDurationInHours
- The number of hours in the schedule.public Integer getSlotDurationInHours()
The number of hours in the schedule.
public ScheduledInstanceAvailability withSlotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.
slotDurationInHours
- The number of hours in the schedule.public void setTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
totalScheduledInstanceHours
- The total number of hours for a single instance for the entire term.public Integer getTotalScheduledInstanceHours()
The total number of hours for a single instance for the entire term.
public ScheduledInstanceAvailability withTotalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
totalScheduledInstanceHours
- The total number of hours for a single instance for the entire term.public String toString()
toString
in class Object
Object.toString()
public ScheduledInstanceAvailability clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.