Class EstimateByTime

    • 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.
      • 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, pricingUnit will return PricingUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from pricingUnitAsString().

        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.
      • 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, currency will return Currency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from currencyAsString().

        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)