public static class ComputedUsage.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ComputedUsage |
build() |
ComputedUsage.Builder |
commitmentServiceId(String commitmentServiceId)
Subscribed service commitmentId.
|
ComputedUsage.Builder |
computeSource(String computeSource)
SPM Internal compute records source .
|
ComputedUsage.Builder |
copy(ComputedUsage model) |
ComputedUsage.Builder |
cost(String cost)
Computed Line Amount not rounded
|
ComputedUsage.Builder |
costRounded(String costRounded)
Computed Line Amount rounded.
|
ComputedUsage.Builder |
currencyCode(String currencyCode)
Currency code
|
ComputedUsage.Builder |
dataCenter(String dataCenter)
Data Center Attribute as sent by MQS to SPM.
|
ComputedUsage.Builder |
id(String id)
SPM Internal computed usage Id , 32 character string
|
ComputedUsage.Builder |
isInvoiced(Boolean isInvoiced)
Invoicing status for the aggregated compute usage
|
ComputedUsage.Builder |
mqsMessageId(String mqsMessageId)
MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
|
ComputedUsage.Builder |
netUnitPrice(String netUnitPrice)
Net Unit Price for the product in consideration, price actual.
|
ComputedUsage.Builder |
originalUsageNumber(String originalUsageNumber)
SPM Internal Original usage Line number identifier in SPM coming from Metered Services
entity.
|
ComputedUsage.Builder |
parentProduct(Product parentProduct) |
ComputedUsage.Builder |
parentSubscribedServiceId(String parentSubscribedServiceId)
Subscribed service line parent id
|
ComputedUsage.Builder |
planNumber(String planNumber)
Subscription plan number
|
ComputedUsage.Builder |
product(Product product) |
ComputedUsage.Builder |
quantity(String quantity)
Total Quantity that was used for computation
|
ComputedUsage.Builder |
rateCardId(String rateCardId)
Ratecard Id at subscribed service level
|
ComputedUsage.Builder |
rateCardTierdId(String rateCardTierdId)
References the tier in the ratecard for that usage (OCI will be using the same reference
to cross-reference for correctness on the usage csv report), comes from Entity
OBSCNTR_IPT_PRODUCTTIER.
|
ComputedUsage.Builder |
timeCreated(Date timeCreated)
Computed Usage created time, expressed in RFC 3339 timestamp format.
|
ComputedUsage.Builder |
timeMeteredOn(Date timeMeteredOn)
Metered Service date, expressed in RFC 3339 timestamp format.
|
ComputedUsage.Builder |
timeOfArrival(Date timeOfArrival)
Usae computation date, expressed in RFC 3339 timestamp format.
|
ComputedUsage.Builder |
timeUpdated(Date timeUpdated)
Computed Usage updated time, expressed in RFC 3339 timestamp format.
|
ComputedUsage.Builder |
type(ComputedUsage.Type type)
Usage compute type in SPM.
|
ComputedUsage.Builder |
unitOfMeasure(String unitOfMeasure)
Unit of Messure
|
ComputedUsage.Builder |
usageNumber(String usageNumber)
SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
|
public ComputedUsage.Builder timeCreated(Date timeCreated)
Computed Usage created time, expressed in RFC 3339 timestamp format.
timeCreated
- the value to setpublic ComputedUsage.Builder timeUpdated(Date timeUpdated)
Computed Usage updated time, expressed in RFC 3339 timestamp format.
timeUpdated
- the value to setpublic ComputedUsage.Builder parentSubscribedServiceId(String parentSubscribedServiceId)
Subscribed service line parent id
parentSubscribedServiceId
- the value to setpublic ComputedUsage.Builder parentProduct(Product parentProduct)
public ComputedUsage.Builder planNumber(String planNumber)
Subscription plan number
planNumber
- the value to setpublic ComputedUsage.Builder currencyCode(String currencyCode)
Currency code
currencyCode
- the value to setpublic ComputedUsage.Builder rateCardTierdId(String rateCardTierdId)
References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
rateCardTierdId
- the value to setpublic ComputedUsage.Builder rateCardId(String rateCardId)
Ratecard Id at subscribed service level
rateCardId
- the value to setpublic ComputedUsage.Builder computeSource(String computeSource)
SPM Internal compute records source .
computeSource
- the value to setpublic ComputedUsage.Builder dataCenter(String dataCenter)
Data Center Attribute as sent by MQS to SPM.
dataCenter
- the value to setpublic ComputedUsage.Builder mqsMessageId(String mqsMessageId)
MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
mqsMessageId
- the value to setpublic ComputedUsage.Builder id(String id)
SPM Internal computed usage Id , 32 character string
id
- the value to setpublic ComputedUsage.Builder quantity(String quantity)
Total Quantity that was used for computation
quantity
- the value to setpublic ComputedUsage.Builder usageNumber(String usageNumber)
SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
usageNumber
- the value to setpublic ComputedUsage.Builder originalUsageNumber(String originalUsageNumber)
SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
originalUsageNumber
- the value to setpublic ComputedUsage.Builder commitmentServiceId(String commitmentServiceId)
Subscribed service commitmentId.
commitmentServiceId
- the value to setpublic ComputedUsage.Builder isInvoiced(Boolean isInvoiced)
Invoicing status for the aggregated compute usage
isInvoiced
- the value to setpublic ComputedUsage.Builder type(ComputedUsage.Type type)
Usage compute type in SPM.
type
- the value to setpublic ComputedUsage.Builder timeOfArrival(Date timeOfArrival)
Usae computation date, expressed in RFC 3339 timestamp format.
timeOfArrival
- the value to setpublic ComputedUsage.Builder timeMeteredOn(Date timeMeteredOn)
Metered Service date, expressed in RFC 3339 timestamp format.
timeMeteredOn
- the value to setpublic ComputedUsage.Builder netUnitPrice(String netUnitPrice)
Net Unit Price for the product in consideration, price actual.
netUnitPrice
- the value to setpublic ComputedUsage.Builder costRounded(String costRounded)
Computed Line Amount rounded.
costRounded
- the value to setpublic ComputedUsage.Builder cost(String cost)
Computed Line Amount not rounded
cost
- the value to setpublic ComputedUsage.Builder product(Product product)
public ComputedUsage.Builder unitOfMeasure(String unitOfMeasure)
Unit of Messure
unitOfMeasure
- the value to setpublic ComputedUsage build()
public ComputedUsage.Builder copy(ComputedUsage model)
Copyright © 2016–2024. All rights reserved.