Class ComputedUsage
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.onesubscription.model.ComputedUsage
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class ComputedUsage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelComputed usage summary object.
Note: Objects should always be created or deserialized using theComputedUsage.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 theComputedUsage.Builder, which maintain a set of all explicitly set fields calledComputedUsage.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 Summary
Nested Classes Modifier and Type Class Description static classComputedUsage.Builderstatic classComputedUsage.TypeUsage compute type in SPM.
-
Constructor Summary
Constructors Constructor Description ComputedUsage(Date timeCreated, Date timeUpdated, String parentSubscribedServiceId, ComputedUsageProduct parentProduct, String planNumber, String currencyCode, String rateCardTierdId, String rateCardId, String computeSource, String dataCenter, String mqsMessageId, String id, String quantity, String usageNumber, String originalUsageNumber, String commitmentServiceId, Boolean isInvoiced, ComputedUsage.Type type, Date timeOfArrival, Date timeMeteredOn, String netUnitPrice, String costRounded, String cost, ComputedUsageProduct product, String unitOfMeasure)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComputedUsage.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCommitmentServiceId()Subscribed service commitment ID.StringgetComputeSource()SPM (Subscription Plan Management) internal compute records source.StringgetCost()Computed unrounded line Amount.StringgetCostRounded()Computed rounded line amount.StringgetCurrencyCode()Currency code.StringgetDataCenter()Data center attribute as sent by the meterering system to SPM.StringgetId()SPM internal computed usage ID, which is a 32-character string.BooleangetIsInvoiced()Invoicing status for the aggregated compute usage.StringgetMqsMessageId()The meterering system identfier sent to SPM.StringgetNetUnitPrice()Net unit price for the product in consideration, price actual.StringgetOriginalUsageNumber()SPM internal original usage line number identifier in SPM, originating from the metered services entity.ComputedUsageProductgetParentProduct()StringgetParentSubscribedServiceId()Subscribed service line parent ID.StringgetPlanNumber()Subscription plan number.ComputedUsageProductgetProduct()StringgetQuantity()Total quantity that was used for computation.StringgetRateCardId()Ratecard ID at subscribed service level.StringgetRateCardTierdId()References the tier in the rate card for the associated usage (OCI uses the same reference to cross-reference for correctness in CSV Usage Reports), obtained from the OBSCNTR_IPT_PRODUCTTIER entity.DategetTimeCreated()Computed usage created time, expressed in RFC 3339 timestamp format.DategetTimeMeteredOn()Metered service date, expressed in RFC 3339 timestamp format.DategetTimeOfArrival()Usage computation date, expressed in RFC 3339 timestamp format.DategetTimeUpdated()Computed usage updated time, expressed in RFC 3339 timestamp format.ComputedUsage.TypegetType()Usage compute type in SPM.StringgetUnitOfMeasure()Unit of measure.StringgetUsageNumber()SPM internal usage line number identifier in SPM, originating from the metered services entity.inthashCode()ComputedUsage.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
ComputedUsage
@Deprecated @ConstructorProperties({"timeCreated","timeUpdated","parentSubscribedServiceId","parentProduct","planNumber","currencyCode","rateCardTierdId","rateCardId","computeSource","dataCenter","mqsMessageId","id","quantity","usageNumber","originalUsageNumber","commitmentServiceId","isInvoiced","type","timeOfArrival","timeMeteredOn","netUnitPrice","costRounded","cost","product","unitOfMeasure"}) public ComputedUsage(Date timeCreated, Date timeUpdated, String parentSubscribedServiceId, ComputedUsageProduct parentProduct, String planNumber, String currencyCode, String rateCardTierdId, String rateCardId, String computeSource, String dataCenter, String mqsMessageId, String id, String quantity, String usageNumber, String originalUsageNumber, String commitmentServiceId, Boolean isInvoiced, ComputedUsage.Type type, Date timeOfArrival, Date timeMeteredOn, String netUnitPrice, String costRounded, String cost, ComputedUsageProduct product, String unitOfMeasure)
Deprecated.
-
-
Method Detail
-
builder
public static ComputedUsage.Builder builder()
Create a new builder.
-
toBuilder
public ComputedUsage.Builder toBuilder()
-
getTimeCreated
public Date getTimeCreated()
Computed usage created time, expressed in RFC 3339 timestamp format.- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
Computed usage updated time, expressed in RFC 3339 timestamp format.- Returns:
- the value
-
getParentSubscribedServiceId
public String getParentSubscribedServiceId()
Subscribed service line parent ID.- Returns:
- the value
-
getParentProduct
public ComputedUsageProduct getParentProduct()
-
getPlanNumber
public String getPlanNumber()
Subscription plan number.- Returns:
- the value
-
getCurrencyCode
public String getCurrencyCode()
Currency code.- Returns:
- the value
-
getRateCardTierdId
public String getRateCardTierdId()
References the tier in the rate card for the associated usage (OCI uses the same reference to cross-reference for correctness in CSV Usage Reports), obtained from the OBSCNTR_IPT_PRODUCTTIER entity.- Returns:
- the value
-
getRateCardId
public String getRateCardId()
Ratecard ID at subscribed service level.- Returns:
- the value
-
getComputeSource
public String getComputeSource()
SPM (Subscription Plan Management) internal compute records source.- Returns:
- the value
-
getDataCenter
public String getDataCenter()
Data center attribute as sent by the meterering system to SPM.- Returns:
- the value
-
getMqsMessageId
public String getMqsMessageId()
The meterering system identfier sent to SPM.SPM does not transform this attribute and is received as-is.
- Returns:
- the value
-
getId
public String getId()
SPM internal computed usage ID, which is a 32-character string.- Returns:
- the value
-
getQuantity
public String getQuantity()
Total quantity that was used for computation.- Returns:
- the value
-
getUsageNumber
public String getUsageNumber()
SPM internal usage line number identifier in SPM, originating from the metered services entity.- Returns:
- the value
-
getOriginalUsageNumber
public String getOriginalUsageNumber()
SPM internal original usage line number identifier in SPM, originating from the metered services entity.- Returns:
- the value
-
getCommitmentServiceId
public String getCommitmentServiceId()
Subscribed service commitment ID.- Returns:
- the value
-
getIsInvoiced
public Boolean getIsInvoiced()
Invoicing status for the aggregated compute usage.- Returns:
- the value
-
getType
public ComputedUsage.Type getType()
Usage compute type in SPM.- Returns:
- the value
-
getTimeOfArrival
public Date getTimeOfArrival()
Usage computation date, expressed in RFC 3339 timestamp format.- Returns:
- the value
-
getTimeMeteredOn
public Date getTimeMeteredOn()
Metered service date, expressed in RFC 3339 timestamp format.- Returns:
- the value
-
getNetUnitPrice
public String getNetUnitPrice()
Net unit price for the product in consideration, price actual.- Returns:
- the value
-
getCostRounded
public String getCostRounded()
Computed rounded line amount.- Returns:
- the value
-
getCost
public String getCost()
Computed unrounded line Amount.- Returns:
- the value
-
getProduct
public ComputedUsageProduct getProduct()
-
getUnitOfMeasure
public String getUnitOfMeasure()
Unit of measure.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-