Class FleetCapacityReservation
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.FleetCapacityReservation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FleetCapacityReservation.Builder,FleetCapacityReservation>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFleetCapacityReservation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The Availability Zone in which the Capacity Reservation reserves capacity.StringavailabilityZoneId()The ID of the Availability Zone in which the Capacity Reservation reserves capacity.static FleetCapacityReservation.Builderbuilder()StringcapacityReservationId()The ID of the Capacity Reservation.InstantcreateDate()The date and time at which the Capacity Reservation was created.BooleanebsOptimized()Indicates whether the Capacity Reservation reserves capacity for EBS-optimized instance types.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)DoublefulfilledCapacity()The number of capacity units fulfilled by the Capacity Reservation.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()CapacityReservationInstancePlatforminstancePlatform()The type of operating system for which the Capacity Reservation reserves capacity.StringinstancePlatformAsString()The type of operating system for which the Capacity Reservation reserves capacity.InstanceTypeinstanceType()The instance type for which the Capacity Reservation reserves capacity.StringinstanceTypeAsString()The instance type for which the Capacity Reservation reserves capacity.Integerpriority()The priority of the instance type in the Capacity Reservation Fleet.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends FleetCapacityReservation.Builder>serializableBuilderClass()FleetCapacityReservation.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegertotalInstanceCount()The total number of instances for which the Capacity Reservation reserves capacity.Doubleweight()The weight of the instance type in the Capacity Reservation Fleet.-
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
-
capacityReservationId
public final String capacityReservationId()
The ID of the Capacity Reservation.
- Returns:
- The ID of the Capacity Reservation.
-
availabilityZoneId
public final String availabilityZoneId()
The ID of the Availability Zone in which the Capacity Reservation reserves capacity.
- Returns:
- The ID of the Availability Zone in which the Capacity Reservation reserves capacity.
-
instanceType
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,
instanceTypewill returnInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The instance type for which the Capacity Reservation reserves capacity.
- See Also:
InstanceType
-
instanceTypeAsString
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,
instanceTypewill returnInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The instance type for which the Capacity Reservation reserves capacity.
- See Also:
InstanceType
-
instancePlatform
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,
instancePlatformwill returnCapacityReservationInstancePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstancePlatformAsString().- Returns:
- The type of operating system for which the Capacity Reservation reserves capacity.
- See Also:
CapacityReservationInstancePlatform
-
instancePlatformAsString
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,
instancePlatformwill returnCapacityReservationInstancePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstancePlatformAsString().- Returns:
- The type of operating system for which the Capacity Reservation reserves capacity.
- See Also:
CapacityReservationInstancePlatform
-
availabilityZone
public final String availabilityZone()
The Availability Zone in which the Capacity Reservation reserves capacity.
- Returns:
- The Availability Zone in which the Capacity Reservation reserves capacity.
-
totalInstanceCount
public final Integer totalInstanceCount()
The total number of instances for which the Capacity Reservation reserves capacity.
- Returns:
- The total number of instances for which the Capacity Reservation reserves capacity.
-
fulfilledCapacity
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.
- Returns:
- The number of capacity units fulfilled by the Capacity Reservation. For more information, see Total target capacity in the Amazon EC2 User Guide.
-
ebsOptimized
public final Boolean ebsOptimized()
Indicates whether the Capacity Reservation reserves capacity for EBS-optimized instance types.
- Returns:
- Indicates whether the Capacity Reservation reserves capacity for EBS-optimized instance types.
-
createDate
public final Instant createDate()
The date and time at which the Capacity Reservation was created.
- Returns:
- The date and time at which the Capacity Reservation was created.
-
weight
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.
- Returns:
- The weight of the instance type in the Capacity Reservation Fleet. For more information, see Instance type weight in the Amazon EC2 User Guide.
-
priority
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.
- Returns:
- The priority of the instance type in the Capacity Reservation Fleet. For more information, see Instance type priority in the Amazon EC2 User Guide.
-
toBuilder
public FleetCapacityReservation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FleetCapacityReservation.Builder,FleetCapacityReservation>
-
builder
public static FleetCapacityReservation.Builder builder()
-
serializableBuilderClass
public static Class<? extends FleetCapacityReservation.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-