Record Class GrowthPlan.TermOption
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.cost.GrowthPlan.TermOption
- Record Components:
term- the termpriced- whether every month could be priced at this termunpricedReason- why not, ornullmonthlyAtStart- month 1's monthly priceoneTime- the one-time chargetotalOverHorizon- every month's price + the commitment tail + the one-time chargetailMonths- months committed beyond the horizontail- the cost of those months (at the last month's price)breakEvenMonth- for a commitment: how many months of on-demand spend equal the commitment's first-term obligation (keep the item at least this long for the commitment to pay);nullfor on demand or when on-demand spend never reaches it within the term
- Enclosing class:
GrowthPlan
public static record GrowthPlan.TermOption(Term term, boolean priced, String unpricedReason, BigDecimal monthlyAtStart, BigDecimal oneTime, BigDecimal totalOverHorizon, int tailMonths, BigDecimal tail, Integer breakEvenMonth)
extends Record
One commitment term for one item.
-
Constructor Summary
ConstructorsConstructorDescriptionTermOption(Term term, boolean priced, String unpricedReason, BigDecimal monthlyAtStart, BigDecimal oneTime, BigDecimal totalOverHorizon, int tailMonths, BigDecimal tail, Integer breakEvenMonth) Creates an instance of aTermOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebreakEvenMonthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themonthlyAtStartrecord component.oneTime()Returns the value of theoneTimerecord component.booleanpriced()Returns the value of thepricedrecord component.tail()Returns the value of thetailrecord component.intReturns the value of thetailMonthsrecord component.term()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalOverHorizonrecord component.static GrowthPlan.TermOptionReturns the value of theunpricedReasonrecord component.
-
Constructor Details
-
TermOption
public TermOption(Term term, boolean priced, String unpricedReason, BigDecimal monthlyAtStart, BigDecimal oneTime, BigDecimal totalOverHorizon, int tailMonths, BigDecimal tail, Integer breakEvenMonth) Creates an instance of aTermOptionrecord class.- Parameters:
term- the value for thetermrecord componentpriced- the value for thepricedrecord componentunpricedReason- the value for theunpricedReasonrecord componentmonthlyAtStart- the value for themonthlyAtStartrecord componentoneTime- the value for theoneTimerecord componenttotalOverHorizon- the value for thetotalOverHorizonrecord componenttailMonths- the value for thetailMonthsrecord componenttail- the value for thetailrecord componentbreakEvenMonth- the value for thebreakEvenMonthrecord component
-
-
Method Details
-
unpriced
- Parameters:
term- the termreason- why it cannot be priced- Returns:
- an unpriced option
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
term
-
priced
-
unpricedReason
Returns the value of theunpricedReasonrecord component.- Returns:
- the value of the
unpricedReasonrecord component
-
monthlyAtStart
Returns the value of themonthlyAtStartrecord component.- Returns:
- the value of the
monthlyAtStartrecord component
-
oneTime
-
totalOverHorizon
Returns the value of thetotalOverHorizonrecord component.- Returns:
- the value of the
totalOverHorizonrecord component
-
tailMonths
public int tailMonths()Returns the value of thetailMonthsrecord component.- Returns:
- the value of the
tailMonthsrecord component
-
tail
-
breakEvenMonth
Returns the value of thebreakEvenMonthrecord component.- Returns:
- the value of the
breakEvenMonthrecord component
-