public static class RequestUsageCarbonEmissionsDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
public RequestUsageCarbonEmissionsDetails.Builder tenantId(String tenantId)
Tenant ID.
tenantId
- the value to setpublic RequestUsageCarbonEmissionsDetails.Builder timeUsageStarted(Date timeUsageStarted)
The usage start time.
timeUsageStarted
- the value to setpublic RequestUsageCarbonEmissionsDetails.Builder timeUsageEnded(Date timeUsageEnded)
The usage end time.
timeUsageEnded
- the value to setpublic RequestUsageCarbonEmissionsDetails.Builder isAggregateByTime(Boolean isAggregateByTime)
Specifies whether aggregated by time. If isAggregateByTime is true, all usage carbon emissions over the query time period will be added up.
isAggregateByTime
- the value to setpublic RequestUsageCarbonEmissionsDetails.Builder groupBy(List<String> groupBy)
Aggregate the result by. For example: ["tagNamespace", "tagKey", "tagValue",
"service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath",
"compartmentId", "platform", "region", "logicalAd", "resourceId", "resourceName",
"tenantId", "tenantName", "subscriptionId"]
groupBy
- the value to setpublic RequestUsageCarbonEmissionsDetails.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 RequestUsageCarbonEmissionsDetails.Builder compartmentDepth(Integer compartmentDepth)
The compartment depth level.
compartmentDepth
- the value to setpublic RequestUsageCarbonEmissionsDetails.Builder filter(Filter filter)
public RequestUsageCarbonEmissionsDetails build()
public RequestUsageCarbonEmissionsDetails.Builder copy(RequestUsageCarbonEmissionsDetails model)
Copyright © 2016–2024. All rights reserved.