Record Class DesignDecisionRecord.Risk
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Risk
- Record Components:
severity- how serioussource- the engine that raised it (optimizer,resilience,cost,plan,estate,peering,spec,record)category- the engine's categorystatement- the findingrecommendation- what to do, ornull
- Enclosing class:
DesignDecisionRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therecommendationrecord component.severity()Returns the value of theseverityrecord component.source()Returns the value of thesourcerecord component.Returns the value of thestatementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Risk
public Risk(DesignDecisionRecord.RiskLevel severity, String source, String category, String statement, String recommendation) Creates an instance of aRiskrecord class.- Parameters:
severity- the value for theseverityrecord componentsource- the value for thesourcerecord componentcategory- the value for thecategoryrecord componentstatement- the value for thestatementrecord componentrecommendation- the value for therecommendationrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
severity
-
source
-
category
-
statement
-
recommendation
Returns the value of therecommendationrecord component.- Returns:
- the value of the
recommendationrecord component
-