Record Class DesignDecisionRecord.Verdict
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Verdict
- Record Components:
level-PASS,DEGRADED,FAILorNOT_APPLICABLEscenarios- scenarios coveredsurvived- scenarios survived at full servicedegraded- scenarios that degraded serviceoutages- scenarios that caused an outagestatement- the verdict in words
- Enclosing class:
DesignDecisionRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdegraded()Returns the value of thedegradedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.intoutages()Returns the value of theoutagesrecord component.intReturns the value of thescenariosrecord component.Returns the value of thestatementrecord component.intsurvived()Returns the value of thesurvivedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Verdict
public Verdict(String level, int scenarios, int survived, int degraded, int outages, String statement) Creates an instance of aVerdictrecord class.- Parameters:
level- the value for thelevelrecord componentscenarios- the value for thescenariosrecord componentsurvived- the value for thesurvivedrecord componentdegraded- the value for thedegradedrecord componentoutages- the value for theoutagesrecord componentstatement- the value for thestatementrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
level
-
scenarios
-
survived
-
degraded
-
outages
-
statement
-