Class ComputedUsageSummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.onesubscription.model.ComputedUsageSummary
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class ComputedUsageSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Computed Usage Summary object
Note: Objects should always be created or deserialized using theComputedUsageSummary.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
ComputedUsageSummary.Builder
, which maintain a set of all explicitly set fields calledComputedUsageSummary.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 class
ComputedUsageSummary.Builder
static class
ComputedUsageSummary.Type
Usage compute type in SPM.
-
Constructor Summary
Constructors Constructor Description ComputedUsageSummary(Date timeCreated, Date timeUpdated, String parentSubscribedServiceId, ComputedUsageProduct parentProduct, String planNumber, String currencyCode, String rateCardTierdId, String rateCardId, String computeSource, String dataCenter, String mqsMessageId, String computedUsageId, String quantity, String usageNumber, String originalUsageNumber, String commitmentServiceId, Boolean isInvoiced, ComputedUsageSummary.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 ComputedUsageSummary.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getCommitmentServiceId()
Subscribed service commitmentId.String
getComputedUsageId()
SPM Internal computed usage Id , 32 character stringString
getComputeSource()
SPM Internal compute records source .String
getCost()
Computed Line Amount not roundedString
getCostRounded()
Computed Line Amount rounded.String
getCurrencyCode()
Currency codeString
getDataCenter()
Data Center Attribute as sent by MQS to SPM.Boolean
getIsInvoiced()
Invoicing status for the aggregated compute usageString
getMqsMessageId()
MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.String
getNetUnitPrice()
Net Unit Price for the product in consideration, price actual.String
getOriginalUsageNumber()
SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.ComputedUsageProduct
getParentProduct()
String
getParentSubscribedServiceId()
Subscribed service line parent idString
getPlanNumber()
Subscription plan numberComputedUsageProduct
getProduct()
String
getQuantity()
Total Quantity that was used for computationString
getRateCardId()
Ratecard Id at subscribed service levelString
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.Date
getTimeCreated()
Computed Usage created time, expressed in RFC 3339 timestamp format.Date
getTimeMeteredOn()
Metered Service date, expressed in RFC 3339 timestamp format.Date
getTimeOfArrival()
Usae computation date, expressed in RFC 3339 timestamp format.Date
getTimeUpdated()
Computed Usage updated time, expressed in RFC 3339 timestamp format.ComputedUsageSummary.Type
getType()
Usage compute type in SPM.String
getUnitOfMeasure()
Unit of MessureString
getUsageNumber()
SPM Internal usage Line number identifier in SPM coming from Metered Services entity.int
hashCode()
ComputedUsageSummary.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
ComputedUsageSummary
@Deprecated @ConstructorProperties({"timeCreated","timeUpdated","parentSubscribedServiceId","parentProduct","planNumber","currencyCode","rateCardTierdId","rateCardId","computeSource","dataCenter","mqsMessageId","computedUsageId","quantity","usageNumber","originalUsageNumber","commitmentServiceId","isInvoiced","type","timeOfArrival","timeMeteredOn","netUnitPrice","costRounded","cost","product","unitOfMeasure"}) public ComputedUsageSummary(Date timeCreated, Date timeUpdated, String parentSubscribedServiceId, ComputedUsageProduct parentProduct, String planNumber, String currencyCode, String rateCardTierdId, String rateCardId, String computeSource, String dataCenter, String mqsMessageId, String computedUsageId, String quantity, String usageNumber, String originalUsageNumber, String commitmentServiceId, Boolean isInvoiced, ComputedUsageSummary.Type type, Date timeOfArrival, Date timeMeteredOn, String netUnitPrice, String costRounded, String cost, ComputedUsageProduct product, String unitOfMeasure)
Deprecated.
-
-
Method Detail
-
builder
public static ComputedUsageSummary.Builder builder()
Create a new builder.
-
toBuilder
public ComputedUsageSummary.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
-
getComputedUsageId
public String getComputedUsageId()
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 ComputedUsageSummary.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:
toString
in 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:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-