Class ReservationFleetInstanceSpecification
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReservationFleetInstanceSpecification.Builder,ReservationFleetInstanceSpecification>
Information about an instance type to use in a Capacity Reservation Fleet.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Availability Zone in which the Capacity Reservation Fleet reserves the capacity.final StringThe ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity.builder()final BooleanIndicates whether the Capacity Reservation Fleet supports EBS-optimized instances types.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()The type of operating system for which the Capacity Reservation Fleet reserves capacity.final StringThe type of operating system for which the Capacity Reservation Fleet reserves capacity.final InstanceTypeThe instance type for which the Capacity Reservation Fleet reserves capacity.final StringThe instance type for which the Capacity Reservation Fleet reserves capacity.final Integerpriority()The priority to assign to the instance type.static Class<? extends ReservationFleetInstanceSpecification.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final Doubleweight()The number of capacity units provided by the specified instance type.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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,
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 Fleet reserves capacity.
- See Also:
-
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,
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 Fleet reserves capacity.
- See Also:
-
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,
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 Fleet reserves capacity.
- See Also:
-
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,
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 Fleet reserves capacity.
- See Also:
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ReservationFleetInstanceSpecification.Builder,ReservationFleetInstanceSpecification> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends ReservationFleetInstanceSpecification.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-