Record Class GrowthPlan.ItemPlan

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.cost.GrowthPlan.ItemPlan
Record Components:
label - what is paid for
kind - CONNECTION, PROVIDER_FEE, ROUTER or EGRESS
tierByMonth - the Fabric tier (Mbps) needed each month for capacity items, -1 above the largest tier; empty for other items
upgradeMonth - the first month the tier changes, or null when it does not within the horizon
upgradeNote - a sentence describing the upgrade, or null
options - one option per term compared (on demand only for items without a term axis)
recommended - the term with the lowest total over the horizon, or null when none priced
recommendation - why
Enclosing class:
GrowthPlan

public static record GrowthPlan.ItemPlan(String label, String kind, List<Integer> tierByMonth, Integer upgradeMonth, String upgradeNote, List<GrowthPlan.TermOption> options, Term recommended, String recommendation) extends Record
One item's projection and term decision.
  • 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. 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
    • kind

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

      public List<Integer> tierByMonth()
      Returns the value of the tierByMonth record component.
      Returns:
      the value of the tierByMonth record component
    • upgradeMonth

      public Integer upgradeMonth()
      Returns the value of the upgradeMonth record component.
      Returns:
      the value of the upgradeMonth record component
    • upgradeNote

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

      public List<GrowthPlan.TermOption> options()
      Returns the value of the options record component.
      Returns:
      the value of the options record component
    • recommended

      public Term recommended()
      Returns the value of the recommended record component.
      Returns:
      the value of the recommended record component
    • recommendation

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