Package com.oracle.bmc.usageapi.model
Class UsageCarbonEmissionSummary
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.usageapi.model.UsageCarbonEmissionSummary
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class UsageCarbonEmissionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe carbon emission usage store result.
 Note: Objects should always be created or deserialized using theUsageCarbonEmissionSummary.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 theUsageCarbonEmissionSummary.Builder, which maintain a set of all explicitly set fields calledUsageCarbonEmissionSummary.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 SummaryNested Classes Modifier and Type Class Description static classUsageCarbonEmissionSummary.Builder
 - 
Constructor SummaryConstructors Constructor 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, RequestUsageCarbonEmissionsDetails.EmissionType emissionType, String subscriptionId, List<Tag> tags)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsageCarbonEmissionSummary.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetAd()The availability domain of the usage.StringgetCompartmentId()The compartment OCID.StringgetCompartmentName()The compartment name.StringgetCompartmentPath()The compartment path, starting from root.DoublegetComputedCarbonEmission()The carbon emission usage in MTCO2 units.StringgetEmissionCalculationMethod()Specifies the approach for calculating carbon emissions, supports both SPEND_BASED (based on expenditure data) and POWER_BASED (based on power consumption, newly introduced in the metering pipeline)RequestUsageCarbonEmissionsDetails.EmissionTypegetEmissionType()The emission type, such as MARKET_BASED or LOCATION_BASED.StringgetPlatform()Platform for the cost.StringgetRegion()The region of the usage.StringgetResourceId()The resource OCID that is incurring the cost.StringgetResourceName()The resource name that is incurring the cost.StringgetService()The service name that is incurring the cost.StringgetSkuName()The SKU friendly name.StringgetSkuPartNumber()The SKU part number.StringgetSubscriptionId()The subscription ID.List<Tag>getTags()For grouping, a tag definition.StringgetTenantId()The tenancy OCID.StringgetTenantName()The tenancy name.DategetTimeUsageEnded()The usage end time.DategetTimeUsageStarted()The usage start time.inthashCode()UsageCarbonEmissionSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
UsageCarbonEmissionSummary@Deprecated @ConstructorProperties({"tenantId","tenantName","compartmentId","compartmentPath","compartmentName","service","resourceName","resourceId","region","ad","skuPartNumber","skuName","platform","timeUsageStarted","timeUsageEnded","computedCarbonEmission","emissionCalculationMethod","emissionType","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, RequestUsageCarbonEmissionsDetails.EmissionType emissionType, String subscriptionId, List<Tag> tags) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static UsageCarbonEmissionSummary.Builder builder() Create a new builder.
 - 
toBuilderpublic UsageCarbonEmissionSummary.Builder toBuilder() 
 - 
getTenantIdpublic String getTenantId() The tenancy OCID.- Returns:
- the value
 
 - 
getTenantNamepublic String getTenantName() The tenancy name.- Returns:
- the value
 
 - 
getCompartmentIdpublic String getCompartmentId() The compartment OCID.- Returns:
- the value
 
 - 
getCompartmentPathpublic String getCompartmentPath() The compartment path, starting from root.- Returns:
- the value
 
 - 
getCompartmentNamepublic String getCompartmentName() The compartment name.- Returns:
- the value
 
 - 
getServicepublic String getService() The service name that is incurring the cost.- Returns:
- the value
 
 - 
getResourceNamepublic String getResourceName() The resource name that is incurring the cost.- Returns:
- the value
 
 - 
getResourceIdpublic String getResourceId() The resource OCID that is incurring the cost.- Returns:
- the value
 
 - 
getRegionpublic String getRegion() The region of the usage.- Returns:
- the value
 
 - 
getAdpublic String getAd() The availability domain of the usage.- Returns:
- the value
 
 - 
getSkuPartNumberpublic String getSkuPartNumber() The SKU part number.- Returns:
- the value
 
 - 
getSkuNamepublic String getSkuName() The SKU friendly name.- Returns:
- the value
 
 - 
getPlatformpublic String getPlatform() Platform for the cost.- Returns:
- the value
 
 - 
getTimeUsageStartedpublic Date getTimeUsageStarted() The usage start time.- Returns:
- the value
 
 - 
getTimeUsageEndedpublic Date getTimeUsageEnded() The usage end time.- Returns:
- the value
 
 - 
getComputedCarbonEmissionpublic Double getComputedCarbonEmission() The carbon emission usage in MTCO2 units.- Returns:
- the value
 
 - 
getEmissionCalculationMethodpublic String getEmissionCalculationMethod() Specifies the approach for calculating carbon emissions, supports both SPEND_BASED (based on expenditure data) and POWER_BASED (based on power consumption, newly introduced in the metering pipeline)- Returns:
- the value
 
 - 
getEmissionTypepublic RequestUsageCarbonEmissionsDetails.EmissionType getEmissionType() The emission type, such as MARKET_BASED or LOCATION_BASED.- Returns:
- the value
 
 - 
getSubscriptionIdpublic String getSubscriptionId() The subscription ID.- Returns:
- the value
 
 - 
getTagspublic List<Tag> getTags() For grouping, a tag definition.For filtering, a definition and key. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-