Package com.oracle.bmc.usageapi.model
Class UsageSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.usageapi.model.UsageSummary.Builder
-
- Enclosing class:
- UsageSummary
public static class UsageSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
tenantId
public UsageSummary.Builder tenantId(String tenantId)
The tenancy OCID.- Parameters:
tenantId
- the value to set- Returns:
- this builder
-
tenantName
public UsageSummary.Builder tenantName(String tenantName)
The tenancy name.- Parameters:
tenantName
- the value to set- Returns:
- this builder
-
compartmentId
public UsageSummary.Builder compartmentId(String compartmentId)
The compartment OCID.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
compartmentPath
public UsageSummary.Builder compartmentPath(String compartmentPath)
The compartment path, starting from root.- Parameters:
compartmentPath
- the value to set- Returns:
- this builder
-
compartmentName
public UsageSummary.Builder compartmentName(String compartmentName)
The compartment name.- Parameters:
compartmentName
- the value to set- Returns:
- this builder
-
service
public UsageSummary.Builder service(String service)
The service name that is incurring the cost.- Parameters:
service
- the value to set- Returns:
- this builder
-
resourceName
public UsageSummary.Builder resourceName(String resourceName)
The resource name that is incurring the cost.- Parameters:
resourceName
- the value to set- Returns:
- this builder
-
resourceId
public UsageSummary.Builder resourceId(String resourceId)
The resource OCID that is incurring the cost.- Parameters:
resourceId
- the value to set- Returns:
- this builder
-
region
public UsageSummary.Builder region(String region)
The region of the usage.- Parameters:
region
- the value to set- Returns:
- this builder
-
ad
public UsageSummary.Builder ad(String ad)
The availability domain of the usage.- Parameters:
ad
- the value to set- Returns:
- this builder
-
weight
public UsageSummary.Builder weight(BigDecimal weight)
The resource size being metered.- Parameters:
weight
- the value to set- Returns:
- this builder
-
shape
public UsageSummary.Builder shape(String shape)
The resource shape.- Parameters:
shape
- the value to set- Returns:
- this builder
-
skuPartNumber
public UsageSummary.Builder skuPartNumber(String skuPartNumber)
The SKU part number.- Parameters:
skuPartNumber
- the value to set- Returns:
- this builder
-
skuName
public UsageSummary.Builder skuName(String skuName)
The SKU friendly name.- Parameters:
skuName
- the value to set- Returns:
- this builder
-
unit
public UsageSummary.Builder unit(String unit)
The usage unit.- Parameters:
unit
- the value to set- Returns:
- this builder
-
discount
public UsageSummary.Builder discount(BigDecimal discount)
The discretionary discount applied to the SKU.- Parameters:
discount
- the value to set- Returns:
- this builder
-
listRate
public UsageSummary.Builder listRate(BigDecimal listRate)
The SKU list rate (not discount).- Parameters:
listRate
- the value to set- Returns:
- this builder
-
platform
public UsageSummary.Builder platform(String platform)
Platform for the cost.- Parameters:
platform
- the value to set- Returns:
- this builder
-
timeUsageStarted
public UsageSummary.Builder timeUsageStarted(Date timeUsageStarted)
The usage start time.- Parameters:
timeUsageStarted
- the value to set- Returns:
- this builder
-
timeUsageEnded
public UsageSummary.Builder timeUsageEnded(Date timeUsageEnded)
The usage end time.- Parameters:
timeUsageEnded
- the value to set- Returns:
- this builder
-
computedAmount
public UsageSummary.Builder computedAmount(BigDecimal computedAmount)
The computed cost.- Parameters:
computedAmount
- the value to set- Returns:
- this builder
-
computedQuantity
public UsageSummary.Builder computedQuantity(BigDecimal computedQuantity)
The usage number.- Parameters:
computedQuantity
- the value to set- Returns:
- this builder
-
attributedCost
public UsageSummary.Builder attributedCost(String attributedCost)
The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.- Parameters:
attributedCost
- the value to set- Returns:
- this builder
-
attributedUsage
public UsageSummary.Builder attributedUsage(String attributedUsage)
The attributed usage with a max value of 9999999999.999999999999 and a minimum value of 0.- Parameters:
attributedUsage
- the value to set- Returns:
- this builder
-
overagesFlag
public UsageSummary.Builder overagesFlag(String overagesFlag)
The SPM OverageFlag.- Parameters:
overagesFlag
- the value to set- Returns:
- this builder
-
unitPrice
public UsageSummary.Builder unitPrice(BigDecimal unitPrice)
The price per unit.- Parameters:
unitPrice
- the value to set- Returns:
- this builder
-
currency
public UsageSummary.Builder currency(String currency)
The price currency.- Parameters:
currency
- the value to set- Returns:
- this builder
-
subscriptionId
public UsageSummary.Builder subscriptionId(String subscriptionId)
The subscription ID.- Parameters:
subscriptionId
- the value to set- Returns:
- this builder
-
overage
public UsageSummary.Builder overage(String overage)
The overage usage.- Parameters:
overage
- the value to set- Returns:
- this builder
-
isForecast
public UsageSummary.Builder isForecast(Boolean isForecast)
The forecasted data.- Parameters:
isForecast
- the value to set- Returns:
- this builder
-
tags
public UsageSummary.Builder tags(List<Tag> tags)
For grouping, a tag definition.For filtering, a definition and key.
- Parameters:
tags
- the value to set- Returns:
- this builder
-
build
public UsageSummary build()
-
copy
public UsageSummary.Builder copy(UsageSummary model)
-
-