java.lang.Object
java.lang.Record
org.elasticsearch.health.Diagnosis.Definition
- Record Components:
id
- A unique identifiercause
- A description of the cause of the problemaction
- A description of the action to be taken to remedy the problemhelpURL
- Optional evergreen url to a help document
- Enclosing class:
- Diagnosis
public static record Diagnosis.Definition(String id, String cause, String action, String helpURL)
extends Record
Details a diagnosis - cause and a potential action that a user could take to clear an issue identified by a
HealthService
.-
Constructor Summary
ConstructorDescriptionDefinition
(String id, String cause, String action, String helpURL) Creates an instance of aDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Returns the value of theaction
record component.cause()
Returns the value of thecause
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.helpURL()
Returns the value of thehelpURL
record component.id()
Returns the value of theid
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. -
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. -
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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
cause
Returns the value of thecause
record component.- Returns:
- the value of the
cause
record component
-
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-
helpURL
Returns the value of thehelpURL
record component.- Returns:
- the value of the
helpURL
record component
-