Class UsageQuantity
- java.lang.Object
-
- software.amazon.awssdk.services.bcmpricingcalculator.model.UsageQuantity
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UsageQuantity.Builder,UsageQuantity>
@Generated("software.amazon.awssdk:codegen") public final class UsageQuantity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UsageQuantity.Builder,UsageQuantity>
Represents a usage quantity with associated unit and time period.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUsageQuantity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleamount()The numeric value of the usage quantity.static UsageQuantity.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends UsageQuantity.Builder>serializableBuilderClass()InstantstartHour()The start hour of the usage period.UsageQuantity.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringunit()The unit of measurement for the usage quantity.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
startHour
public final Instant startHour()
The start hour of the usage period.
- Returns:
- The start hour of the usage period.
-
unit
public final String unit()
The unit of measurement for the usage quantity.
- Returns:
- The unit of measurement for the usage quantity.
-
amount
public final Double amount()
The numeric value of the usage quantity.
- Returns:
- The numeric value of the usage quantity.
-
toBuilder
public UsageQuantity.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UsageQuantity.Builder,UsageQuantity>
-
builder
public static UsageQuantity.Builder builder()
-
serializableBuilderClass
public static Class<? extends UsageQuantity.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-