Record Class DesignDecisionRecord.Cost

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Cost
Record Components:
currency - the currency every line is in (the spec's commercial currency)
monthly - the expected monthly total, or null when the lines span currencies
monthlyLow - the low end of the monthly range, or null
monthlyHigh - the high end of the monthly range, or null
oneTime - the one-time total, or null
complete - whether every item was priced (an incomplete total understates the cost)
lines - the priced lines
unpriced - what could not be priced and why
ratesUsed - every exchange rate a line was converted at
growth - the term and growth view, or null (see growthNote)
growthNote - why there is no growth view, or null
value - the TCO and savings view, or null (see valueNote)
valueNote - why there is no TCO and savings view, or null
Enclosing class:
DesignDecisionRecord

public static record DesignDecisionRecord.Cost(String currency, BigDecimal monthly, BigDecimal monthlyLow, BigDecimal monthlyHigh, BigDecimal oneTime, boolean complete, List<DesignDecisionRecord.CostItem> lines, List<String> unpriced, List<DesignDecisionRecord.FxRate> ratesUsed, DesignDecisionRecord.Growth growth, String growthNote, DesignDecisionRecord.Value value, String valueNote) extends Record
What the recommended design costs, and where each figure came from.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • monthly

      public BigDecimal monthly()
      Returns the value of the monthly record component.
      Returns:
      the value of the monthly record component
    • monthlyLow

      public BigDecimal monthlyLow()
      Returns the value of the monthlyLow record component.
      Returns:
      the value of the monthlyLow record component
    • monthlyHigh

      public BigDecimal monthlyHigh()
      Returns the value of the monthlyHigh record component.
      Returns:
      the value of the monthlyHigh record component
    • oneTime

      public BigDecimal oneTime()
      Returns the value of the oneTime record component.
      Returns:
      the value of the oneTime record component
    • complete

      public boolean complete()
      Returns the value of the complete record component.
      Returns:
      the value of the complete record component
    • lines

      Returns the value of the lines record component.
      Returns:
      the value of the lines record component
    • unpriced

      public List<String> unpriced()
      Returns the value of the unpriced record component.
      Returns:
      the value of the unpriced record component
    • ratesUsed

      public List<DesignDecisionRecord.FxRate> ratesUsed()
      Returns the value of the ratesUsed record component.
      Returns:
      the value of the ratesUsed record component
    • growth

      public DesignDecisionRecord.Growth growth()
      Returns the value of the growth record component.
      Returns:
      the value of the growth record component
    • growthNote

      public String growthNote()
      Returns the value of the growthNote record component.
      Returns:
      the value of the growthNote record component
    • value

      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • valueNote

      public String valueNote()
      Returns the value of the valueNote record component.
      Returns:
      the value of the valueNote record component