@Generated(value="OracleSDKGenerator", comments="API Version: 20220919") public final class CostEstimation extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Cost estimation description
Note: Objects should always be created or deserialized using the CostEstimation.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 CostEstimation.Builder
, which maintain a
set of all explicitly set fields called CostEstimation.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 |
CostEstimation.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
CostEstimation(ComputeCostEstimation compute,
StorageCostEstimation storage,
OsImageEstimation osImage,
String currencyCode,
BigDecimal totalEstimationPerMonth,
BigDecimal totalEstimationPerMonthBySubscription,
String subscriptionId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CostEstimation.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
ComputeCostEstimation |
getCompute() |
String |
getCurrencyCode()
Currency code in the ISO format.
|
OsImageEstimation |
getOsImage() |
StorageCostEstimation |
getStorage() |
String |
getSubscriptionId()
Subscription ID
|
BigDecimal |
getTotalEstimationPerMonth()
Total estimation per month
|
BigDecimal |
getTotalEstimationPerMonthBySubscription()
Total estimation per month by subscription.
|
int |
hashCode() |
CostEstimation.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"compute","storage","osImage","currencyCode","totalEstimationPerMonth","totalEstimationPerMonthBySubscription","subscriptionId"}) public CostEstimation(ComputeCostEstimation compute, StorageCostEstimation storage, OsImageEstimation osImage, String currencyCode, BigDecimal totalEstimationPerMonth, BigDecimal totalEstimationPerMonthBySubscription, String subscriptionId)
public static CostEstimation.Builder builder()
Create a new builder.
public CostEstimation.Builder toBuilder()
public ComputeCostEstimation getCompute()
public StorageCostEstimation getStorage()
public OsImageEstimation getOsImage()
public String getCurrencyCode()
Currency code in the ISO format.
public BigDecimal getTotalEstimationPerMonth()
Total estimation per month
public BigDecimal getTotalEstimationPerMonthBySubscription()
Total estimation per month by subscription.
public String getSubscriptionId()
Subscription ID
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.