Class Promotion.Builder
- java.lang.Object
- 
- com.oracle.bmc.tenantmanagercontrolplane.model.Promotion.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Promotion.Builderamount(Float amount)If a subscription is present, indicates the total amount of promotional subscription credits.Promotionbuild()Promotion.Buildercopy(Promotion model)Promotion.BuildercurrencyUnit(String currencyUnit)Currency unit associated with the promotion.Promotion.Builderduration(Integer duration)Specifies how long the promotion related to the subscription, if any, is valid in duration units.Promotion.BuilderdurationUnit(String durationUnit)Unit for the duration.Promotion.BuilderisIntentToPay(Boolean isIntentToPay)Speficies whether or not the customer intends to pay after the promotion has expired.Promotion.Builderstatus(Promotion.Status status)If a subscription is present, indicates the current status of the subscription promotion.Promotion.BuildertimeExpired(Date timeExpired)Date and time when the promotion ends.Promotion.BuildertimeStarted(Date timeStarted)Date and time when the promotion starts.
 
- 
- 
- 
Method Detail- 
durationpublic Promotion.Builder duration(Integer duration) Specifies how long the promotion related to the subscription, if any, is valid in duration units.- Parameters:
- duration- the value to set
- Returns:
- this builder
 
 - 
durationUnitpublic Promotion.Builder durationUnit(String durationUnit) Unit for the duration.- Parameters:
- durationUnit- the value to set
- Returns:
- this builder
 
 - 
amountpublic Promotion.Builder amount(Float amount) If a subscription is present, indicates the total amount of promotional subscription credits.- Parameters:
- amount- the value to set
- Returns:
- this builder
 
 - 
statuspublic Promotion.Builder status(Promotion.Status status) If a subscription is present, indicates the current status of the subscription promotion.- Parameters:
- status- the value to set
- Returns:
- this builder
 
 - 
isIntentToPaypublic Promotion.Builder isIntentToPay(Boolean isIntentToPay) Speficies whether or not the customer intends to pay after the promotion has expired.- Parameters:
- isIntentToPay- the value to set
- Returns:
- this builder
 
 - 
currencyUnitpublic Promotion.Builder currencyUnit(String currencyUnit) Currency unit associated with the promotion.- Parameters:
- currencyUnit- the value to set
- Returns:
- this builder
 
 - 
timeStartedpublic Promotion.Builder timeStarted(Date timeStarted) Date and time when the promotion starts.- Parameters:
- timeStarted- the value to set
- Returns:
- this builder
 
 - 
timeExpiredpublic Promotion.Builder timeExpired(Date timeExpired) Date and time when the promotion ends.- Parameters:
- timeExpired- the value to set
- Returns:
- this builder
 
 - 
buildpublic Promotion build() 
 - 
copypublic Promotion.Builder copy(Promotion model) 
 
- 
 
-