Class CoverageNormalizedUnits
- All Implemented Interfaces:
Serializable
,SdkPojo
,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:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
final String
The percentage of your used instance normalized units that a reservation covers.final boolean
final boolean
equalsBySdkFields
(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 int
hashCode()
final String
The number of normalized units that are covered by On-Demand Instances instead of a reservation.final String
The number of normalized units that a reservation covers.static Class
<? extends CoverageNormalizedUnits.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
The total number of normalized units that you used.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
The number of normalized units that a reservation covers.
- Returns:
- The number of normalized units that a reservation covers.
-
totalRunningNormalizedUnits
The total number of normalized units that you used.
- Returns:
- The total number of normalized units that you used.
-
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
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 interfaceToCopyableBuilder<CoverageNormalizedUnits.Builder,
CoverageNormalizedUnits> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
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 anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
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. -
getValueForField
-
sdkFields
-