Package com.oracle.bmc.usageapi.model
Class UsageCarbonEmissionsReportQuery
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.usageapi.model.UsageCarbonEmissionsReportQuery
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class UsageCarbonEmissionsReportQuery extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe request of the generated carbon emissions usage report.
 Note: Objects should always be created or deserialized using theUsageCarbonEmissionsReportQuery.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 theUsageCarbonEmissionsReportQuery.Builder, which maintain a set of all explicitly set fields calledUsageCarbonEmissionsReportQuery.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 classUsageCarbonEmissionsReportQuery.Builderstatic classUsageCarbonEmissionsReportQuery.DateRangeNameThe user interface date range, for example, LAST_THREE_MONTHS.
 - 
Constructor SummaryConstructors Constructor Description UsageCarbonEmissionsReportQuery(String tenantId, Date timeUsageStarted, Date timeUsageEnded, RequestUsageCarbonEmissionsDetails.EmissionCalculationMethod emissionCalculationMethod, RequestUsageCarbonEmissionsDetails.EmissionType emissionType, RequestUsageCarbonEmissionsDetails.Granularity granularity, Boolean isAggregateByTime, List<String> groupBy, List<Tag> groupByTag, Integer compartmentDepth, Filter filter, UsageCarbonEmissionsReportQuery.DateRangeName dateRangeName)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsageCarbonEmissionsReportQuery.Builderbuilder()Create a new builder.booleanequals(Object o)IntegergetCompartmentDepth()The compartment depth level.UsageCarbonEmissionsReportQuery.DateRangeNamegetDateRangeName()The user interface date range, for example, LAST_THREE_MONTHS.RequestUsageCarbonEmissionsDetails.EmissionCalculationMethodgetEmissionCalculationMethod()Specifies the method used for emission calculation, such as POWER_BASED or SPEND_BASEDRequestUsageCarbonEmissionsDetails.EmissionTypegetEmissionType()Specifies the type of emission, such as MARKET_BASED or LOCATION_BASED.FiltergetFilter()RequestUsageCarbonEmissionsDetails.GranularitygetGranularity()The carbon emission granularity.List<String>getGroupBy()Specifies what to aggregate the result by.List<Tag>getGroupByTag()GroupBy a specific tagKey.BooleangetIsAggregateByTime()Specifies whether aggregated by time.StringgetTenantId()Tenant ID.DategetTimeUsageEnded()The usage end time.DategetTimeUsageStarted()The usage start time.inthashCode()UsageCarbonEmissionsReportQuery.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
UsageCarbonEmissionsReportQuery@Deprecated @ConstructorProperties({"tenantId","timeUsageStarted","timeUsageEnded","emissionCalculationMethod","emissionType","granularity","isAggregateByTime","groupBy","groupByTag","compartmentDepth","filter","dateRangeName"}) public UsageCarbonEmissionsReportQuery(String tenantId, Date timeUsageStarted, Date timeUsageEnded, RequestUsageCarbonEmissionsDetails.EmissionCalculationMethod emissionCalculationMethod, RequestUsageCarbonEmissionsDetails.EmissionType emissionType, RequestUsageCarbonEmissionsDetails.Granularity granularity, Boolean isAggregateByTime, List<String> groupBy, List<Tag> groupByTag, Integer compartmentDepth, Filter filter, UsageCarbonEmissionsReportQuery.DateRangeName dateRangeName) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static UsageCarbonEmissionsReportQuery.Builder builder() Create a new builder.
 - 
toBuilderpublic UsageCarbonEmissionsReportQuery.Builder toBuilder() 
 - 
getTenantIdpublic String getTenantId() Tenant ID.- Returns:
- the value
 
 - 
getTimeUsageStartedpublic Date getTimeUsageStarted() The usage start time.- Returns:
- the value
 
 - 
getTimeUsageEndedpublic Date getTimeUsageEnded() The usage end time.- Returns:
- the value
 
 - 
getEmissionCalculationMethodpublic RequestUsageCarbonEmissionsDetails.EmissionCalculationMethod getEmissionCalculationMethod() Specifies the method used for emission calculation, such as POWER_BASED or SPEND_BASED- Returns:
- the value
 
 - 
getEmissionTypepublic RequestUsageCarbonEmissionsDetails.EmissionType getEmissionType() Specifies the type of emission, such as MARKET_BASED or LOCATION_BASED.- Returns:
- the value
 
 - 
getGranularitypublic RequestUsageCarbonEmissionsDetails.Granularity getGranularity() The carbon emission granularity.DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. - Returns:
- the value
 
 - 
getIsAggregateByTimepublic Boolean getIsAggregateByTime() Specifies whether aggregated by time.If isAggregateByTime is true, all usage or costs over the query time period are summed. - Returns:
- the value
 
 - 
getGroupBypublic List<String> getGroupBy() Specifies what to aggregate the result by.For example: [“tagNamespace”, “tagKey”, “tagValue”, “service”, “skuName”, “skuPartNumber”, “unit”, “compartmentName”, “compartmentPath”, “compartmentId”, “platform”, “region”, “logicalAd”, “resourceId”, “tenantId”, “tenantName”] - Returns:
- the value
 
 - 
getGroupByTagpublic List<Tag> getGroupByTag() GroupBy a specific tagKey.Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: {@code [{“namespace”:“oracle”, “key”:“createdBy”]} - Returns:
- the value
 
 - 
getCompartmentDepthpublic Integer getCompartmentDepth() The compartment depth level.- Returns:
- the value
 
 - 
getFilterpublic Filter getFilter() 
 - 
getDateRangeNamepublic UsageCarbonEmissionsReportQuery.DateRangeName getDateRangeName() The user interface date range, for example, LAST_THREE_MONTHS.Overrides the timeUsageStarted and timeUsageEnded properties. - 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
 
 
- 
 
-