Package com.oracle.bmc.usageapi.model
Class RequestUsageCarbonEmissionsDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.usageapi.model.RequestUsageCarbonEmissionsDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class RequestUsageCarbonEmissionsDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Details for the ‘/usageCarbonEmissions’ query.
Note: Objects should always be created or deserialized using theRequestUsageCarbonEmissionsDetails.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 theRequestUsageCarbonEmissionsDetails.Builder
, which maintain a set of all explicitly set fields calledRequestUsageCarbonEmissionsDetails.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 Summary
Nested Classes Modifier and Type Class Description static class
RequestUsageCarbonEmissionsDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestUsageCarbonEmissionsDetails.Builder
builder()
Create a new builder.boolean
equals(Object o)
Integer
getCompartmentDepth()
The compartment depth level.Filter
getFilter()
List<String>
getGroupBy()
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()
RequestUsageCarbonEmissionsDetails.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
RequestUsageCarbonEmissionsDetails
@Deprecated @ConstructorProperties({"tenantId","timeUsageStarted","timeUsageEnded","isAggregateByTime","groupBy","groupByTag","compartmentDepth","filter"}) public RequestUsageCarbonEmissionsDetails(String tenantId, Date timeUsageStarted, Date timeUsageEnded, Boolean isAggregateByTime, List<String> groupBy, List<Tag> groupByTag, Integer compartmentDepth, Filter filter)
Deprecated.
-
-
Method Detail
-
builder
public static RequestUsageCarbonEmissionsDetails.Builder builder()
Create a new builder.
-
toBuilder
public RequestUsageCarbonEmissionsDetails.Builder toBuilder()
-
getTenantId
public String getTenantId()
Tenant ID.- Returns:
- the value
-
getTimeUsageStarted
public Date getTimeUsageStarted()
The usage start time.- Returns:
- the value
-
getTimeUsageEnded
public Date getTimeUsageEnded()
The usage end time.- Returns:
- the value
-
getIsAggregateByTime
public Boolean getIsAggregateByTime()
Specifies whether aggregated by time.If isAggregateByTime is true, all usage carbon emissions over the query time period will be added up.
- Returns:
- the value
-
getGroupBy
public List<String> getGroupBy()
Aggregate the result by.For example: [“tagNamespace”, “tagKey”, “tagValue”, “service”, “skuName”, “skuPartNumber”, “unit”, “compartmentName”, “compartmentPath”, “compartmentId”, “platform”, “region”, “logicalAd”, “resourceId”, “resourceName”, “tenantId”, “tenantName”, “subscriptionId”]
- Returns:
- the value
-
getGroupByTag
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: {@code [{“namespace”:“oracle”, “key”:“createdBy”]}
- Returns:
- the value
-
getCompartmentDepth
public Integer getCompartmentDepth()
The compartment depth level.- Returns:
- the value
-
getFilter
public Filter getFilter()
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public 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
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-