Class FleetCapacityReservation

    • 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.
      • 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, 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 reserves capacity.
        See Also:
        InstanceType
      • 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.
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)