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 interface
ScheduledInstance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
availabilityZone()
The Availability Zone.static ScheduledInstance.Builder
builder()
Instant
createDate()
The date when the Scheduled Instance was purchased.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
hourlyPrice()
The hourly price for a single instance.Integer
instanceCount()
The number of instances.String
instanceType()
The instance type.String
networkPlatform()
The network platform.Instant
nextSlotStartTime()
The time for the next schedule to start.String
platform()
The platform (Linux/UNIX
orWindows
).Instant
previousSlotEndTime()
The time that the previous schedule ended or will end.ScheduledInstanceRecurrence
recurrence()
The schedule recurrence.String
scheduledInstanceId()
The Scheduled Instance ID.List<SdkField<?>>
sdkFields()
static Class<? extends ScheduledInstance.Builder>
serializableBuilderClass()
Integer
slotDurationInHours()
The number of hours in the schedule.Instant
termEndDate()
The end date for the Scheduled Instance.Instant
termStartDate()
The start date for the Scheduled Instance.ScheduledInstance.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.
-
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/UNIX
orWindows
).- Returns:
- The platform (
Linux/UNIX
orWindows
).
-
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:
toBuilder
in 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:
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.
-
-