public static class PricingModel.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PricingModel |
build() |
PricingModel.Builder |
copy(PricingModel model) |
PricingModel.Builder |
currency(PricingCurrencyEnum currency)
The currency of the pricing model.
|
PricingModel.Builder |
internationalMarketPrice(InternationalMarketPrice internationalMarketPrice) |
PricingModel.Builder |
payGoStrategy(PricingStrategyEnum payGoStrategy)
The type of pricing for a PAYGO model, eg PER_OCPU_LINEAR, PER_OCPU_MIN_BILLING,
PER_INSTANCE.
|
PricingModel.Builder |
rate(BigDecimal rate)
The pricing rate.
|
PricingModel.Builder |
type(PricingTypeEnum type)
The type of the pricing model.
|
public PricingModel.Builder type(PricingTypeEnum type)
The type of the pricing model.
type
- the value to setpublic PricingModel.Builder payGoStrategy(PricingStrategyEnum payGoStrategy)
The type of pricing for a PAYGO model, eg PER_OCPU_LINEAR, PER_OCPU_MIN_BILLING, PER_INSTANCE. Null if type is not PAYGO.
payGoStrategy
- the value to setpublic PricingModel.Builder currency(PricingCurrencyEnum currency)
The currency of the pricing model.
currency
- the value to setpublic PricingModel.Builder rate(BigDecimal rate)
The pricing rate.
rate
- the value to setpublic PricingModel.Builder internationalMarketPrice(InternationalMarketPrice internationalMarketPrice)
public PricingModel build()
public PricingModel.Builder copy(PricingModel model)
Copyright © 2016–2024. All rights reserved.