Record Class DesignDecisionRecord.Decision

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Decision
Record Components:
portfolio - the portfolio key (for example LD+NY)
metros - the metros, primary first
weightedScore - the weighted score, 0..100
paretoOptimal - whether no other feasible option is at least as good on every objective
objectives - each objective's value, score, weight and scale
placements - one line per workload: where it runs and where its standby is
constraints - every constraint check the recommendation passed, with what was verified
rationale - why this option, in a few sentences
Enclosing class:
DesignDecisionRecord

public static record DesignDecisionRecord.Decision(String portfolio, List<String> metros, double weightedScore, boolean paretoOptimal, List<DesignDecisionRecord.ObjectiveResult> objectives, List<String> placements, List<String> constraints, String rationale) extends Record
The recommended design.
  • 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.
    • portfolio

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

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

      public double weightedScore()
      Returns the value of the weightedScore record component.
      Returns:
      the value of the weightedScore record component
    • paretoOptimal

      public boolean paretoOptimal()
      Returns the value of the paretoOptimal record component.
      Returns:
      the value of the paretoOptimal record component
    • objectives

      Returns the value of the objectives record component.
      Returns:
      the value of the objectives record component
    • placements

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

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

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