Package com.oracle.bmc.osubusage.model
Class ComputedUsage
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.osubusage.model.ComputedUsage
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210501") 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 the ComputedUsage.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 SummaryNested Classes Modifier and Type Class Description static classComputedUsage.Builderstatic classComputedUsage.TypeUsage compute type in SPM.
 - 
Constructor SummaryConstructors Constructor Description ComputedUsage(Date timeCreated, Date timeUpdated, String parentSubscribedServiceId, Product 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, Product product, String unitOfMeasure)Deprecated.
 - 
Method SummaryAll 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 commitmentId.StringgetComputeSource()SPM Internal compute records source .StringgetCost()Computed Line Amount not roundedStringgetCostRounded()Computed Line Amount rounded.StringgetCurrencyCode()Currency codeStringgetDataCenter()Data Center Attribute as sent by MQS to SPM.StringgetId()SPM Internal computed usage Id , 32 character stringBooleangetIsInvoiced()Invoicing status for the aggregated compute usageStringgetMqsMessageId()MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.StringgetNetUnitPrice()Net Unit Price for the product in consideration, price actual.StringgetOriginalUsageNumber()SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.ProductgetParentProduct()StringgetParentSubscribedServiceId()Subscribed service line parent idStringgetPlanNumber()Subscription plan numberProductgetProduct()StringgetQuantity()Total Quantity that was used for computationStringgetRateCardId()Ratecard Id at subscribed service levelStringgetRateCardTierdId()References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.DategetTimeCreated()Computed Usage created time, expressed in RFC 3339 timestamp format.DategetTimeMeteredOn()Metered Service date, expressed in RFC 3339 timestamp format.DategetTimeOfArrival()Usae 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 MessureStringgetUsageNumber()SPM Internal usage Line number identifier in SPM coming from 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, Product 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, Product product, String unitOfMeasure) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static ComputedUsage.Builder builder() Create a new builder.
 - 
toBuilderpublic ComputedUsage.Builder toBuilder() 
 - 
getTimeCreatedpublic Date getTimeCreated() Computed Usage created time, expressed in RFC 3339 timestamp format.- Returns:
- the value
 
 - 
getTimeUpdatedpublic Date getTimeUpdated() Computed Usage updated time, expressed in RFC 3339 timestamp format.- Returns:
- the value
 
 - 
getParentSubscribedServiceIdpublic String getParentSubscribedServiceId() Subscribed service line parent id- Returns:
- the value
 
 - 
getParentProductpublic Product getParentProduct() 
 - 
getPlanNumberpublic String getPlanNumber() Subscription plan number- Returns:
- the value
 
 - 
getCurrencyCodepublic String getCurrencyCode() Currency code- Returns:
- the value
 
 - 
getRateCardTierdIdpublic String getRateCardTierdId() References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.- Returns:
- the value
 
 - 
getRateCardIdpublic String getRateCardId() Ratecard Id at subscribed service level- Returns:
- the value
 
 - 
getComputeSourcepublic String getComputeSource() SPM Internal compute records source .- Returns:
- the value
 
 - 
getDataCenterpublic String getDataCenter() Data Center Attribute as sent by MQS to SPM.- Returns:
- the value
 
 - 
getMqsMessageIdpublic String getMqsMessageId() MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.- Returns:
- the value
 
 - 
getIdpublic String getId() SPM Internal computed usage Id , 32 character string- Returns:
- the value
 
 - 
getQuantitypublic String getQuantity() Total Quantity that was used for computation- Returns:
- the value
 
 - 
getUsageNumberpublic String getUsageNumber() SPM Internal usage Line number identifier in SPM coming from Metered Services entity.- Returns:
- the value
 
 - 
getOriginalUsageNumberpublic String getOriginalUsageNumber() SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.- Returns:
- the value
 
 - 
getCommitmentServiceIdpublic String getCommitmentServiceId() Subscribed service commitmentId.- Returns:
- the value
 
 - 
getIsInvoicedpublic Boolean getIsInvoiced() Invoicing status for the aggregated compute usage- Returns:
- the value
 
 - 
getTypepublic ComputedUsage.Type getType() Usage compute type in SPM.- Returns:
- the value
 
 - 
getTimeOfArrivalpublic Date getTimeOfArrival() Usae computation date, expressed in RFC 3339 timestamp format.- Returns:
- the value
 
 - 
getTimeMeteredOnpublic Date getTimeMeteredOn() Metered Service date, expressed in RFC 3339 timestamp format.- Returns:
- the value
 
 - 
getNetUnitPricepublic String getNetUnitPrice() Net Unit Price for the product in consideration, price actual.- Returns:
- the value
 
 - 
getCostRoundedpublic String getCostRounded() Computed Line Amount rounded.- Returns:
- the value
 
 - 
getCostpublic String getCost() Computed Line Amount not rounded- Returns:
- the value
 
 - 
getProductpublic Product getProduct() 
 - 
getUnitOfMeasurepublic String getUnitOfMeasure() Unit of Messure- 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
 
 
- 
 
-