Record Class ResilienceFindings.SinglePointOfFailure
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.ResilienceFindings.SinglePointOfFailure
- Record Components:
scenarioId- the single-failure scenariokind- what failsdescription- what fails, in wordseffect- what goes down, in words
- Enclosing class:
ResilienceFindings
public static record ResilienceFindings.SinglePointOfFailure(String scenarioId, ScenarioKind kind, String description, String effect)
extends Record
A single element whose failure causes an outage.
-
Constructor Summary
ConstructorsConstructorDescriptionSinglePointOfFailure(String scenarioId, ScenarioKind kind, String description, String effect) Creates an instance of aSinglePointOfFailurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.effect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thescenarioIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SinglePointOfFailure
public SinglePointOfFailure(String scenarioId, ScenarioKind kind, String description, String effect) Creates an instance of aSinglePointOfFailurerecord class.- Parameters:
scenarioId- the value for thescenarioIdrecord componentkind- the value for thekindrecord componentdescription- the value for thedescriptionrecord componenteffect- the value for theeffectrecord 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). -
scenarioId
Returns the value of thescenarioIdrecord component.- Returns:
- the value of the
scenarioIdrecord component
-
kind
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
effect
-