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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringThe percentage of your used instance normalized units that a reservation covers.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()final StringThe number of normalized units that are covered by On-Demand Instances instead of a reservation.final StringThe 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 StringtoString()Returns a string representation of this object.final StringThe 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CoverageNormalizedUnits.Builder,CoverageNormalizedUnits> - Returns:
- a builder for type T
-
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
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-