Class UsageSummary


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20200107")
    public final class UsageSummary
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The usage store result.
    Note: Objects should always be created or deserialized using the UsageSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the UsageSummary.Builder, which maintain a set of all explicitly set fields called UsageSummary.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getTenantId

        public String getTenantId()
        The tenancy OCID.
        Returns:
        the value
      • getTenantName

        public String getTenantName()
        The tenancy name.
        Returns:
        the value
      • getCompartmentId

        public String getCompartmentId()
        The compartment OCID.
        Returns:
        the value
      • getCompartmentPath

        public String getCompartmentPath()
        The compartment path, starting from root.
        Returns:
        the value
      • getCompartmentName

        public String getCompartmentName()
        The compartment name.
        Returns:
        the value
      • getService

        public String getService()
        The service name that is incurring the cost.
        Returns:
        the value
      • getResourceName

        public String getResourceName()
        The resource name that is incurring the cost.
        Returns:
        the value
      • getResourceId

        public String getResourceId()
        The resource OCID that is incurring the cost.
        Returns:
        the value
      • getRegion

        public String getRegion()
        The region of the usage.
        Returns:
        the value
      • getAd

        public String getAd()
        The availability domain of the usage.
        Returns:
        the value
      • getWeight

        public BigDecimal getWeight()
        The resource size being metered.
        Returns:
        the value
      • getShape

        public String getShape()
        The resource shape.
        Returns:
        the value
      • getSkuPartNumber

        public String getSkuPartNumber()
        The SKU part number.
        Returns:
        the value
      • getSkuName

        public String getSkuName()
        The SKU friendly name.
        Returns:
        the value
      • getUnit

        public String getUnit()
        The usage unit.
        Returns:
        the value
      • getDiscount

        public BigDecimal getDiscount()
        The discretionary discount applied to the SKU.
        Returns:
        the value
      • getListRate

        public BigDecimal getListRate()
        The SKU list rate (not discount).
        Returns:
        the value
      • getPlatform

        public String getPlatform()
        Platform for the cost.
        Returns:
        the value
      • getTimeUsageStarted

        public Date getTimeUsageStarted()
        The usage start time.
        Returns:
        the value
      • getTimeUsageEnded

        public Date getTimeUsageEnded()
        The usage end time.
        Returns:
        the value
      • getComputedAmount

        public BigDecimal getComputedAmount()
        The computed cost.
        Returns:
        the value
      • getComputedQuantity

        public BigDecimal getComputedQuantity()
        The usage number.
        Returns:
        the value
      • getAttributedCost

        public String getAttributedCost()
        The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.
        Returns:
        the value
      • getAttributedUsage

        public String getAttributedUsage()
        The attributed usage with a max value of 9999999999.999999999999 and a minimum value of 0.
        Returns:
        the value
      • getOveragesFlag

        public String getOveragesFlag()
        The SPM OverageFlag.
        Returns:
        the value
      • getUnitPrice

        public BigDecimal getUnitPrice()
        The price per unit.
        Returns:
        the value
      • getCurrency

        public String getCurrency()
        The price currency.
        Returns:
        the value
      • getSubscriptionId

        public String getSubscriptionId()
        The subscription ID.
        Returns:
        the value
      • getOverage

        public String getOverage()
        The overage usage.
        Returns:
        the value
      • getIsForecast

        public Boolean getIsForecast()
        The forecasted data.
        Returns:
        the value
      • getTags

        public List<Tag> getTags()
        For grouping, a tag definition.

        For filtering, a definition and key.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel