Record Class DesignDecisionRecord.Verdict

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Verdict
Record Components:
level - PASS, DEGRADED, FAIL or NOT_APPLICABLE
scenarios - scenarios covered
survived - scenarios survived at full service
degraded - scenarios that degraded service
outages - scenarios that caused an outage
statement - the verdict in words
Enclosing class:
DesignDecisionRecord

public static record DesignDecisionRecord.Verdict(String level, int scenarios, int survived, int degraded, int outages, String statement) extends Record
An N-1 or N-2 verdict.
  • Constructor Details

    • Verdict

      public Verdict(String level, int scenarios, int survived, int degraded, int outages, String statement)
      Creates an instance of a Verdict record class.
      Parameters:
      level - the value for the level record component
      scenarios - the value for the scenarios record component
      survived - the value for the survived record component
      degraded - the value for the degraded record component
      outages - the value for the outages record component
      statement - the value for the statement 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. 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.
    • level

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

      public int scenarios()
      Returns the value of the scenarios record component.
      Returns:
      the value of the scenarios record component
    • survived

      public int survived()
      Returns the value of the survived record component.
      Returns:
      the value of the survived record component
    • degraded

      public int degraded()
      Returns the value of the degraded record component.
      Returns:
      the value of the degraded record component
    • outages

      public int outages()
      Returns the value of the outages record component.
      Returns:
      the value of the outages record component
    • statement

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