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 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 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 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.ComputedUsageProductgetParentProduct()StringgetParentSubscribedServiceId()Subscribed service line parent idStringgetPlanNumber()Subscription plan numberComputedUsageProductgetProduct()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, 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 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
-
getRateCardId
public String getRateCardId()
Ratecard Id at subscribed service level- Returns:
- the value
-
getComputeSource
public String getComputeSource()
SPM Internal compute records source .- Returns:
- the value
-
getDataCenter
public String getDataCenter()
Data Center Attribute as sent by MQS to SPM.- Returns:
- the value
-
getMqsMessageId
public String getMqsMessageId()
MQS Identfier send 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 , 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 coming from Metered Services entity.- Returns:
- the value
-
getOriginalUsageNumber
public String getOriginalUsageNumber()
SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.- Returns:
- the value
-
getCommitmentServiceId
public String getCommitmentServiceId()
Subscribed service commitmentId.- 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()
Usae 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 Line Amount rounded.- Returns:
- the value
-
getCost
public String getCost()
Computed Line Amount not rounded- Returns:
- the value
-
getProduct
public ComputedUsageProduct getProduct()
-
getUnitOfMeasure
public String getUnitOfMeasure()
Unit of Messure- 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
-
-