Package com.oracle.bmc.usageapi.model
Class RequestUsageCarbonEmissionsDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.usageapi.model.RequestUsageCarbonEmissionsDetails.Builder
-
- Enclosing class:
- RequestUsageCarbonEmissionsDetails
public static class RequestUsageCarbonEmissionsDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
tenantId
public RequestUsageCarbonEmissionsDetails.Builder tenantId(String tenantId)
Tenant ID.- Parameters:
tenantId
- the value to set- Returns:
- this builder
-
timeUsageStarted
public RequestUsageCarbonEmissionsDetails.Builder timeUsageStarted(Date timeUsageStarted)
The usage start time.- Parameters:
timeUsageStarted
- the value to set- Returns:
- this builder
-
timeUsageEnded
public RequestUsageCarbonEmissionsDetails.Builder timeUsageEnded(Date timeUsageEnded)
The usage end time.- Parameters:
timeUsageEnded
- the value to set- Returns:
- this builder
-
isAggregateByTime
public 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.
- Parameters:
isAggregateByTime
- the value to set- Returns:
- this builder
-
groupBy
public 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”]
- Parameters:
groupBy
- the value to set- Returns:
- this builder
-
groupByTag
public 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: {@code [{“namespace”:“oracle”, “key”:“createdBy”]}
- Parameters:
groupByTag
- the value to set- Returns:
- this builder
-
compartmentDepth
public RequestUsageCarbonEmissionsDetails.Builder compartmentDepth(Integer compartmentDepth)
The compartment depth level.- Parameters:
compartmentDepth
- the value to set- Returns:
- this builder
-
filter
public RequestUsageCarbonEmissionsDetails.Builder filter(Filter filter)
-
build
public RequestUsageCarbonEmissionsDetails build()
-
copy
public RequestUsageCarbonEmissionsDetails.Builder copy(RequestUsageCarbonEmissionsDetails model)
-
-