@Generated(value="software.amazon.awssdk:codegen") public final class ReservationFleetInstanceSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReservationFleetInstanceSpecification.Builder,ReservationFleetInstanceSpecification>
Information about an instance type to use in a Capacity Reservation Fleet.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReservationFleetInstanceSpecification.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
availabilityZone()
The Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
|
String |
availabilityZoneId()
The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
|
static ReservationFleetInstanceSpecification.Builder |
builder() |
Boolean |
ebsOptimized()
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
CapacityReservationInstancePlatform |
instancePlatform()
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
|
String |
instancePlatformAsString()
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
|
InstanceType |
instanceType()
The instance type for which the Capacity Reservation Fleet reserves capacity.
|
String |
instanceTypeAsString()
The instance type for which the Capacity Reservation Fleet reserves capacity.
|
Integer |
priority()
The priority to assign to the instance type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReservationFleetInstanceSpecification.Builder> |
serializableBuilderClass() |
ReservationFleetInstanceSpecification.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Double |
weight()
The number of capacity units provided by the specified instance type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final InstanceType instanceType()
The instance type for which the Capacity Reservation Fleet reserves capacity.
If the service returns an enum value that is not available in the current SDK version, instanceType will
return InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
instanceTypeAsString().
InstanceTypepublic final String instanceTypeAsString()
The instance type for which the Capacity Reservation Fleet reserves capacity.
If the service returns an enum value that is not available in the current SDK version, instanceType will
return InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
instanceTypeAsString().
InstanceTypepublic final CapacityReservationInstancePlatform instancePlatform()
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
If the service returns an enum value that is not available in the current SDK version, instancePlatform
will return CapacityReservationInstancePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from instancePlatformAsString().
CapacityReservationInstancePlatformpublic final String instancePlatformAsString()
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
If the service returns an enum value that is not available in the current SDK version, instancePlatform
will return CapacityReservationInstancePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from instancePlatformAsString().
CapacityReservationInstancePlatformpublic final Double weight()
The number of capacity units provided by the specified instance type. This value, together with the total target capacity that you specify for the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide.
public final String availabilityZone()
The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
public final String availabilityZoneId()
The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
public final Boolean ebsOptimized()
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using EBS-optimized instance types.
public final Integer priority()
The priority to assign to the instance type. This value is used to determine which of the instance types specified for the Fleet should be prioritized for use. A lower value indicates a high priority. For more information, see Instance type priority in the Amazon EC2 User Guide.
public ReservationFleetInstanceSpecification.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ReservationFleetInstanceSpecification.Builder,ReservationFleetInstanceSpecification>public static ReservationFleetInstanceSpecification.Builder builder()
public static Class<? extends ReservationFleetInstanceSpecification.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.