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 interfaceScheduledInstanceAvailability.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The Availability Zone.IntegeravailableInstanceCount()The number of available instances.static ScheduledInstanceAvailability.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantfirstSlotStartTime()The time period for the first schedule to start.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhourlyPrice()The hourly price for a single instance.StringinstanceType()The instance type.IntegermaxTermDurationInDays()The maximum term.IntegerminTermDurationInDays()The minimum term.StringnetworkPlatform()The network platform.Stringplatform()The platform (Linux/UNIXorWindows).StringpurchaseToken()The purchase token.ScheduledInstanceRecurrencerecurrence()The schedule recurrence.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ScheduledInstanceAvailability.Builder>serializableBuilderClass()IntegerslotDurationInHours()The number of hours in the schedule.ScheduledInstanceAvailability.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegertotalScheduledInstanceHours()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/UNIXorWindows).- Returns:
- The platform (
Linux/UNIXorWindows).
-
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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-