Package com.oracle.bmc.usageapi.model
Class UsageSummary
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.usageapi.model.UsageSummary
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class UsageSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe usage store result.
 Note: Objects should always be created or deserialized using theUsageSummary.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 theUsageSummary.Builder, which maintain a set of all explicitly set fields calledUsageSummary.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUsageSummary.Builder
 - 
Constructor SummaryConstructors Constructor Description UsageSummary(String tenantId, String tenantName, String compartmentId, String compartmentPath, String compartmentName, String service, String resourceName, String resourceId, String region, String ad, BigDecimal weight, String shape, String skuPartNumber, String skuName, String unit, BigDecimal discount, BigDecimal listRate, String platform, Date timeUsageStarted, Date timeUsageEnded, BigDecimal computedAmount, BigDecimal computedQuantity, String attributedCost, String attributedUsage, String overagesFlag, BigDecimal unitPrice, String currency, String subscriptionId, String overage, Boolean isForecast, List<Tag> tags)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsageSummary.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetAd()The availability domain of the usage.StringgetAttributedCost()The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.StringgetAttributedUsage()The attributed usage with a max value of 9999999999.999999999999 and a minimum value of 0.StringgetCompartmentId()The compartment OCID.StringgetCompartmentName()The compartment name.StringgetCompartmentPath()The compartment path, starting from root.BigDecimalgetComputedAmount()The computed cost.BigDecimalgetComputedQuantity()The usage number.StringgetCurrency()The price currency.BigDecimalgetDiscount()The discretionary discount applied to the SKU.BooleangetIsForecast()The forecasted data.BigDecimalgetListRate()The SKU list rate (not discount).StringgetOverage()The overage usage.StringgetOveragesFlag()The SPM OverageFlag.StringgetPlatform()Platform for the cost.StringgetRegion()The region of the usage.StringgetResourceId()The resource OCID that is incurring the cost.StringgetResourceName()The resource name that is incurring the cost.StringgetService()The service name that is incurring the cost.StringgetShape()The resource shape.StringgetSkuName()The SKU friendly name.StringgetSkuPartNumber()The SKU part number.StringgetSubscriptionId()The subscription ID.List<Tag>getTags()For grouping, a tag definition.StringgetTenantId()The tenancy OCID.StringgetTenantName()The tenancy name.DategetTimeUsageEnded()The usage end time.DategetTimeUsageStarted()The usage start time.StringgetUnit()The usage unit.BigDecimalgetUnitPrice()The price per unit.BigDecimalgetWeight()The resource size being metered.inthashCode()UsageSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
UsageSummary@Deprecated @ConstructorProperties({"tenantId","tenantName","compartmentId","compartmentPath","compartmentName","service","resourceName","resourceId","region","ad","weight","shape","skuPartNumber","skuName","unit","discount","listRate","platform","timeUsageStarted","timeUsageEnded","computedAmount","computedQuantity","attributedCost","attributedUsage","overagesFlag","unitPrice","currency","subscriptionId","overage","isForecast","tags"}) public UsageSummary(String tenantId, String tenantName, String compartmentId, String compartmentPath, String compartmentName, String service, String resourceName, String resourceId, String region, String ad, BigDecimal weight, String shape, String skuPartNumber, String skuName, String unit, BigDecimal discount, BigDecimal listRate, String platform, Date timeUsageStarted, Date timeUsageEnded, BigDecimal computedAmount, BigDecimal computedQuantity, String attributedCost, String attributedUsage, String overagesFlag, BigDecimal unitPrice, String currency, String subscriptionId, String overage, Boolean isForecast, List<Tag> tags) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static UsageSummary.Builder builder() Create a new builder.
 - 
toBuilderpublic UsageSummary.Builder toBuilder() 
 - 
getTenantIdpublic String getTenantId() The tenancy OCID.- Returns:
- the value
 
 - 
getTenantNamepublic String getTenantName() The tenancy name.- Returns:
- the value
 
 - 
getCompartmentIdpublic String getCompartmentId() The compartment OCID.- Returns:
- the value
 
 - 
getCompartmentPathpublic String getCompartmentPath() The compartment path, starting from root.- Returns:
- the value
 
 - 
getCompartmentNamepublic String getCompartmentName() The compartment name.- Returns:
- the value
 
 - 
getServicepublic String getService() The service name that is incurring the cost.- Returns:
- the value
 
 - 
getResourceNamepublic String getResourceName() The resource name that is incurring the cost.- Returns:
- the value
 
 - 
getResourceIdpublic String getResourceId() The resource OCID that is incurring the cost.- Returns:
- the value
 
 - 
getRegionpublic String getRegion() The region of the usage.- Returns:
- the value
 
 - 
getAdpublic String getAd() The availability domain of the usage.- Returns:
- the value
 
 - 
getWeightpublic BigDecimal getWeight() The resource size being metered.- Returns:
- the value
 
 - 
getShapepublic String getShape() The resource shape.- Returns:
- the value
 
 - 
getSkuPartNumberpublic String getSkuPartNumber() The SKU part number.- Returns:
- the value
 
 - 
getSkuNamepublic String getSkuName() The SKU friendly name.- Returns:
- the value
 
 - 
getUnitpublic String getUnit() The usage unit.- Returns:
- the value
 
 - 
getDiscountpublic BigDecimal getDiscount() The discretionary discount applied to the SKU.- Returns:
- the value
 
 - 
getListRatepublic BigDecimal getListRate() The SKU list rate (not discount).- Returns:
- the value
 
 - 
getPlatformpublic String getPlatform() Platform for the cost.- Returns:
- the value
 
 - 
getTimeUsageStartedpublic Date getTimeUsageStarted() The usage start time.- Returns:
- the value
 
 - 
getTimeUsageEndedpublic Date getTimeUsageEnded() The usage end time.- Returns:
- the value
 
 - 
getComputedAmountpublic BigDecimal getComputedAmount() The computed cost.- Returns:
- the value
 
 - 
getComputedQuantitypublic BigDecimal getComputedQuantity() The usage number.- Returns:
- the value
 
 - 
getAttributedCostpublic String getAttributedCost() The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.- Returns:
- the value
 
 - 
getAttributedUsagepublic String getAttributedUsage() The attributed usage with a max value of 9999999999.999999999999 and a minimum value of 0.- Returns:
- the value
 
 - 
getOveragesFlagpublic String getOveragesFlag() The SPM OverageFlag.- Returns:
- the value
 
 - 
getUnitPricepublic BigDecimal getUnitPrice() The price per unit.- Returns:
- the value
 
 - 
getCurrencypublic String getCurrency() The price currency.- Returns:
- the value
 
 - 
getSubscriptionIdpublic String getSubscriptionId() The subscription ID.- Returns:
- the value
 
 - 
getOveragepublic String getOverage() The overage usage.- Returns:
- the value
 
 - 
getIsForecastpublic Boolean getIsForecast() The forecasted data.- Returns:
- the value
 
 - 
getTagspublic List<Tag> getTags() For grouping, a tag definition.For filtering, a definition and key. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-