Class EstimateByTime
- java.lang.Object
-
- software.amazon.awssdk.services.lightsail.model.EstimateByTime
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EstimateByTime.Builder,EstimateByTime>
@Generated("software.amazon.awssdk:codegen") public final class EstimateByTime extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EstimateByTime.Builder,EstimateByTime>
An estimate that's associated with a time period.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEstimateByTime.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EstimateByTime.Builderbuilder()Currencycurrency()The currency of the estimate in USD.StringcurrencyAsString()The currency of the estimate in USD.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()PricingUnitpricingUnit()The unit of measurement that's used for the cost estimate.StringpricingUnitAsString()The unit of measurement that's used for the cost estimate.List<SdkField<?>>sdkFields()static Class<? extends EstimateByTime.Builder>serializableBuilderClass()TimePeriodtimePeriod()The period of time, in days, that an estimate covers.EstimateByTime.BuildertoBuilder()StringtoString()Returns a string representation of this object.Doubleunit()The number of pricing units used to calculate the total number of hours.DoubleusageCost()The amount of cost or usage that's measured for the cost estimate.-
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
-
usageCost
public final Double usageCost()
The amount of cost or usage that's measured for the cost estimate.
- Returns:
- The amount of cost or usage that's measured for the cost estimate.
-
pricingUnit
public final PricingUnit pricingUnit()
The unit of measurement that's used for the cost estimate.
If the service returns an enum value that is not available in the current SDK version,
pricingUnitwill returnPricingUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompricingUnitAsString().- Returns:
- The unit of measurement that's used for the cost estimate.
- See Also:
PricingUnit
-
pricingUnitAsString
public final String pricingUnitAsString()
The unit of measurement that's used for the cost estimate.
If the service returns an enum value that is not available in the current SDK version,
pricingUnitwill returnPricingUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompricingUnitAsString().- Returns:
- The unit of measurement that's used for the cost estimate.
- See Also:
PricingUnit
-
unit
public final Double unit()
The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.
- Returns:
- The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.
-
currency
public final Currency currency()
The currency of the estimate in USD.
If the service returns an enum value that is not available in the current SDK version,
currencywill returnCurrency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyAsString().- Returns:
- The currency of the estimate in USD.
- See Also:
Currency
-
currencyAsString
public final String currencyAsString()
The currency of the estimate in USD.
If the service returns an enum value that is not available in the current SDK version,
currencywill returnCurrency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyAsString().- Returns:
- The currency of the estimate in USD.
- See Also:
Currency
-
timePeriod
public final TimePeriod timePeriod()
The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.
- Returns:
- The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.
-
toBuilder
public EstimateByTime.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EstimateByTime.Builder,EstimateByTime>
-
builder
public static EstimateByTime.Builder builder()
-
serializableBuilderClass
public static Class<? extends EstimateByTime.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.
-
-