Class ScheduledInstance
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.ScheduledInstance
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ScheduledInstance.Builder,ScheduledInstance>
@Generated("software.amazon.awssdk:codegen") public final class ScheduledInstance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ScheduledInstance.Builder,ScheduledInstance>
Describes a Scheduled Instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceScheduledInstance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The Availability Zone.static ScheduledInstance.Builderbuilder()InstantcreateDate()The date when the Scheduled Instance was purchased.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhourlyPrice()The hourly price for a single instance.IntegerinstanceCount()The number of instances.StringinstanceType()The instance type.StringnetworkPlatform()The network platform.InstantnextSlotStartTime()The time for the next schedule to start.Stringplatform()The platform (Linux/UNIXorWindows).InstantpreviousSlotEndTime()The time that the previous schedule ended or will end.ScheduledInstanceRecurrencerecurrence()The schedule recurrence.StringscheduledInstanceId()The Scheduled Instance ID.List<SdkField<?>>sdkFields()static Class<? extends ScheduledInstance.Builder>serializableBuilderClass()IntegerslotDurationInHours()The number of hours in the schedule.InstanttermEndDate()The end date for the Scheduled Instance.InstanttermStartDate()The start date for the Scheduled Instance.ScheduledInstance.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.
-
createDate
public final Instant createDate()
The date when the Scheduled Instance was purchased.
- Returns:
- The date when the Scheduled Instance was purchased.
-
hourlyPrice
public final String hourlyPrice()
The hourly price for a single instance.
- Returns:
- The hourly price for a single instance.
-
instanceCount
public final Integer instanceCount()
The number of instances.
- Returns:
- The number of instances.
-
instanceType
public final String instanceType()
The instance type.
- Returns:
- The instance type.
-
networkPlatform
public final String networkPlatform()
The network platform.
- Returns:
- The network platform.
-
nextSlotStartTime
public final Instant nextSlotStartTime()
The time for the next schedule to start.
- Returns:
- The time for the next schedule to start.
-
platform
public final String platform()
The platform (
Linux/UNIXorWindows).- Returns:
- The platform (
Linux/UNIXorWindows).
-
previousSlotEndTime
public final Instant previousSlotEndTime()
The time that the previous schedule ended or will end.
- Returns:
- The time that the previous schedule ended or will end.
-
recurrence
public final ScheduledInstanceRecurrence recurrence()
The schedule recurrence.
- Returns:
- The schedule recurrence.
-
scheduledInstanceId
public final String scheduledInstanceId()
The Scheduled Instance ID.
- Returns:
- The Scheduled Instance ID.
-
slotDurationInHours
public final Integer slotDurationInHours()
The number of hours in the schedule.
- Returns:
- The number of hours in the schedule.
-
termEndDate
public final Instant termEndDate()
The end date for the Scheduled Instance.
- Returns:
- The end date for the Scheduled Instance.
-
termStartDate
public final Instant termStartDate()
The start date for the Scheduled Instance.
- Returns:
- The start date for the Scheduled Instance.
-
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 ScheduledInstance.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ScheduledInstance.Builder,ScheduledInstance>
-
builder
public static ScheduledInstance.Builder builder()
-
serializableBuilderClass
public static Class<? extends ScheduledInstance.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.
-
-