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.Builderad(String ad)The availability domain of the usage.UsageSummary.BuilderattributedCost(String attributedCost)The attributed cost with a max value of 9999999999.999999999999 and a minimum value of 0.UsageSummary.BuilderattributedUsage(String attributedUsage)The attributed usage with a max value of 9999999999.999999999999 and a minimum value of 0.UsageSummarybuild()UsageSummary.BuildercompartmentId(String compartmentId)The compartment OCID.UsageSummary.BuildercompartmentName(String compartmentName)The compartment name.UsageSummary.BuildercompartmentPath(String compartmentPath)The compartment path, starting from root.UsageSummary.BuildercomputedAmount(BigDecimal computedAmount)The computed cost.UsageSummary.BuildercomputedQuantity(BigDecimal computedQuantity)The usage number.UsageSummary.Buildercopy(UsageSummary model)UsageSummary.Buildercurrency(String currency)The price currency.UsageSummary.Builderdiscount(BigDecimal discount)The discretionary discount applied to the SKU.UsageSummary.BuilderisForecast(Boolean isForecast)The forecasted data.UsageSummary.BuilderlistRate(BigDecimal listRate)The SKU list rate (not discount).UsageSummary.Builderoverage(String overage)The overage usage.UsageSummary.BuilderoveragesFlag(String overagesFlag)The SPM OverageFlag.UsageSummary.Builderplatform(String platform)Platform for the cost.UsageSummary.Builderregion(String region)The region of the usage.UsageSummary.BuilderresourceId(String resourceId)The resource OCID that is incurring the cost.UsageSummary.BuilderresourceName(String resourceName)The resource name that is incurring the cost.UsageSummary.Builderservice(String service)The service name that is incurring the cost.UsageSummary.Buildershape(String shape)The resource shape.UsageSummary.BuilderskuName(String skuName)The SKU friendly name.UsageSummary.BuilderskuPartNumber(String skuPartNumber)The SKU part number.UsageSummary.BuildersubscriptionId(String subscriptionId)The subscription ID.UsageSummary.Buildertags(List<Tag> tags)For grouping, a tag definition.UsageSummary.BuildertenantId(String tenantId)The tenancy OCID.UsageSummary.BuildertenantName(String tenantName)The tenancy name.UsageSummary.BuildertimeUsageEnded(Date timeUsageEnded)The usage end time.UsageSummary.BuildertimeUsageStarted(Date timeUsageStarted)The usage start time.UsageSummary.Builderunit(String unit)The usage unit.UsageSummary.BuilderunitPrice(BigDecimal unitPrice)The price per unit.UsageSummary.Builderweight(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)
-
-