@Generated(value="software.amazon.awssdk:codegen") public final class FleetCapacityReservation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FleetCapacityReservation.Builder,FleetCapacityReservation>
Information about a Capacity Reservation in a Capacity Reservation Fleet.
Modifier and Type | Class and Description |
---|---|
static interface |
FleetCapacityReservation.Builder |
Modifier and Type | Method and Description |
---|---|
String |
availabilityZone()
The Availability Zone in which the Capacity Reservation reserves capacity.
|
String |
availabilityZoneId()
The ID of the Availability Zone in which the Capacity Reservation reserves capacity.
|
static FleetCapacityReservation.Builder |
builder() |
String |
capacityReservationId()
The ID of the Capacity Reservation.
|
Instant |
createDate()
The date and time at which the Capacity Reservation was created.
|
Boolean |
ebsOptimized()
Indicates whether the Capacity Reservation reserves capacity for EBS-optimized instance types.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Double |
fulfilledCapacity()
The number of capacity units fulfilled by the Capacity Reservation.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
CapacityReservationInstancePlatform |
instancePlatform()
The type of operating system for which the Capacity Reservation reserves capacity.
|
String |
instancePlatformAsString()
The type of operating system for which the Capacity Reservation reserves capacity.
|
InstanceType |
instanceType()
The instance type for which the Capacity Reservation reserves capacity.
|
String |
instanceTypeAsString()
The instance type for which the Capacity Reservation reserves capacity.
|
Integer |
priority()
The priority of the instance type in the Capacity Reservation Fleet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FleetCapacityReservation.Builder> |
serializableBuilderClass() |
FleetCapacityReservation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
totalInstanceCount()
The total number of instances for which the Capacity Reservation reserves capacity.
|
Double |
weight()
The weight of the instance type in the Capacity Reservation Fleet.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String capacityReservationId()
The ID of the Capacity Reservation.
public final String availabilityZoneId()
The ID of the Availability Zone in which the Capacity Reservation reserves capacity.
public final InstanceType instanceType()
The instance type for which the Capacity Reservation 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()
.
InstanceType
public final String instanceTypeAsString()
The instance type for which the Capacity Reservation 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()
.
InstanceType
public final CapacityReservationInstancePlatform instancePlatform()
The type of operating system for which the Capacity Reservation 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()
.
CapacityReservationInstancePlatform
public final String instancePlatformAsString()
The type of operating system for which the Capacity Reservation 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()
.
CapacityReservationInstancePlatform
public final String availabilityZone()
The Availability Zone in which the Capacity Reservation reserves capacity.
public final Integer totalInstanceCount()
The total number of instances for which the Capacity Reservation reserves capacity.
public final Double fulfilledCapacity()
The number of capacity units fulfilled by the Capacity Reservation. For more information, see Total target capacity in the Amazon EC2 User Guide.
public final Boolean ebsOptimized()
Indicates whether the Capacity Reservation reserves capacity for EBS-optimized instance types.
public final Instant createDate()
The date and time at which the Capacity Reservation was created.
public final Double weight()
The weight of the instance type in the Capacity Reservation Fleet. For more information, see Instance type weight in the Amazon EC2 User Guide.
public final Integer priority()
The priority of the instance type in the Capacity Reservation Fleet. For more information, see Instance type priority in the Amazon EC2 User Guide.
public FleetCapacityReservation.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<FleetCapacityReservation.Builder,FleetCapacityReservation>
public static FleetCapacityReservation.Builder builder()
public static Class<? extends FleetCapacityReservation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.