@Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class UsageCarbonEmissionsReportQuery extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The request of the generated usage carbon emissions report.
Note: Objects should always be created or deserialized using the UsageCarbonEmissionsReportQuery.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 UsageCarbonEmissionsReportQuery.Builder
, which maintain a
set of all explicitly set fields called UsageCarbonEmissionsReportQuery.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 |
UsageCarbonEmissionsReportQuery.Builder |
static class |
UsageCarbonEmissionsReportQuery.DateRangeName
The UI date range, for example, LAST_THREE_MONTHS.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
UsageCarbonEmissionsReportQuery(String tenantId,
Date timeUsageStarted,
Date timeUsageEnded,
Boolean isAggregateByTime,
List<String> groupBy,
List<Tag> groupByTag,
Integer compartmentDepth,
Filter filter,
UsageCarbonEmissionsReportQuery.DateRangeName dateRangeName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static UsageCarbonEmissionsReportQuery.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getCompartmentDepth()
The compartment depth level.
|
UsageCarbonEmissionsReportQuery.DateRangeName |
getDateRangeName()
The UI date range, for example, LAST_THREE_MONTHS.
|
Filter |
getFilter() |
List<String> |
getGroupBy()
Specifies what to aggregate the result by.
|
List<Tag> |
getGroupByTag()
GroupBy a specific tagKey.
|
Boolean |
getIsAggregateByTime()
Specifies whether aggregated by time.
|
String |
getTenantId()
Tenant ID.
|
Date |
getTimeUsageEnded()
The usage end time.
|
Date |
getTimeUsageStarted()
The usage start time.
|
int |
hashCode() |
UsageCarbonEmissionsReportQuery.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"tenantId","timeUsageStarted","timeUsageEnded","isAggregateByTime","groupBy","groupByTag","compartmentDepth","filter","dateRangeName"}) public UsageCarbonEmissionsReportQuery(String tenantId, Date timeUsageStarted, Date timeUsageEnded, Boolean isAggregateByTime, List<String> groupBy, List<Tag> groupByTag, Integer compartmentDepth, Filter filter, UsageCarbonEmissionsReportQuery.DateRangeName dateRangeName)
public static UsageCarbonEmissionsReportQuery.Builder builder()
Create a new builder.
public UsageCarbonEmissionsReportQuery.Builder toBuilder()
public String getTenantId()
Tenant ID.
public Date getTimeUsageStarted()
The usage start time.
public Date getTimeUsageEnded()
The usage end time.
public Boolean getIsAggregateByTime()
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
public 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"]
public 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: [{"namespace":"oracle", "key":"createdBy"]}
public Integer getCompartmentDepth()
The compartment depth level.
public Filter getFilter()
public UsageCarbonEmissionsReportQuery.DateRangeName getDateRangeName()
The UI date range, for example, LAST_THREE_MONTHS. It will override timeUsageStarted and timeUsageEnded properties.
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.