Class UsageCarbonEmissionsReportQuery


  • @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).
    • Method Detail

      • 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 or cost over the query time period will be added up.

        Returns:
        the value
      • getGroupBy

        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”]

        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()
      • getDateRangeName

        public UsageCarbonEmissionsReportQuery.DateRangeName getDateRangeName()
        The UI date range, for example, LAST_THREE_MONTHS.

        It will override timeUsageStarted and timeUsageEnded properties.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel