Class ReservationFleetInstanceSpecification

java.lang.Object
software.amazon.awssdk.services.ec2.model.ReservationFleetInstanceSpecification
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ReservationFleetInstanceSpecification.Builder,ReservationFleetInstanceSpecification>

@Generated("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.

See Also:
  • Method Details

    • instanceType

      public 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().

      Returns:
      The instance type for which the Capacity Reservation Fleet reserves capacity.
      See Also:
    • instanceTypeAsString

      public 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().

      Returns:
      The instance type for which the Capacity Reservation Fleet reserves capacity.
      See Also:
    • instancePlatform

      public 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().

      Returns:
      The type of operating system for which the Capacity Reservation Fleet reserves capacity.
      See Also:
    • instancePlatformAsString

      public 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().

      Returns:
      The type of operating system for which the Capacity Reservation Fleet reserves capacity.
      See Also:
    • weight

      public 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.

      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

      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.

      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

      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.

      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

      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.

      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

      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.

      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: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ReservationFleetInstanceSpecification.Builder,ReservationFleetInstanceSpecification>
      Returns:
      a builder for type T
    • builder

    • serializableBuilderClass

      public static Class<? extends ReservationFleetInstanceSpecification.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      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 an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.