@Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class UsageSummary extends Object
The result from usage store.
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
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
UsageSummary.Builder |
| Constructor and Description |
|---|
UsageSummary(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 overagesFlag,
BigDecimal unitPrice,
String currency,
String subscriptionId,
String overage,
List<Tag> tags)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static UsageSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getAd()
The availability domain of the usage.
|
String |
getCompartmentId()
The OCID of the compartment.
|
String |
getCompartmentName()
The name of the compartment.
|
String |
getCompartmentPath()
The path of the compartment, starting from root.
|
BigDecimal |
getComputedAmount()
The computed cost.
|
BigDecimal |
getComputedQuantity()
The usage number.
|
String |
getCurrency()
The currency for the price.
|
BigDecimal |
getDiscount()
The discretionary discount applied to the SKU.
|
BigDecimal |
getListRate()
The list rate for the SKU (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 Ocid of the resource that is incurring the cost.
|
String |
getResourceName()
The name of the resource that is incurring the cost.
|
String |
getService()
The name of the service that is incurring the cost.
|
String |
getShape()
The shape of the resource.
|
String |
getSkuName()
The friendly name for the SKU.
|
String |
getSkuPartNumber()
The part number of the SKU.
|
String |
getSubscriptionId()
The subscription Id.
|
List<Tag> |
getTags()
For grouping, a tag definition.
|
Date |
getTimeUsageEnded()
The end time of the usage.
|
Date |
getTimeUsageStarted()
The start time of the usage.
|
String |
getUnit()
The unit of the usage.
|
BigDecimal |
getUnitPrice()
The price per unit.
|
BigDecimal |
getWeight()
The size of resource being metered.
|
int |
hashCode() |
UsageSummary.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"compartmentId","compartmentPath","compartmentName","service","resourceName","resourceId","region","ad","weight","shape","skuPartNumber","skuName","unit","discount","listRate","platform","timeUsageStarted","timeUsageEnded","computedAmount","computedQuantity","overagesFlag","unitPrice","currency","subscriptionId","overage","tags"}) @Deprecated public UsageSummary(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 overagesFlag, BigDecimal unitPrice, String currency, String subscriptionId, String overage, List<Tag> tags)
public static UsageSummary.Builder builder()
Create a new builder.
public UsageSummary.Builder toBuilder()
public String getCompartmentId()
The OCID of the compartment.
public String getCompartmentPath()
The path of the compartment, starting from root.
public String getCompartmentName()
The name of the compartment.
public String getService()
The name of the service that is incurring the cost.
public String getResourceName()
The name of the resource that is incurring the cost.
public String getResourceId()
The Ocid of the resource 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 size of resource being metered.
public String getShape()
The shape of the resource.
public String getSkuPartNumber()
The part number of the SKU.
public String getSkuName()
The friendly name for the SKU.
public String getUnit()
The unit of the usage.
public BigDecimal getDiscount()
The discretionary discount applied to the SKU.
public BigDecimal getListRate()
The list rate for the SKU (not discount).
public String getPlatform()
Platform for the cost.
public Date getTimeUsageStarted()
The start time of the usage.
public Date getTimeUsageEnded()
The end time of the usage.
public BigDecimal getComputedAmount()
The computed cost.
public BigDecimal getComputedQuantity()
The usage number.
public String getOveragesFlag()
The SPM OverageFlag.
public BigDecimal getUnitPrice()
The price per unit.
public String getCurrency()
The currency for the price.
public String getSubscriptionId()
The subscription Id.
public String getOverage()
The overage usage.
public List<Tag> getTags()
For grouping, a tag definition. For filtering, a definition and key
Copyright © 2016–2020. All rights reserved.