Class ScheduledInstanceAvailability
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ScheduledInstanceAvailability.Builder,
ScheduledInstanceAvailability>
Describes a schedule that is available for your Scheduled Instances.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
The Availability Zone.final Integer
The number of available instances.builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Instant
The time period for the first schedule to start.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
The hourly price for a single instance.final String
The instance type.final Integer
The maximum term.final Integer
The minimum term.final String
The network platform.final String
platform()
The platform (Linux/UNIX
orWindows
).final String
The purchase token.The schedule recurrence.static Class
<? extends ScheduledInstanceAvailability.Builder> final Integer
The number of hours in the schedule.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Integer
The total number of hours for a single instance for the entire term.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
availabilityZone
The Availability Zone.
- Returns:
- The Availability Zone.
-
availableInstanceCount
The number of available instances.
- Returns:
- The number of available instances.
-
firstSlotStartTime
The time period for the first schedule to start.
- Returns:
- The time period for the first schedule to start.
-
hourlyPrice
The hourly price for a single instance.
- Returns:
- The hourly price for a single instance.
-
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
The maximum term. The only possible value is 365 days.
- Returns:
- The maximum term. The only possible value is 365 days.
-
minTermDurationInDays
The minimum term. The only possible value is 365 days.
- Returns:
- The minimum term. The only possible value is 365 days.
-
networkPlatform
The network platform.
- Returns:
- The network platform.
-
platform
The platform (
Linux/UNIX
orWindows
).- Returns:
- The platform (
Linux/UNIX
orWindows
).
-
purchaseToken
The purchase token. This token expires in two hours.
- Returns:
- The purchase token. This token expires in two hours.
-
recurrence
The schedule recurrence.
- Returns:
- The schedule recurrence.
-
slotDurationInHours
The number of hours in the schedule.
- Returns:
- The number of hours in the schedule.
-
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
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ScheduledInstanceAvailability.Builder,
ScheduledInstanceAvailability> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-