Class ScheduledInstanceAvailability
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.ScheduledInstanceAvailability
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ScheduledInstanceAvailability.Builder,ScheduledInstanceAvailability>
@Generated("software.amazon.awssdk:codegen") public final class ScheduledInstanceAvailability extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ScheduledInstanceAvailability.Builder,ScheduledInstanceAvailability>
Describes a schedule that is available for your Scheduled Instances.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ScheduledInstanceAvailability.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
availabilityZone()
The Availability Zone.Integer
availableInstanceCount()
The number of available instances.static ScheduledInstanceAvailability.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
Instant
firstSlotStartTime()
The time period for the first schedule to start.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
hourlyPrice()
The hourly price for a single instance.String
instanceType()
The instance type.Integer
maxTermDurationInDays()
The maximum term.Integer
minTermDurationInDays()
The minimum term.String
networkPlatform()
The network platform.String
platform()
The platform (Linux/UNIX
orWindows
).String
purchaseToken()
The purchase token.ScheduledInstanceRecurrence
recurrence()
The schedule recurrence.List<SdkField<?>>
sdkFields()
static Class<? extends ScheduledInstanceAvailability.Builder>
serializableBuilderClass()
Integer
slotDurationInHours()
The number of hours in the schedule.ScheduledInstanceAvailability.Builder
toBuilder()
String
toString()
Returns a string representation of this object.Integer
totalScheduledInstanceHours()
The total number of hours for a single instance for the entire term.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
availabilityZone
public final String availabilityZone()
The Availability Zone.
- Returns:
- The Availability Zone.
-
availableInstanceCount
public final Integer availableInstanceCount()
The number of available instances.
- Returns:
- The number of available instances.
-
firstSlotStartTime
public final Instant firstSlotStartTime()
The time period for the first schedule to start.
- Returns:
- The time period for the first schedule to start.
-
hourlyPrice
public final String hourlyPrice()
The hourly price for a single instance.
- Returns:
- The hourly price for a single instance.
-
instanceType
public final String instanceType()
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.
-
maxTermDurationInDays
public final Integer maxTermDurationInDays()
The maximum term. The only possible value is 365 days.
- Returns:
- The maximum term. The only possible value is 365 days.
-
minTermDurationInDays
public final Integer minTermDurationInDays()
The minimum term. The only possible value is 365 days.
- Returns:
- The minimum term. The only possible value is 365 days.
-
networkPlatform
public final String networkPlatform()
The network platform.
- Returns:
- The network platform.
-
platform
public final String platform()
The platform (
Linux/UNIX
orWindows
).- Returns:
- The platform (
Linux/UNIX
orWindows
).
-
purchaseToken
public final String purchaseToken()
The purchase token. This token expires in two hours.
- Returns:
- The purchase token. This token expires in two hours.
-
recurrence
public final ScheduledInstanceRecurrence recurrence()
The schedule recurrence.
- Returns:
- The schedule recurrence.
-
slotDurationInHours
public final Integer slotDurationInHours()
The number of hours in the schedule.
- Returns:
- The number of hours in the schedule.
-
totalScheduledInstanceHours
public final Integer totalScheduledInstanceHours()
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.
-
toBuilder
public ScheduledInstanceAvailability.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ScheduledInstanceAvailability.Builder,ScheduledInstanceAvailability>
-
builder
public static ScheduledInstanceAvailability.Builder builder()
-
serializableBuilderClass
public static Class<? extends ScheduledInstanceAvailability.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-