public static class UsageCarbonEmissionsReportQuery.Builder extends Object
Constructor and Description |
---|
Builder() |
public UsageCarbonEmissionsReportQuery.Builder tenantId(String tenantId)
Tenant ID.
tenantId
- the value to setpublic UsageCarbonEmissionsReportQuery.Builder timeUsageStarted(Date timeUsageStarted)
The usage start time.
timeUsageStarted
- the value to setpublic UsageCarbonEmissionsReportQuery.Builder timeUsageEnded(Date timeUsageEnded)
The usage end time.
timeUsageEnded
- the value to setpublic UsageCarbonEmissionsReportQuery.Builder isAggregateByTime(Boolean isAggregateByTime)
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
isAggregateByTime
- the value to setpublic UsageCarbonEmissionsReportQuery.Builder groupBy(List<String> groupBy)
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"]
groupBy
- the value to setpublic UsageCarbonEmissionsReportQuery.Builder groupByTag(List<Tag> groupByTag)
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"]}
groupByTag
- the value to setpublic UsageCarbonEmissionsReportQuery.Builder compartmentDepth(Integer compartmentDepth)
The compartment depth level.
compartmentDepth
- the value to setpublic UsageCarbonEmissionsReportQuery.Builder filter(Filter filter)
public UsageCarbonEmissionsReportQuery.Builder dateRangeName(UsageCarbonEmissionsReportQuery.DateRangeName dateRangeName)
The UI date range, for example, LAST_THREE_MONTHS. It will override timeUsageStarted and timeUsageEnded properties.
dateRangeName
- the value to setpublic UsageCarbonEmissionsReportQuery build()
public UsageCarbonEmissionsReportQuery.Builder copy(UsageCarbonEmissionsReportQuery model)
Copyright © 2016–2024. All rights reserved.