@Generated(value="OracleSDKGenerator", comments="API Version: 20210501") public final class ComputedUsage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Computed Usage Summary object
Note: Objects should always be created or deserialized using the ComputedUsage.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 called ComputedUsage.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
ComputedUsage.Builder |
static class |
ComputedUsage.Type
Usage compute type in SPM.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
static ComputedUsage.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCommitmentServiceId()
Subscribed service commitmentId.
|
String |
getComputeSource()
SPM Internal compute records source .
|
String |
getCost()
Computed Line Amount not rounded
|
String |
getCostRounded()
Computed Line Amount rounded.
|
String |
getCurrencyCode()
Currency code
|
String |
getDataCenter()
Data Center Attribute as sent by MQS to SPM.
|
String |
getId()
SPM Internal computed usage Id , 32 character string
|
Boolean |
getIsInvoiced()
Invoicing status for the aggregated compute usage
|
String |
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.
|
Product |
getParentProduct() |
String |
getParentSubscribedServiceId()
Subscribed service line parent id
|
String |
getPlanNumber()
Subscription plan number
|
Product |
getProduct() |
String |
getQuantity()
Total Quantity that was used for computation
|
String |
getRateCardId()
Ratecard Id at subscribed service level
|
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.
|
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.
|
ComputedUsage.Type |
getType()
Usage compute type in SPM.
|
String |
getUnitOfMeasure()
Unit of Messure
|
String |
getUsageNumber()
SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
|
int |
hashCode() |
ComputedUsage.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"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)
public static ComputedUsage.Builder builder()
Create a new builder.
public ComputedUsage.Builder toBuilder()
public Date getTimeCreated()
Computed Usage created time, expressed in RFC 3339 timestamp format.
public Date getTimeUpdated()
Computed Usage updated time, expressed in RFC 3339 timestamp format.
public String getParentSubscribedServiceId()
Subscribed service line parent id
public Product getParentProduct()
public String getPlanNumber()
Subscription plan number
public String getCurrencyCode()
Currency code
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.
public String getRateCardId()
Ratecard Id at subscribed service level
public String getComputeSource()
SPM Internal compute records source .
public String getDataCenter()
Data Center Attribute as sent by MQS to SPM.
public String getMqsMessageId()
MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
public String getId()
SPM Internal computed usage Id , 32 character string
public String getQuantity()
Total Quantity that was used for computation
public String getUsageNumber()
SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
public String getOriginalUsageNumber()
SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
public String getCommitmentServiceId()
Subscribed service commitmentId.
public Boolean getIsInvoiced()
Invoicing status for the aggregated compute usage
public ComputedUsage.Type getType()
Usage compute type in SPM.
public Date getTimeOfArrival()
Usae computation date, expressed in RFC 3339 timestamp format.
public Date getTimeMeteredOn()
Metered Service date, expressed in RFC 3339 timestamp format.
public String getNetUnitPrice()
Net Unit Price for the product in consideration, price actual.
public String getCostRounded()
Computed Line Amount rounded.
public String getCost()
Computed Line Amount not rounded
public Product getProduct()
public String getUnitOfMeasure()
Unit of Messure
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.