Record Class DesignDecisionRecord.CostItem

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.CostItem
Record Components:
label - what is paid for
metro - the metro code, or null for a design-wide item
monthly - the expected monthly amount
monthlyLow - the low end of the plausible range
monthlyHigh - the high end of the plausible range
oneTime - the one-time amount
currency - the currency of the amounts
source - live, reference, estimate, contract, provider API or composite
note - provenance detail
originalMonthly - the amount before conversion, or null when not converted
originalCurrency - the currency before conversion, or null
rate - the exchange rate applied, or null
Enclosing class:
DesignDecisionRecord

public static record DesignDecisionRecord.CostItem(String label, String metro, BigDecimal monthly, BigDecimal monthlyLow, BigDecimal monthlyHigh, BigDecimal oneTime, String currency, String source, String note, BigDecimal originalMonthly, String originalCurrency, BigDecimal rate) extends Record
One priced line.
  • Constructor Details

    • CostItem

      public CostItem(String label, String metro, BigDecimal monthly, BigDecimal monthlyLow, BigDecimal monthlyHigh, BigDecimal oneTime, String currency, String source, String note, BigDecimal originalMonthly, String originalCurrency, BigDecimal rate)
      Creates an instance of a CostItem record class.
      Parameters:
      label - the value for the label record component
      metro - the value for the metro record component
      monthly - the value for the monthly record component
      monthlyLow - the value for the monthlyLow record component
      monthlyHigh - the value for the monthlyHigh record component
      oneTime - the value for the oneTime record component
      currency - the value for the currency record component
      source - the value for the source record component
      note - the value for the note record component
      originalMonthly - the value for the originalMonthly record component
      originalCurrency - the value for the originalCurrency record component
      rate - the value for the rate record component
  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • label

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

      public String metro()
      Returns the value of the metro record component.
      Returns:
      the value of the metro 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
    • currency

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

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

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

      public BigDecimal originalMonthly()
      Returns the value of the originalMonthly record component.
      Returns:
      the value of the originalMonthly record component
    • originalCurrency

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

      public BigDecimal rate()
      Returns the value of the rate record component.
      Returns:
      the value of the rate record component