@Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class UsageCarbonEmissionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The usage carbon emission store result.
Note: Objects should always be created or deserialized using the UsageCarbonEmissionSummary.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 UsageCarbonEmissionSummary.Builder
, which maintain a
set of all explicitly set fields called UsageCarbonEmissionSummary.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 |
UsageCarbonEmissionSummary.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
UsageCarbonEmissionSummary(String tenantId,
String tenantName,
String compartmentId,
String compartmentPath,
String compartmentName,
String service,
String resourceName,
String resourceId,
String region,
String ad,
String skuPartNumber,
String skuName,
String platform,
Date timeUsageStarted,
Date timeUsageEnded,
Double computedCarbonEmission,
String emissionCalculationMethod,
String subscriptionId,
List<Tag> tags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static UsageCarbonEmissionSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getAd()
The availability domain of the usage.
|
String |
getCompartmentId()
The compartment OCID.
|
String |
getCompartmentName()
The compartment name.
|
String |
getCompartmentPath()
The compartment path, starting from root.
|
Double |
getComputedCarbonEmission()
The carbon emission in MTCO2 unit.
|
String |
getEmissionCalculationMethod()
The method used to calculate carbon emission.
|
String |
getPlatform()
Platform for the cost.
|
String |
getRegion()
The region of the usage.
|
String |
getResourceId()
The resource OCID that is incurring the cost.
|
String |
getResourceName()
The resource name that is incurring the cost.
|
String |
getService()
The service name that is incurring the cost.
|
String |
getSkuName()
The SKU friendly name.
|
String |
getSkuPartNumber()
The SKU part number.
|
String |
getSubscriptionId()
The subscription ID.
|
List<Tag> |
getTags()
For grouping, a tag definition.
|
String |
getTenantId()
The tenancy OCID.
|
String |
getTenantName()
The tenancy name.
|
Date |
getTimeUsageEnded()
The usage end time.
|
Date |
getTimeUsageStarted()
The usage start time.
|
int |
hashCode() |
UsageCarbonEmissionSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"tenantId","tenantName","compartmentId","compartmentPath","compartmentName","service","resourceName","resourceId","region","ad","skuPartNumber","skuName","platform","timeUsageStarted","timeUsageEnded","computedCarbonEmission","emissionCalculationMethod","subscriptionId","tags"}) public UsageCarbonEmissionSummary(String tenantId, String tenantName, String compartmentId, String compartmentPath, String compartmentName, String service, String resourceName, String resourceId, String region, String ad, String skuPartNumber, String skuName, String platform, Date timeUsageStarted, Date timeUsageEnded, Double computedCarbonEmission, String emissionCalculationMethod, String subscriptionId, List<Tag> tags)
public static UsageCarbonEmissionSummary.Builder builder()
Create a new builder.
public UsageCarbonEmissionSummary.Builder toBuilder()
public String getTenantId()
The tenancy OCID.
public String getTenantName()
The tenancy name.
public String getCompartmentId()
The compartment OCID.
public String getCompartmentPath()
The compartment path, starting from root.
public String getCompartmentName()
The compartment name.
public String getService()
The service name that is incurring the cost.
public String getResourceName()
The resource name that is incurring the cost.
public String getResourceId()
The resource OCID that is incurring the cost.
public String getRegion()
The region of the usage.
public String getAd()
The availability domain of the usage.
public String getSkuPartNumber()
The SKU part number.
public String getSkuName()
The SKU friendly name.
public String getPlatform()
Platform for the cost.
public Date getTimeUsageStarted()
The usage start time.
public Date getTimeUsageEnded()
The usage end time.
public Double getComputedCarbonEmission()
The carbon emission in MTCO2 unit.
public String getEmissionCalculationMethod()
The method used to calculate carbon emission.
public String getSubscriptionId()
The subscription ID.
public List<Tag> getTags()
For grouping, a tag definition. For filtering, a definition and key.
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.