Class CommitmentPeriod.Builder
- java.lang.Object
-
- com.oracle.bmc.onesubscription.model.CommitmentPeriod.Builder
-
- Enclosing class:
- CommitmentPeriod
public static class CommitmentPeriod.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitmentPeriod.BuilderamountAvailable(Double amountAvailable)Amount remaining and available for the commitment period.CommitmentPeriod.BuilderamountCommitment(Double amountCommitment)Total committed amount for the commitment period.CommitmentPeriod.BuilderamountConsumed(Double amountConsumed)Amount consumed during the commitment period.CommitmentPeriodbuild()CommitmentPeriod.BuildercommitmentPeriod(String commitmentPeriod)Identifier for the commitment period.CommitmentPeriod.Buildercopy(CommitmentPeriod model)CommitmentPeriod.BuildertimeCommitmentPeriodEnd(Date timeCommitmentPeriodEnd)End date and time of the commitment period.CommitmentPeriod.BuildertimeCommitmentPeriodStart(Date timeCommitmentPeriodStart)Start date and time of the commitment period.
-
-
-
Method Detail
-
commitmentPeriod
public CommitmentPeriod.Builder commitmentPeriod(String commitmentPeriod)
Identifier for the commitment period.- Parameters:
commitmentPeriod- the value to set- Returns:
- this builder
-
timeCommitmentPeriodStart
public CommitmentPeriod.Builder timeCommitmentPeriodStart(Date timeCommitmentPeriodStart)
Start date and time of the commitment period.- Parameters:
timeCommitmentPeriodStart- the value to set- Returns:
- this builder
-
timeCommitmentPeriodEnd
public CommitmentPeriod.Builder timeCommitmentPeriodEnd(Date timeCommitmentPeriodEnd)
End date and time of the commitment period.- Parameters:
timeCommitmentPeriodEnd- the value to set- Returns:
- this builder
-
amountCommitment
public CommitmentPeriod.Builder amountCommitment(Double amountCommitment)
Total committed amount for the commitment period.- Parameters:
amountCommitment- the value to set- Returns:
- this builder
-
amountConsumed
public CommitmentPeriod.Builder amountConsumed(Double amountConsumed)
Amount consumed during the commitment period.- Parameters:
amountConsumed- the value to set- Returns:
- this builder
-
amountAvailable
public CommitmentPeriod.Builder amountAvailable(Double amountAvailable)
Amount remaining and available for the commitment period.- Parameters:
amountAvailable- the value to set- Returns:
- this builder
-
build
public CommitmentPeriod build()
-
copy
public CommitmentPeriod.Builder copy(CommitmentPeriod model)
-
-