public static class UsageCarbonEmissionSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
public UsageCarbonEmissionSummary.Builder tenantId(String tenantId)
The tenancy OCID.
tenantId
- the value to setpublic UsageCarbonEmissionSummary.Builder tenantName(String tenantName)
The tenancy name.
tenantName
- the value to setpublic UsageCarbonEmissionSummary.Builder compartmentId(String compartmentId)
The compartment OCID.
compartmentId
- the value to setpublic UsageCarbonEmissionSummary.Builder compartmentPath(String compartmentPath)
The compartment path, starting from root.
compartmentPath
- the value to setpublic UsageCarbonEmissionSummary.Builder compartmentName(String compartmentName)
The compartment name.
compartmentName
- the value to setpublic UsageCarbonEmissionSummary.Builder service(String service)
The service name that is incurring the cost.
service
- the value to setpublic UsageCarbonEmissionSummary.Builder resourceName(String resourceName)
The resource name that is incurring the cost.
resourceName
- the value to setpublic UsageCarbonEmissionSummary.Builder resourceId(String resourceId)
The resource OCID that is incurring the cost.
resourceId
- the value to setpublic UsageCarbonEmissionSummary.Builder region(String region)
The region of the usage.
region
- the value to setpublic UsageCarbonEmissionSummary.Builder ad(String ad)
The availability domain of the usage.
ad
- the value to setpublic UsageCarbonEmissionSummary.Builder skuPartNumber(String skuPartNumber)
The SKU part number.
skuPartNumber
- the value to setpublic UsageCarbonEmissionSummary.Builder skuName(String skuName)
The SKU friendly name.
skuName
- the value to setpublic UsageCarbonEmissionSummary.Builder platform(String platform)
Platform for the cost.
platform
- the value to setpublic UsageCarbonEmissionSummary.Builder timeUsageStarted(Date timeUsageStarted)
The usage start time.
timeUsageStarted
- the value to setpublic UsageCarbonEmissionSummary.Builder timeUsageEnded(Date timeUsageEnded)
The usage end time.
timeUsageEnded
- the value to setpublic UsageCarbonEmissionSummary.Builder computedCarbonEmission(Double computedCarbonEmission)
The carbon emission in MTCO2 unit.
computedCarbonEmission
- the value to setpublic UsageCarbonEmissionSummary.Builder emissionCalculationMethod(String emissionCalculationMethod)
The method used to calculate carbon emission.
emissionCalculationMethod
- the value to setpublic UsageCarbonEmissionSummary.Builder subscriptionId(String subscriptionId)
The subscription ID.
subscriptionId
- the value to setpublic UsageCarbonEmissionSummary.Builder tags(List<Tag> tags)
For grouping, a tag definition. For filtering, a definition and key.
tags
- the value to setpublic UsageCarbonEmissionSummary build()
public UsageCarbonEmissionSummary.Builder copy(UsageCarbonEmissionSummary model)
Copyright © 2016–2024. All rights reserved.