@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
).
Modifier and Type | Class and Description |
---|---|
static class |
UsageSummary.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
static UsageSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getAd()
The availability domain of the usage.
|
String |
getAttributedCost()
The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.
|
String |
getAttributedUsage()
The attributed usage with a max value of 9999999999.999999999999 and a minimum value of 0.
|
String |
getCompartmentId()
The compartment OCID.
|
String |
getCompartmentName()
The compartment name.
|
String |
getCompartmentPath()
The compartment path, starting from root.
|
BigDecimal |
getComputedAmount()
The computed cost.
|
BigDecimal |
getComputedQuantity()
The usage number.
|
String |
getCurrency()
The price currency.
|
BigDecimal |
getDiscount()
The discretionary discount applied to the SKU.
|
Boolean |
getIsForecast()
The forecasted data.
|
BigDecimal |
getListRate()
The SKU list rate (not discount).
|
String |
getOverage()
The overage usage.
|
String |
getOveragesFlag()
The SPM OverageFlag.
|
String |
getPlatform()
Platform for the cost.
|
String |
getRegion()
The region of the usage.
|
String |
getResourceId()
The resource OCID that is incurring the cost.
|
String |
getResourceName()
The resource name that is incurring the cost.
|
String |
getService()
The service name that is incurring the cost.
|
String |
getShape()
The resource shape.
|
String |
getSkuName()
The SKU friendly name.
|
String |
getSkuPartNumber()
The SKU part number.
|
String |
getSubscriptionId()
The subscription ID.
|
List<Tag> |
getTags()
For grouping, a tag definition.
|
String |
getTenantId()
The tenancy OCID.
|
String |
getTenantName()
The tenancy name.
|
Date |
getTimeUsageEnded()
The usage end time.
|
Date |
getTimeUsageStarted()
The usage start time.
|
String |
getUnit()
The usage unit.
|
BigDecimal |
getUnitPrice()
The price per unit.
|
BigDecimal |
getWeight()
The resource size being metered.
|
int |
hashCode() |
UsageSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"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)
public static UsageSummary.Builder builder()
Create a new builder.
public UsageSummary.Builder toBuilder()
public String getTenantId()
The tenancy OCID.
public String getTenantName()
The tenancy name.
public String getCompartmentId()
The compartment OCID.
public String getCompartmentPath()
The compartment path, starting from root.
public String getCompartmentName()
The compartment name.
public String getService()
The service name that is incurring the cost.
public String getResourceName()
The resource name that is incurring the cost.
public String getResourceId()
The resource OCID that is incurring the cost.
public String getRegion()
The region of the usage.
public String getAd()
The availability domain of the usage.
public BigDecimal getWeight()
The resource size being metered.
public String getShape()
The resource shape.
public String getSkuPartNumber()
The SKU part number.
public String getSkuName()
The SKU friendly name.
public String getUnit()
The usage unit.
public BigDecimal getDiscount()
The discretionary discount applied to the SKU.
public BigDecimal getListRate()
The SKU list rate (not discount).
public String getPlatform()
Platform for the cost.
public Date getTimeUsageStarted()
The usage start time.
public Date getTimeUsageEnded()
The usage end time.
public BigDecimal getComputedAmount()
The computed cost.
public BigDecimal getComputedQuantity()
The usage number.
public String getAttributedCost()
The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.
public String getAttributedUsage()
The attributed usage with a max value of 9999999999.999999999999 and a minimum value of 0.
public String getOveragesFlag()
The SPM OverageFlag.
public BigDecimal getUnitPrice()
The price per unit.
public String getCurrency()
The price currency.
public String getSubscriptionId()
The subscription ID.
public String getOverage()
The overage usage.
public Boolean getIsForecast()
The forecasted data.
public List<Tag> getTags()
For grouping, a tag definition. For filtering, a definition and key.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.