Class CoverageNormalizedUnits

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

@Generated("software.amazon.awssdk:codegen") public final class CoverageNormalizedUnits extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CoverageNormalizedUnits.Builder,CoverageNormalizedUnits>

The amount of instance usage, in normalized units. You can use normalized units to see your EC2 usage for multiple sizes of instances in a uniform way. For example, suppose that you run an xlarge instance and a 2xlarge instance. If you run both instances for the same amount of time, the 2xlarge instance uses twice as much of your reservation as the xlarge instance, even though both instances show only one instance-hour. When you use normalized units instead of instance-hours, the xlarge instance used 8 normalized units, and the 2xlarge instance used 16 normalized units.

For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances.

See Also:
  • Method Details

    • onDemandNormalizedUnits

      public final String onDemandNormalizedUnits()

      The number of normalized units that are covered by On-Demand Instances instead of a reservation.

      Returns:
      The number of normalized units that are covered by On-Demand Instances instead of a reservation.
    • reservedNormalizedUnits

      public final String reservedNormalizedUnits()

      The number of normalized units that a reservation covers.

      Returns:
      The number of normalized units that a reservation covers.
    • totalRunningNormalizedUnits

      public final String totalRunningNormalizedUnits()

      The total number of normalized units that you used.

      Returns:
      The total number of normalized units that you used.
    • coverageNormalizedUnitsPercentage

      public final String coverageNormalizedUnitsPercentage()

      The percentage of your used instance normalized units that a reservation covers.

      Returns:
      The percentage of your used instance normalized units that a reservation covers.
    • toBuilder

      public CoverageNormalizedUnits.Builder 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<CoverageNormalizedUnits.Builder,CoverageNormalizedUnits>
      Returns:
      a builder for type T
    • builder

      public static CoverageNormalizedUnits.Builder builder()
    • serializableBuilderClass

      public static Class<? extends CoverageNormalizedUnits.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.