public static class UsageSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UsageSummary.Builder |
ad(String ad)
The availability domain of the usage.
|
UsageSummary.Builder |
attributedCost(String attributedCost)
The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.
|
UsageSummary.Builder |
attributedUsage(String attributedUsage)
The attributed usage with a max value of 9999999999.999999999999 and a minimum value of
0.
|
UsageSummary |
build() |
UsageSummary.Builder |
compartmentId(String compartmentId)
The compartment OCID.
|
UsageSummary.Builder |
compartmentName(String compartmentName)
The compartment name.
|
UsageSummary.Builder |
compartmentPath(String compartmentPath)
The compartment path, starting from root.
|
UsageSummary.Builder |
computedAmount(BigDecimal computedAmount)
The computed cost.
|
UsageSummary.Builder |
computedQuantity(BigDecimal computedQuantity)
The usage number.
|
UsageSummary.Builder |
copy(UsageSummary model) |
UsageSummary.Builder |
currency(String currency)
The price currency.
|
UsageSummary.Builder |
discount(BigDecimal discount)
The discretionary discount applied to the SKU.
|
UsageSummary.Builder |
isForecast(Boolean isForecast)
The forecasted data.
|
UsageSummary.Builder |
listRate(BigDecimal listRate)
The SKU list rate (not discount).
|
UsageSummary.Builder |
overage(String overage)
The overage usage.
|
UsageSummary.Builder |
overagesFlag(String overagesFlag)
The SPM OverageFlag.
|
UsageSummary.Builder |
platform(String platform)
Platform for the cost.
|
UsageSummary.Builder |
region(String region)
The region of the usage.
|
UsageSummary.Builder |
resourceId(String resourceId)
The resource OCID that is incurring the cost.
|
UsageSummary.Builder |
resourceName(String resourceName)
The resource name that is incurring the cost.
|
UsageSummary.Builder |
service(String service)
The service name that is incurring the cost.
|
UsageSummary.Builder |
shape(String shape)
The resource shape.
|
UsageSummary.Builder |
skuName(String skuName)
The SKU friendly name.
|
UsageSummary.Builder |
skuPartNumber(String skuPartNumber)
The SKU part number.
|
UsageSummary.Builder |
subscriptionId(String subscriptionId)
The subscription ID.
|
UsageSummary.Builder |
tags(List<Tag> tags)
For grouping, a tag definition.
|
UsageSummary.Builder |
tenantId(String tenantId)
The tenancy OCID.
|
UsageSummary.Builder |
tenantName(String tenantName)
The tenancy name.
|
UsageSummary.Builder |
timeUsageEnded(Date timeUsageEnded)
The usage end time.
|
UsageSummary.Builder |
timeUsageStarted(Date timeUsageStarted)
The usage start time.
|
UsageSummary.Builder |
unit(String unit)
The usage unit.
|
UsageSummary.Builder |
unitPrice(BigDecimal unitPrice)
The price per unit.
|
UsageSummary.Builder |
weight(BigDecimal weight)
The resource size being metered.
|
public UsageSummary.Builder tenantId(String tenantId)
The tenancy OCID.
tenantId
- the value to setpublic UsageSummary.Builder tenantName(String tenantName)
The tenancy name.
tenantName
- the value to setpublic UsageSummary.Builder compartmentId(String compartmentId)
The compartment OCID.
compartmentId
- the value to setpublic UsageSummary.Builder compartmentPath(String compartmentPath)
The compartment path, starting from root.
compartmentPath
- the value to setpublic UsageSummary.Builder compartmentName(String compartmentName)
The compartment name.
compartmentName
- the value to setpublic UsageSummary.Builder service(String service)
The service name that is incurring the cost.
service
- the value to setpublic UsageSummary.Builder resourceName(String resourceName)
The resource name that is incurring the cost.
resourceName
- the value to setpublic UsageSummary.Builder resourceId(String resourceId)
The resource OCID that is incurring the cost.
resourceId
- the value to setpublic UsageSummary.Builder region(String region)
The region of the usage.
region
- the value to setpublic UsageSummary.Builder ad(String ad)
The availability domain of the usage.
ad
- the value to setpublic UsageSummary.Builder weight(BigDecimal weight)
The resource size being metered.
weight
- the value to setpublic UsageSummary.Builder shape(String shape)
The resource shape.
shape
- the value to setpublic UsageSummary.Builder skuPartNumber(String skuPartNumber)
The SKU part number.
skuPartNumber
- the value to setpublic UsageSummary.Builder skuName(String skuName)
The SKU friendly name.
skuName
- the value to setpublic UsageSummary.Builder unit(String unit)
The usage unit.
unit
- the value to setpublic UsageSummary.Builder discount(BigDecimal discount)
The discretionary discount applied to the SKU.
discount
- the value to setpublic UsageSummary.Builder listRate(BigDecimal listRate)
The SKU list rate (not discount).
listRate
- the value to setpublic UsageSummary.Builder platform(String platform)
Platform for the cost.
platform
- the value to setpublic UsageSummary.Builder timeUsageStarted(Date timeUsageStarted)
The usage start time.
timeUsageStarted
- the value to setpublic UsageSummary.Builder timeUsageEnded(Date timeUsageEnded)
The usage end time.
timeUsageEnded
- the value to setpublic UsageSummary.Builder computedAmount(BigDecimal computedAmount)
The computed cost.
computedAmount
- the value to setpublic UsageSummary.Builder computedQuantity(BigDecimal computedQuantity)
The usage number.
computedQuantity
- the value to setpublic UsageSummary.Builder attributedCost(String attributedCost)
The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.
attributedCost
- the value to setpublic UsageSummary.Builder attributedUsage(String attributedUsage)
The attributed usage with a max value of 9999999999.999999999999 and a minimum value of 0.
attributedUsage
- the value to setpublic UsageSummary.Builder overagesFlag(String overagesFlag)
The SPM OverageFlag.
overagesFlag
- the value to setpublic UsageSummary.Builder unitPrice(BigDecimal unitPrice)
The price per unit.
unitPrice
- the value to setpublic UsageSummary.Builder currency(String currency)
The price currency.
currency
- the value to setpublic UsageSummary.Builder subscriptionId(String subscriptionId)
The subscription ID.
subscriptionId
- the value to setpublic UsageSummary.Builder overage(String overage)
The overage usage.
overage
- the value to setpublic UsageSummary.Builder isForecast(Boolean isForecast)
The forecasted data.
isForecast
- the value to setpublic UsageSummary.Builder tags(List<Tag> tags)
For grouping, a tag definition. For filtering, a definition and key.
tags
- the value to setpublic UsageSummary build()
public UsageSummary.Builder copy(UsageSummary model)
Copyright © 2016–2024. All rights reserved.