Record Class PreflightViolation
java.lang.Object
java.lang.Record
com.cloudforge.core.local.PreflightViolation
public record PreflightViolation(PreflightSeverity severity, String ruleId, String message, String suggestion)
extends Record
Single preflight finding.
-
Constructor Summary
ConstructorsConstructorDescriptionPreflightViolation(PreflightSeverity severity, String ruleId, String message, String suggestion) Creates an instance of aPreflightViolationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.ruleId()Returns the value of theruleIdrecord component.severity()Returns the value of theseverityrecord component.Returns the value of thesuggestionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreflightViolation
public PreflightViolation(PreflightSeverity severity, String ruleId, String message, String suggestion) Creates an instance of aPreflightViolationrecord class.- Parameters:
severity- the value for theseverityrecord componentruleId- the value for theruleIdrecord componentmessage- the value for themessagerecord componentsuggestion- the value for thesuggestionrecord 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
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
ruleId
Returns the value of theruleIdrecord component.- Returns:
- the value of the
ruleIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
suggestion
Returns the value of thesuggestionrecord component.- Returns:
- the value of the
suggestionrecord component
-