@Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class ComputedUsageAggregation extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Computed Usage Aggregation object
Note: Objects should always be created or deserialized using the ComputedUsageAggregation.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 ComputedUsageAggregation.Builder
, which maintain a
set of all explicitly set fields called ComputedUsageAggregation.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 |
ComputedUsageAggregation.Builder |
static class |
ComputedUsageAggregation.Type
Usage compute type in SPM.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ComputedUsageAggregation(String quantity,
ComputedUsageProduct product,
String dataCenter,
Date timeMeteredOn,
String netUnitPrice,
String costUnrounded,
String cost,
ComputedUsageAggregation.Type type)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ComputedUsageAggregation.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCost()
Sum of Computed Line Amount rounded
|
String |
getCostUnrounded()
Sum of Computed Line Amount unrounded
|
String |
getDataCenter()
Data Center Attribute as sent by MQS to SPM.
|
String |
getNetUnitPrice()
Net Unit Price for the product in consideration.
|
ComputedUsageProduct |
getProduct() |
String |
getQuantity()
Total Quantity that was used for computation
|
Date |
getTimeMeteredOn()
Metered Service date , expressed in RFC 3339 timestamp format.
|
ComputedUsageAggregation.Type |
getType()
Usage compute type in SPM.
|
int |
hashCode() |
ComputedUsageAggregation.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"quantity","product","dataCenter","timeMeteredOn","netUnitPrice","costUnrounded","cost","type"}) public ComputedUsageAggregation(String quantity, ComputedUsageProduct product, String dataCenter, Date timeMeteredOn, String netUnitPrice, String costUnrounded, String cost, ComputedUsageAggregation.Type type)
public static ComputedUsageAggregation.Builder builder()
Create a new builder.
public ComputedUsageAggregation.Builder toBuilder()
public String getQuantity()
Total Quantity that was used for computation
public ComputedUsageProduct getProduct()
public String getDataCenter()
Data Center Attribute as sent by MQS to SPM.
public Date getTimeMeteredOn()
Metered Service date , expressed in RFC 3339 timestamp format.
public String getNetUnitPrice()
Net Unit Price for the product in consideration.
public String getCostUnrounded()
Sum of Computed Line Amount unrounded
public String getCost()
Sum of Computed Line Amount rounded
public ComputedUsageAggregation.Type getType()
Usage compute type in SPM.
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.